Results 1 to 2 of 2
Thread: Where is the PHP error log?
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jun 2011
Where is the PHP error log?
In my php.ini file, the "error_log" value was blank, but error logging was turned on, which (according to some other forum) means that errors should have been logged in the system's log file. But, I can't find where that is. I've looked in var/logs, but haven't found anything with PHP-related info.
Does anyone know where PHP errors are logged when there is no PHP log file location set? Any help would be greatly appreciated. Thanks!
*EDIT: Gah, looks like I was wrong -- errors are only saved to the system's log if you set "error_log = syslog" in the php.ini file. I'm guessing this means that PHP errors have not been logged anywhere. Can anyone confirm this?
Depends on your usecase, see here:
PHP: Runtime Configuration - Manual
It is usually a good idea to set it to a separate file,
and even more to use syslog, so you are able to log locally and to a central log server.You must always face the curtain with a bow.