#1  
Old 8th September 2009, 20:16
gring gring is offline
Member
 
Join Date: Mar 2009
Posts: 46
Thanks: 2
Thanked 3 Times in 3 Posts
Default php error log for each website

Hi!

Is it possible to have php to log its errors to a different file for each website, like it is the case for the apache logs?

in php.ini it is explained how to log to a file, but it's the same file for every website.

thanks
Reply With Quote
Sponsored Links
  #2  
Old 9th September 2009, 00:48
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 42 Times in 35 Posts
Send a message via Skype™ to Leszek
Default

One way to do it is to use suphp and have individual php.ini files configured for each virtual host to have it's own log file.
Reply With Quote
  #3  
Old 9th September 2009, 12:57
gring gring is offline
Member
 
Join Date: Mar 2009
Posts: 46
Thanks: 2
Thanked 3 Times in 3 Posts
 
Default

Hi Leszek

Thanks for your answer.
It seems that the solution was simple, just activate logging in php.ini without specifying a log file, and the errors will be logged in apache's logs, which are already separated for each site
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 08:20
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 13:06
ispconfig php 5 errors itamarjp Installation/Configuration 8 25th April 2008 10:20
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18


All times are GMT +2. The time now is 00:39.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.