I know that the PHP log file is located in /var/log/nginx/error.log for my personal window, but I am interested in pragmatically finding out where the error log file is.
I tried:
ini_get('error_log');
But my php ini does not indicate error_log, so it is empty. And since apache / ngnix stores different places, is there a way to find out where the errors are written? I don't mind using exec() to run a command to get it, but
php -i | grep error_log
Returns
error_log => no value => no value
For my setup
source share