I know that the PHP log file is located at /var/log/nginx/error.log
for my personal box, but I am interested in pragmatically finding out where the error log file is.
I have tried:
ini_get('error_log');
But my php ini doesn't specify error_log, so it's blank. And since apache/ngnix each store different places, is there a way to find out where errors are being written to? I don't mind to use exec()
to run a command to get it, but
php -i | grep error_log
Returns
error_log => no value => no value
For my set up