PHP Error Logging

zoom

Well-Known Member
#1
I'm trying to enable PHP error logging and believe that I have everything correctly setup, however I'm not noticing anything in the error log. The following information is display from phpinfo()

Loaded Configuration File /etc/php.ini
error_log /opt/lsws/logs/php_error.log
log_errors On
error_reporting 6143 (E_ALL)

If I change the display_errors directive to On I can see the error, but I don't see anything in the log. Any idea why it's not in the log file??

Thanks
 

mistwang

LiteSpeed Staff
#2
Have no idea, it should be a PHP internal feature.
However, you should find PHP error messages in /opt/lsws/logs/error.log or where ever the log file has been written to.
 
Top