Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: php error logs
PostPosted: Sun Jan 15, 2012 6:27 pm 
Offline
Newbie

Joined: Sun Jan 15, 2012 6:06 pm
Posts: 2
I have WSOD issue and would like to investigate issue.

Need help with php.ini config - or other config if php.ini is not starting point - for php error logs.

Kind regards,

P.S. I know where to get apache error logs and those logs are not sufficient.


Top
   
 Post subject:
PostPosted: Sun Jan 15, 2012 6:48 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
in your php.ini file set error_log to a file in a folder writable by the web server user (assuming you're running apache mod_prefork) the php.ini file location varies with distribution which are you using?

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sun Jan 15, 2012 6:52 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
If this is Apache + mod_php on Debian or Ubuntu, the relevant php.ini file is /etc/php5/apache2/php.ini
Code:
log_errors = On

That will make PHP errors show up in Apache logs by default.

If you want to send error messages to another file, you can also add
Code:
error_log = /path/to/error_log

but you'll need to make sure that the log file is writable by www-data.


Top
   
 Post subject: THANKS
PostPosted: Mon Jan 16, 2012 10:46 am 
Offline
Newbie

Joined: Sun Jan 15, 2012 6:06 pm
Posts: 2
Got. Thanks.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group