PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sat Sep 22, 2018 12:57 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Thu May 02, 2013 6:55 am 
Offline
Forum Newbie

Joined: Thu May 02, 2013 6:26 am
Posts: 1
Hi,

I am unable to find php error log's cvan anyone help out to find error log...

Thanks,


Top
 Profile  
 
PostPosted: Thu May 02, 2013 1:00 pm 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6617
Location: WA, USA
Check the error_log php.ini setting. If that's empty then check your web server logs.


Top
 Profile  
 
PostPosted: Tue May 07, 2013 7:09 am 
Offline
Forum Commoner

Joined: Mon Mar 25, 2013 6:52 am
Posts: 30
Check: /home/username/logs/example.com/http/error.log


Top
 Profile  
 
PostPosted: Tue Jun 18, 2013 4:57 am 
Offline
Forum Newbie

Joined: Sat Jun 08, 2013 1:30 am
Posts: 1
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 .


Last edited by requinix on Tue Jun 18, 2013 12:40 pm, edited 1 time in total.
removing spammy link


Top
 Profile  
 
PostPosted: Thu Jul 25, 2013 8:38 pm 
Offline
Forum Commoner
User avatar

Joined: Thu Dec 15, 2011 2:40 pm
Posts: 85
Location: Nelson, NZ
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.


Top
 Profile  
 
PostPosted: Wed Sep 25, 2013 2:30 am 
Offline
Forum Commoner

Joined: Thu Sep 19, 2013 2:53 am
Posts: 27
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


Top
 Profile  
 
PostPosted: Mon Mar 17, 2014 5:15 am 
Offline
Forum Newbie

Joined: Sat Mar 08, 2014 8:39 am
Posts: 11
You can see in /var/log/httpd/error_log


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group