Results 1 to 4 of 4
Thread: php error log problem
-
09-02-2007, 03:55 AM #1Junior Guru
- Join Date
- May 2004
- Posts
- 194
php error log problem
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!
-
09-02-2007, 01:34 PM #2Web Hosting Evangelist
- Join Date
- Aug 2002
- Posts
- 484
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
-
09-02-2007, 01:52 PM #3Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
Make a phpinfo() page and make sure the values are set properly when taken in browser.
David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android
-
09-05-2007, 08:11 AM #4Web Hosting Evangelist
- Join Date
- Dec 2006
- Posts
- 480
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?