<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: PHP Log All Errors to a Log File to Get Detailed Information</title> <atom:link href="http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: rajesh</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-170580</link> <dc:creator>rajesh</dc:creator> <pubDate>Wed, 13 Apr 2011 07:49:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-170580</guid> <description>thats excellent</description> <content:encoded><![CDATA[<p>thats excellent</p> ]]></content:encoded> </item> <item><title>By: yuri</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-166877</link> <dc:creator>yuri</dc:creator> <pubDate>Thu, 30 Dec 2010 01:31:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-166877</guid> <description>I followed the steps above and its still not working, what should I do?</description> <content:encoded><![CDATA[<p>I followed the steps above and its still not working, what should I do?</p> ]]></content:encoded> </item> <item><title>By: pawel</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-158840</link> <dc:creator>pawel</dc:creator> <pubDate>Thu, 12 Aug 2010 10:21:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-158840</guid> <description>what i read was enough to solve my issue, why im writing is to see if i get one nice picture with no.16 on the right :)</description> <content:encoded><![CDATA[<p>what i read was enough to solve my issue, why im writing is to see if i get one nice picture with no.16 on the right :)</p> ]]></content:encoded> </item> <item><title>By: Dhanesh Mane</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-156580</link> <dc:creator>Dhanesh Mane</dc:creator> <pubDate>Mon, 14 Jun 2010 07:12:55 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-156580</guid> <description>Hey ,
I think if you are error_log directive is set to syslog, then logs are save at /var/log/message.
On my server its set to syslog and the file /var/log/message is also updated but I am not able to find any php log data in this file.
any hint wat&#039;s happening?</description> <content:encoded><![CDATA[<p>Hey ,</p><p>I think if you are error_log directive is set to syslog, then logs are save at /var/log/message.<br
/> On my server its set to syslog and the file /var/log/message is also updated but I am not able to find any php log data in this file.</p><p>any hint wat&#8217;s happening?</p> ]]></content:encoded> </item> <item><title>By: lcd</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-153119</link> <dc:creator>lcd</dc:creator> <pubDate>Mon, 25 Jan 2010 16:09:26 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-153119</guid> <description>You have great blog and this post is good!
--</description> <content:encoded><![CDATA[<p>You have great blog and this post is good!<br
/> &#8211;</p> ]]></content:encoded> </item> <item><title>By: Liju</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-152434</link> <dc:creator>Liju</dc:creator> <pubDate>Wed, 23 Dec 2009 05:08:05 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-152434</guid> <description>I think  it  would need to enable this tag (log_errors = On) php.ini to get this complete.
But  I suggest it&#039;s not a good Idea to enable on the main configuration file where a server hosted multiple sites.  Just add this entries on .htaccess  make sense on such case to trouble shoot.</description> <content:encoded><![CDATA[<p>I think  it  would need to enable this tag (log_errors = On) php.ini to get this complete.</p><p>But  I suggest it&#8217;s not a good Idea to enable on the main configuration file where a server hosted multiple sites.  Just add this entries on .htaccess  make sense on such case to trouble shoot.</p> ]]></content:encoded> </item> <item><title>By: Svetainiu Kurimas</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-151108</link> <dc:creator>Svetainiu Kurimas</dc:creator> <pubDate>Mon, 19 Oct 2009 16:24:13 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-151108</guid> <description>Hi, does the init_set solution also work with Apache installed on Windows? It doe snot  seem to be working for me.</description> <content:encoded><![CDATA[<p>Hi, does the init_set solution also work with Apache installed on Windows? It doe snot  seem to be working for me.</p> ]]></content:encoded> </item> <item><title>By: how to log php error in a file</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-146820</link> <dc:creator>how to log php error in a file</dc:creator> <pubDate>Wed, 21 Jan 2009 15:26:29 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-146820</guid> <description>[...] PHP Log All Errors to a Log File to Get Detailed Information    __________________ Vivek &#124; My personal blog Linux Evangelist  Play hard stay cool [...]</description> <content:encoded><![CDATA[<p>[...] PHP Log All Errors to a Log File to Get Detailed Information    __________________ Vivek | My personal blog Linux Evangelist  Play hard stay cool [...]</p> ]]></content:encoded> </item> <item><title>By: Carl</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-145366</link> <dc:creator>Carl</dc:creator> <pubDate>Fri, 24 Oct 2008 19:37:07 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-145366</guid> <description>@Kurt
You might try ini_set() as well if you have trouble getting custom php.ini files to work</description> <content:encoded><![CDATA[<p>@Kurt<br
/> You might try ini_set() as well if you have trouble getting custom php.ini files to work</p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-145361</link> <dc:creator>vivek</dc:creator> <pubDate>Fri, 24 Oct 2008 11:28:25 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-145361</guid> <description>Kurt,
You need to setup php as FastCGI which allows the -c option. With this option you can provide custom php.ini file and error log file for each user. See this &lt;a href=&quot;http://www.cyberciti.biz/tips/custom-phpini-file-for-each-domain-user.html&quot; rel=&quot;nofollow&quot;&gt;article for more info&lt;/a&gt;. This is lighttpd specific but you should able to setup with Apache or any other server with mod_fastcgi.
HTH</description> <content:encoded><![CDATA[<p>Kurt,</p><p>You need to setup php as FastCGI which allows the -c option. With this option you can provide custom php.ini file and error log file for each user. See this <a
href="http://www.cyberciti.biz/tips/custom-phpini-file-for-each-domain-user.html" rel="nofollow">article for more info</a>. This is lighttpd specific but you should able to setup with Apache or any other server with mod_fastcgi.</p><p>HTH</p> ]]></content:encoded> </item> <item><title>By: Kurt</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-145357</link> <dc:creator>Kurt</dc:creator> <pubDate>Fri, 24 Oct 2008 07:31:01 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-145357</guid> <description>Hellow,
Is it possible to log errors of diffrent websites in different errorfiles?
I have a server that&#039;s hosting different websites and I want that all of the php-errors are logged in different file. For each website a file.
Is that possible and how do I do it?
tnx in advance</description> <content:encoded><![CDATA[<p>Hellow,</p><p>Is it possible to log errors of diffrent websites in different errorfiles?</p><p>I have a server that&#8217;s hosting different websites and I want that all of the php-errors are logged in different file. For each website a file.</p><p>Is that possible and how do I do it?</p><p>tnx in advance</p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-145209</link> <dc:creator>vivek</dc:creator> <pubDate>Thu, 09 Oct 2008 15:13:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-145209</guid> <description>Carl,
Use chmod and chown command to set permissions.</description> <content:encoded><![CDATA[<p>Carl,</p><p>Use chmod and chown command to set permissions.</p> ]]></content:encoded> </item> <item><title>By: Carl</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-145208</link> <dc:creator>Carl</dc:creator> <pubDate>Thu, 09 Oct 2008 15:06:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-145208</guid> <description>&quot;yes I did assumed that Apache or lighttpd has a write permissions&quot;
In the case that it doesn&#039;t, how can this be changed?</description> <content:encoded><![CDATA[<p>&#8220;yes I did assumed that Apache or lighttpd has a write permissions&#8221;</p><p>In the case that it doesn&#8217;t, how can this be changed?</p> ]]></content:encoded> </item> <item><title>By: China Landscape</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-143736</link> <dc:creator>China Landscape</dc:creator> <pubDate>Fri, 09 May 2008 09:19:53 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-143736</guid> <description>I have ligttpd (PHP FastCGI) and I cannot see the log.
How can I get it in this case ?</description> <content:encoded><![CDATA[<p>I have ligttpd (PHP FastCGI) and I cannot see the log.</p><p>How can I get it in this case ?</p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-142589</link> <dc:creator>vivek</dc:creator> <pubDate>Tue, 22 Jan 2008 12:04:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-142589</guid> <description>Thanks for the heads up!</description> <content:encoded><![CDATA[<p>Thanks for the heads up!</p> ]]></content:encoded> </item> <item><title>By: Alekc</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-142588</link> <dc:creator>Alekc</dc:creator> <pubDate>Tue, 22 Jan 2008 11:48:01 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-142588</guid> <description>Small misspelling in title: &quot;log fiie&quot;</description> <content:encoded><![CDATA[<p>Small misspelling in title: &#8220;log fiie&#8221;</p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-140633</link> <dc:creator>vivek</dc:creator> <pubDate>Mon, 30 Jul 2007 21:27:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-140633</guid> <description>@Anjanesh, good point, user can set those from a php script itself.
@Philipp, yes I did assumed that Apache or lighttpd has a write permissions
Appreciate your posts!</description> <content:encoded><![CDATA[<p>@Anjanesh, good point, user can set those from a php script itself.</p><p>@Philipp, yes I did assumed that Apache or lighttpd has a write permissions</p><p>Appreciate your posts!</p> ]]></content:encoded> </item> <item><title>By: Philipp</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-140624</link> <dc:creator>Philipp</dc:creator> <pubDate>Mon, 30 Jul 2007 07:26:03 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-140624</guid> <description>You have to watch, that the logfile is writeable by the web-server process!</description> <content:encoded><![CDATA[<p>You have to watch, that the logfile is writeable by the web-server process!</p> ]]></content:encoded> </item> <item><title>By: Anjanesh</title><link>http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-140620</link> <dc:creator>Anjanesh</dc:creator> <pubDate>Mon, 30 Jul 2007 03:22:27 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html#comment-140620</guid> <description>It would be much better to have a single config php-file and define them there instead.
&lt;code&gt;
ini_set(&quot;log_errors&quot;     , &quot;1&quot;);
ini_set(&quot;error_log&quot;      , &quot;Errors.log.txt&quot;);
ini_set(&quot;display_errors&quot; , &quot;0&quot;);
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>It would be much better to have a single config php-file and define them there instead.<br
/> <code><br
/> ini_set("log_errors"     , "1");<br
/> ini_set("error_log"      , "Errors.log.txt");<br
/> ini_set("display_errors" , "0");<br
/> </code></p> ]]></content:encoded> </item> </channel> </rss>
