You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Denver Prophit Jr edited this page May 6, 2016
·
4 revisions
Custom PHP Logging Inside CageFS
On Cloudlinux with cagefs and php selector installed, they have added a global php.ini that you can add directive to:
/etc/cl.selector/global_php.ini
; This file provides global settings for php.ini of all alt-php packages
; The structure of this file:
; option = value
; To confirm changes please run:
; /usr/sbin/cagefsctl --setup-cl-selector
[Global PHP Settings]
log_errors = On
error_log = "/var/log/httpd/php_error.log"
After editing that file and added the directives as specified at the top of the file you have to run the following command to sync the changes out to all versions of php.
/usr/sbin/cagefsctl --setup-cl-selector
After that command completes, we then have to apply the changes to the cage and restart apache.