Disabling SELinux
SELinux (Security-Enhanced Linux ) is an advanced security mechanism built into modern Linux distributives. When enabled, it can prevent GFI HelpDesk setup scripts from installing the Help Desk, can block errors from appearing on a browser and can cause other issues, including different permissions errors and warnings like:
./__swift/logs/log.error_xxx.txt
): failed to open stream: Permission denied in /var/www/html/GFI HelpDesk/__swift/library/Log/class.SWIFT_Log.php
on line 409
or
/var/www/html/GFI HelpDesk/__swift/library/Log/class.SWIFT_Log.php:539
Implement the steps below to find the current status of SELinux and disable it, if needed:
- To get the current state of SELinux run the following command in the command line on the server:
getenforce
If you see Enforcing or Permissive, it means SELinux is up and running. The permissive mode does not block anything. However, it logs all security policy violations. In case there are no plans to have SELinux enabled on the server there is no need to keep it in the Permissive mode.
- To disable SELinux edit the file
/etc/selinux/config
:Find the line starting with
SELINUX=
and set the value to disabled so it should look like:SELINUX=disabled
- Save the file and reboot the server to apply the changes.
Confirmation
Executing getenforce
command in the command line returns disabled as the output.