Overview
SELinux (Security-Enhanced Linux ) is an advanced security mechanism built into modern Linux distributives. When enabled, it can prevent Kayako 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:
PHP Warning: fopen(./__swift/logs/log.error_xxx.txt): failed to open stream:
Permission denied in /var/www/html/kayako/__swift/library/Log/class.SWIFT_Log.php on line 409
or
PHP Fatal error: Uncaught SWIFT_Exception: Invalid data provided in
/var/www/html/kayako/__swift/library/Log/class.SWIFT_Log.php:539
Process
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 will not block anything. However, it will log 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 will return disabled as the output.