When attempting to install Kayako Classic Download, the Kayako Classic installation script is failing with the following Warning and Fatal Error:
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
PHP Fatal error: Uncaught SWIFT_Exception: Invalid data provided in
SELinux (Security-Enhanced Linux ) is an advanced security mechanism built into modern Linux distributives. When enabled, it can prevent the Kayako Classic setup scripts from installing the Help Desk, block errors from appearing on a browser and cause other issues, including different permissions errors and warnings.
Follow 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:
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
Find the line starting with
SELINUX=and set the value to disabled so it should look like:
Save the file and reboot the server to apply the changes.
getenforce command in the command line will return disabled as the output. Once SELinux has been disabled, you should be able to continue with installing Kayako Classic download.