Disable PHP error log only on specific account
I moved some time ago to cpanel, an old non-updated website built on the basis of Joomla 1.6. It is known that Joomla 1.6 has long been out of use. It is impossible to update this website or any changes in it.
Each page visit creates a lot of php error log lines - the average increment is 400 KB for a one-time visit. The file is created in the user's account in the / logs folder and has the name account_name.php.error.log. I attach a new file after today's visit.
So far, I've been managing the task of cron, which deletes the file every day. Is there any way to disable this log only for this one account?
-
Hello, Yes, you can browse to "cPanel >> MultiPHP INI Editor" and use "Editor Mode" to change the PHP configuration for that domain name: MultiPHP INI Editor for cPanel - Version 68 Documentation - cPanel Documentation The line you'd want to add is: error_reporting = Off
Thank you.0 -
But this is a configuration for a specific version of PHP. And I wonder if I can do it only for one account? Do I have to assign any other version of PHP only to this account and then change it? 0 -
Hello, You should be able to make that change on a per-domain basis unless you are using a PHP handler that does not support the change through the INI Editor (e.g. PHP-FPM). Is it not working as expected when you make the change using the method described in my last response? Thank you. 0
Please sign in to leave a comment.
Comments
3 comments