PHP error logs keep moving and renaming?
Is it just me or do other people's PHP error logs keep changing locations and file names?
I have a page inside my application where I manage these logs and I have to keep updating it to keep up with the changes.
The latest change is in the file name.
At the end of August it was xxx_xxx_xx.php.error.log (each part of the domain separated by an underscore) now it's xxx_xxx.xx.php.error.log (the sub domain part separated from the gtld by an underscore and then the parts of the gtld itself separated by dots.
-
Hey there! It's always helpful to know which version of cPanel you're running for issues like this, but the most relevant change I could find happened in version 136 as part of case CPANEL-48069:
- Fixed CPANEL-48069: Automatically configure PHP error logging to ~/logs/php.error.log for all newly created domains.
- Fixed CPANEL-48069: Allow PHP error logging directives (error_log, log_errors, error_log_mode) to be configured in MultiPHP INI Editor Basic Mode.
This would be present in all versions of 136 as it made its way through the tiers.
So I would say that yes, this is expected on a version 136 machine, although I don't have a good explanation for your August date unless that's when your cPanel update happened. You could check this with the following commands to try and isolate that specific change:
/usr/local/cpanel/cpanel -V grep -rn error_log /opt/cpanel/ea-php*/root/etc/php-fpm.d/ ls -l --time-style=long-iso /home/*/logs/*php.error.log
0
Please sign in to leave a comment.
Comments
1 comment