Portal Home > Knowledgebase > Articles Database > php error log problem


php error log problem




Posted by whdev, 09-02-2007, 03:55 AM
Hello these are in my php.ini: error_reporting = E_ALL & ~E_NOTICE display_errors = Off log_errors = On error_log = /var/log/php_log I tried setting up a test.php (which contains php error). When I try to access the file via root command: php -e test.php The error gets logged into /var/log/php_log. The problem is when I access this file via web, the error does not get logged into /var/log/php_log Anyone has any idea on this? Thank you!

Posted by kerplunk, 09-02-2007, 01:34 PM
I will go out on a limb here and just guess that it is because you have display_errors = Off and not display_errors = On Just a guess

Posted by david510, 09-02-2007, 01:52 PM
Make a phpinfo() page and make sure the values are set properly when taken in browser.

Posted by RBBOT, 09-05-2007, 08:11 AM
If phpinfo() output looks right, Check that account that the web PHP process is executing under has write permissions to the log file. If it looks wrong, maybe there are overrides to the php.ini settings in your web server configuration files?



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Simple SSL Doubt (Views: 677)
Server Crash so often (Views: 674)
Very Strange Problem (Views: 668)
Raid 1 to Raid 10 (Views: 677)