PHP error_log

jigster

Verified User
Joined
Jul 23, 2021
Messages
100
Hi everyone. We'd prefer to have a separate PHP error log in the site's root or logs directory for every account, but I'm having a little trouble: If I create a file /usr/local/php83/lib/php.conf.d/11-custom.ini and add
error_log = php_error_log
this creates the log file in the same directory as the php script causing the error, so we end up with multiple logs in multiple directories.

Does anyone know how we can set it so every account automatically has a separate PHP error log in the site's root or their logs directory, without having to hard code a different absolute path for every site? Thanks
 
Last edited:
Back
Top