Translation - Μετάφραση

Resources, Technical Assistance and Technology News => Tips on Using Computers => Translator resources => Linux tips => Topic started by: spiros on 30 Jul, 2019, 12:22:07

Title: Cpanel / WHM / Apache error log locations/paths
Post by: spiros on 30 Jul, 2019, 12:22:07
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 (https://documentation.cpanel.net/display/CKB/The+cPanel+Log+Files)
PHP-FPM - Version 80 Documentation - cPanel Documentation (https://documentation.cpanel.net/display/80Docs/PHP-FPM)