<?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>No pain no gain &#187; PHP</title>
	<atom:link href="http://www.dikant.de/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dikant.de</link>
	<description>Personal blog of Peter Dikant</description>
	<lastBuildDate>Sat, 28 Jan 2012 12:25:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Speeding up PHP in 5 minutes</title>
		<link>http://www.dikant.de/2008/06/09/speeding-up-php-in-5-minutes/</link>
		<comments>http://www.dikant.de/2008/06/09/speeding-up-php-in-5-minutes/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 08:41:12 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.dikant.de/?p=45</guid>
		<description><![CDATA[By default PHP scripts are compiled on each access. This will become a real performance killer once your website hits a certain load. There is a number of Opcode caches available which try to overcome this recompiling issue by storing &#8230; <a href="http://www.dikant.de/2008/06/09/speeding-up-php-in-5-minutes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>By default PHP scripts are compiled on each access. This will become a real performance killer once your website hits a certain load. There is a number of Opcode caches available which try to overcome this recompiling issue by storing precompiled versions of your scripts in a cache. This blog entry will explain how to integrate the Alternative PHP Cache (<a href="http://pecl.php.net/package/apc">APC</a>) into your PHP5 installation. This tutorial is based on a Debian installation, but it should also work with alternative distributions.</p>
<p>APC ist installed using the PHP Extension Community Library (<a href="http://pecl.php.net/">PECL</a>). Using PECL ist similar to using the PEAR Library. Before you can install APC via PECL, make sure that you have the following packages installed:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php5-dev php5-gd</pre></div></div>

<p>Downloading compiling and installation of APC using PECL ist a breeze. Just run from the command line:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">pecl <span style="color: #c20cb9; font-weight: bold;">install</span> APC</pre></div></div>

<p>Now all you need to do is to add the following line to your <code>php.ini</code> file which you should find in <code>/etc/php5/apache2/</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">extension=apc.so</pre></div></div>

<p>Once you restart Apache, caching will be enabled with default settings of APC. By default APC will use 30 MB memory to cache your PHP files. It is a good idea to tailor this setting to your server. This can be done with the following line in <code>php.ini</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">apc.shm_size=<span style="color: #ff0000;">30</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.dikant.de/2008/06/09/speeding-up-php-in-5-minutes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

