php-fpm disable error log for a single account
Hello,
I have an old site that is creating a very big error log in few minutes, each page visit creates a lot of php error log lines .
I`m running cPanel 70.0.48 and php-fpm is enabled on this account.
I`d like to disable error log only for this account, so I edited /var/cpanel/userdata/[USER]/[DOMAIN].php_fpm.yaml and inserted:
but after running /usr/local/cpanel/scripts/php_fpm_config --rebuild and restarting php-fpm the error log is still increasing rapidly. Can you please help?
php_value_error_reporting = 0
but after running /usr/local/cpanel/scripts/php_fpm_config --rebuild and restarting php-fpm the error log is still increasing rapidly. Can you please help?
-
I found the solution, I write it here so it can be useful to other people, in practice I was wrong to write php_value_error_reporting = 0 After putting php_value_error_reporting: 0
in /var/cpanel/userdata/[USER]/[DOMAIN].php_fpm.yaml, and after running /usr/local/cpanel/scripts/php_fpm_config --rebuild the error log was disabled as expected.0 -
Hi @Skin Thanks! for updating the thread with the answer, I'm happy to see you were able to find the resolution for your issue. Thank you, 0
Please sign in to leave a comment.
Comments
2 comments