Knowledgebase

Portal Home > Knowledgebase > Articles Database > PHP error log


PHP error log




Posted by Kolusion, 08-23-2011, 05:29 AM
Is there a way to see PHP errors?

Posted by Nassou, 08-23-2011, 04:27 PM
You can add some error reporting functions to your script to see eventual errors. http://www.nusphere.com/kb/phpmanual...-reporting.htm

Posted by CastlegemLtd, 08-26-2011, 04:28 AM
hello, and if you have access to the php.ini or can overwrite php.ini values, there is a setting to have errors written to a logfile, in the php.ini file this would be log_errors = On error_log = php_errors.log cheers - oz.

Posted by lynxus, 08-26-2011, 04:52 AM
They would normally also show in the httpd error log. /var/log/httpd/error_log

Posted by Acidx, 08-26-2011, 10:56 PM
ini_set('error_reporting', E_ALL); enjoy it!

Posted by kalid, 08-27-2011, 03:03 AM
If ini_set/ini_alter are disabled:

Posted by Host1Plus, 08-27-2011, 04:34 AM
Yes all of the errors in most of linux systems are kept in /var/logs/error_log you can manually change the error log file location in php.ini but it not recommended.

Posted by fireboltz, 08-27-2011, 07:30 AM
Ya you can check the errors in PHP



Was this answer helpful?

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

Also Read
Problems with Outlook (Views: 584)
postini vs. spamsoap (Views: 542)


Language:

Contact us