<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dom111.co.uk &#187; Apache</title>
	<atom:link href="http://www.dom111.co.uk/blog/tag/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dom111.co.uk/blog</link>
	<description>Move along. Nothing to see here.</description>
	<lastBuildDate>Wed, 26 Oct 2011 16:37:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Apache, Subversion and favicon.ico</title>
		<link>http://www.dom111.co.uk/blog/apple/apache-subversion-and-favicon-ico/205</link>
		<comments>http://www.dom111.co.uk/blog/apple/apache-subversion-and-favicon-ico/205#comments</comments>
		<pubDate>Tue, 20 Oct 2009 11:20:07 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[favicon]]></category>
		<category><![CDATA[favicon.ico]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=205</guid>
		<description><![CDATA[I discovered a strange error in my apache logs today: [Tue Oct 20 11:04:10 2009] [error] [client 12.34.56.78] (20014)Internal error: Can't open file '/.../svn/repositories/favicon.ico/format': No such file or directory [Tue Oct 20 11:55:55 2009] [error] [client 12.34.56.78] Could not fetch resource information. [500, #0] [Tue Oct 20 11:55:55 2009] [error] [client 12.34.56.78] Could not open [...]]]></description>
			<content:encoded><![CDATA[<p>I discovered a strange error in my apache logs today:</p>
<pre>[Tue Oct 20 11:04:10 2009] [error] [client 12.34.56.78] (20014)Internal error: Can't open file '/.../svn/repositories/favicon.ico/format': No such file or directory
[Tue Oct 20 11:55:55 2009] [error] [client 12.34.56.78] Could not fetch resource information.  [500, #0]
[Tue Oct 20 11:55:55 2009] [error] [client 12.34.56.78] Could not open the requested SVN filesystem  [500, #2]
[Tue Oct 20 11:55:55 2009] [error] [client 12.34.56.78] Could not open the requested SVN filesystem  [500, #2]</pre>
<p>Most of my Google searches returned issues where people couldn&#8217;t view their repositories, but I could see mine fine&#8230;</p>
<p>Then I looked at the error messages again and noticed it was looking for a repository called favicon.ico. A quick Google later and I found this page:</p>
<p><a href="http://www.trilithium.com/johan/2005/02/no-favicon/">http://www.trilithium.com/johan/2005/02/no-favicon/</a></p>
<p>Adding the suggested items to my Apache conf fixed the problem!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/apple/apache-subversion-and-favicon-ico/205/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>php-log: Process apache log files with PHP</title>
		<link>http://www.dom111.co.uk/blog/coding/php-log-process-apache-log-files-with-php/49</link>
		<comments>http://www.dom111.co.uk/blog/coding/php-log-process-apache-log-files-with-php/49#comments</comments>
		<pubDate>Mon, 12 Jan 2009 10:12:25 +0000</pubDate>
		<dc:creator>dom111</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache log]]></category>
		<category><![CDATA[log]]></category>

		<guid isPermaLink="false">http://www.dom111.co.uk/blog/?p=49</guid>
		<description><![CDATA[I&#8217;ve recently had to quickly parse an Apache log file, to get basic usage statistics for a site over a month and wanted the ability to quickly process any general logs and store them in a MySQL table, so I&#8217;ve made a small package class.log. Included in the package are: class.log.php (the main class) class.log.processor.php (an [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently had to quickly parse an Apache log file, to get basic usage statistics for a site over a month and wanted the ability to quickly process any general logs and store them in a MySQL table, so I&#8217;ve made a small package class.log.</p>
<p>Included in the package are:</p>
<ul>
<li>class.log.php (the main class)</li>
<li>class.log.processor.php (an interface for a log processor, very basic!!)</li>
<li>class.log.output.php (a simple extension of the processor (outputs &lt;p&gt; tags with &lt;span&gt;s)</li>
<li>class.log.mysql.php (a simple mysql importer of the processed data)</li>
<li>parse.php (a simple implementation, bringing all the classes together)</li>
</ul>
<p>The class is designed to use one line at a time from the log retrieved, and the regular expression specified in class.log.php can be modified to parse different types of logs as long as the matches array is also updated.</p>
<p>I&#8217;ve only used this for apache logs currently, which it managed quite well, I&#8217;m not sure if I&#8217;d use this script in an automated script, but I&#8217;ll leave that for you to decide.</p>
<p>As other scripts, this class is available under the Creative Commons Share Alike Attribution license.</p>
<p>Edit: Minor update, made class more generic and added more comments.</p>
<p><a href="/files/php-log/class.log-0.2.tar.gz">Download (3.7kB)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dom111.co.uk/blog/coding/php-log-process-apache-log-files-with-php/49/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

