PHP error_log

jigster

Verified User
Joined
Jul 23, 2021
Messages
100
Hi everyone. We prefer to have the PHP error_log in the site's root for every account, but I'm having a little trouble: I created a file /usr/local/php83/lib/php.conf.d/11-custom.ini and added a line
error_log = php_error_log
But 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 for every site to have the PHP error_log always in the site's root, without having to hard code a different absolute path for every site? Thanks
 
Back
Top