What directory is the PHP error log file in?

What directory is the PHP error log file in? I didn’t find it in the /var/log directory.

/var/log/nginx/domains/ or /var/log/apache2/domains

This is not the PHP error log

php errors will be reported in apache2 or/and nginx logs of the related domain.

You can also specify a file to log PHP errors to by setting error directives in .user.ini, which is useful if you’re temporarily debugging something.

eg.

# Debug Error logging 
display_startup_errors = off
display_errors = off
html_errors = off
log_errors = on
error_reporting = 7
error_log = /home/user/web/domain.com/public_html/PHP_errors.log

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.