Skip to main content

PHP error logs keep moving and renaming?

Comments

1 comment

  • cPRex Jurassic Moderator

    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.