Hi,
So far, while I had CGI handler, PHP error logs resided in the same directory as the PHP file that created the error.
With PHP-FPM the default error log location is at: /home/username/logs/domain_tld.php.error.log
Is there a way to switch error log location so it will show in same directory where .php file which triggered error resides ?
So if file /home/username/public_html/tests/test.php triggered error I would like error log to be in /home/username/public_html/tests/
If a file in /home/username/public_html/school/questions/math.php triggers an error I would like error log to be placed in /home/username/public_html/school/questions/
Also I would like this to be enabled on all accounts with PHP-FPM enabled.
I am new at this so please explain it step-by-step.
Thanks !
So far, while I had CGI handler, PHP error logs resided in the same directory as the PHP file that created the error.
With PHP-FPM the default error log location is at: /home/username/logs/domain_tld.php.error.log
Is there a way to switch error log location so it will show in same directory where .php file which triggered error resides ?
So if file /home/username/public_html/tests/test.php triggered error I would like error log to be in /home/username/public_html/tests/
If a file in /home/username/public_html/school/questions/math.php triggers an error I would like error log to be placed in /home/username/public_html/school/questions/
Also I would like this to be enabled on all accounts with PHP-FPM enabled.
I am new at this so please explain it step-by-step.
Thanks !