Page 1 of 1
how to find php error log
Posted: Thu May 02, 2013 6:55 am
by werhujsk
Hi,
I am unable to find php error log's cvan anyone help out to find error log...
Thanks,
Re: how to find php error log
Posted: Thu May 02, 2013 1:00 pm
by requinix
Check the error_log php.ini setting. If that's empty then check your web server logs.
Re: how to find php error log
Posted: Tue May 07, 2013 7:09 am
by annaharris
Check: /home/username/logs/example.com/http/error.log
how to find php error log
Posted: Tue Jun 18, 2013 4:57 am
by rejser
Start session without errors please check errors given in your PHP and/or webserver log file and configure your PHP installation . The best way to dynamically store the PHP log files .
Re: how to find php error log
Posted: Thu Jul 25, 2013 8:38 pm
by ragax
Note that you can point error_log to a file with any name, e.g. myprettyPHPlog.txt
Preferably store it above the html root so it is not world-accessible.
After you've done all this, it may still not work. One common problem (which happened to me on a server not long ago) is permissions on the log file: PHP may not be able to write to it. Worst case, create an empty log file, and change the perms to 644, then trigger an error (divide something by zero) to see if the log gets appended. If it works, you may be able to scale back from 644.
Re: how to find php error log
Posted: Wed Sep 25, 2013 2:30 am
by priyankagound
Php stores error logs in /var/log/apache2 if php is an apache2 module. Shared hosts are often storing log files in your root directory /log subfolder. But...if you have access to a php.ini file you can do this:
error_log = /var/log/php-scripts.log
Re: how to find php error log
Posted: Mon Mar 17, 2014 5:15 am
by jangmi
You can see in /var/log/httpd/error_log