Cpanel / WHM / Apache error log locations/paths

spiros · 1 · 2522

spiros

  • Administrator
  • Hero Member
  • *****
    • Posts: 854566
    • Gender:Male
  • point d’amour
When using PHP and Apache you would have three main error log files. The Apache (webserver) error log can be found within:

/var/log/apache2/error_log


The site/application error log can be found within:

/home/username/logs/$domain_tld.php.error.log

The above is for errors that are coming from the PHP application itself, for example, issues with the code or syntax.

The final error log is for PHP-FPM in general, in here you can find issues with max_children or errors with the service itself:

/opt/cpanel/ea-php$$/root/usr/var/log/php-fpm/error.log

Make sure to replace ea-php$$ with the actual PHP version you are running, for example, ea-php73 for PHP 7.3 version.

For more information on log files and PHP-FPM, please visit the following links:

The cPanel Log Files - cPanel Knowledge Base - cPanel Documentation
PHP-FPM - Version 80 Documentation - cPanel Documentation
« Last Edit: 20 Apr, 2021, 14:15:14 by spiros »


 

Search Tools