<?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>TheHippo &#187; eAccelerator</title>
	<atom:link href="http://blog.thehippo.de/tag/eaccelerator/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.thehippo.de</link>
	<description>if (i=1) throw null;</description>
	<lastBuildDate>Thu, 05 Aug 2010 18:10:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>eAccelerator on Ubuntu</title>
		<link>http://blog.thehippo.de/2009/08/server/eaccelerator-on-ubuntu/</link>
		<comments>http://blog.thehippo.de/2009/08/server/eaccelerator-on-ubuntu/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 17:34:43 +0000</pubDate>
		<dc:creator>Hippo</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[eAccelerator]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.thehippo.de/?p=19</guid>
		<description><![CDATA[On the last blog I wrote for was an article which described who to install eAccelerator on a Ubuntu server. As this blog entry had a lot of visits I decided to put it on this blog again: PHP is not the fastest scripting language, that truly a fact. Except from optimizing the scripts there [...]]]></description>
			<content:encoded><![CDATA[<p>On the last blog I wrote for was an article which described who to install eAccelerator on a <a title="Ubuntu" href="http://www.ubuntu.com" target="_blank">Ubuntu</a> server. As this blog entry had a lot of visits I decided to put it on this blog again:</p>
<p><a title="PHP" href="http://www.php.net" target="_blank">PHP</a> is not the fastest scripting language, that truly a fact. Except from optimizing the scripts there a few possibilities to speed everything up. One is to install a byte code optimizer and cache on your server. They cache the byte code created by the PHP parser and try to optimise it. So every time some one requests for a page on your server the script does not have to be parsed again. This brings a speedup of 120 &#8211; 250% depending on you script. There are several byte code caching program available, the one I like most is <a title="eAccelerator" href="http://www.eaccelerator.net/" target="_blank">eAccelerator</a>. Sadly eAccelerator is not available through the Ubuntu repositories so you have install them yourself. Here is a short description how to archive this!<br />
<span id="more-19"></span>Everything is done from the terminal as a root user.</p>
<ul>
<li>Prepare you system for compiling a PHP extension:
<pre>apt-get install build-essential php5-dev</pre>
</li>
<li>Choosing a folder for build process. I used &#8220;/usr/local/src/&#8221;</li>
<li>Getting the sources from the eAccelerator site:
<pre>wget <a class="linkification-ext" title="Linkification: http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.zip" href="http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.zip">http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.zip</a></pre>
</li>
<li>Extract and delete the archive
<pre>unzip eaccelerator-0.9.5.3.zip &amp;&amp; rm eaccelerator-0.9.5.3.zip</pre>
</li>
<li>Enter the folder
<pre>cd eaccelerator-0.9.5.3</pre>
</li>
<li>Prepare as a new PHP extension and compilation
<pre>phpize
./configure --enable-eaccelerator=shared</pre>
</li>
<li>Compile and install
<pre>make
make install</pre>
<p>The install process prints out a folder where eAccelerator has been installed. Remember or copy it, you will need this later.</li>
<li>Enabling eAcceletor: Editing your &#8220;php.ini&#8221; or create a new ini file in you conf.d directory of PHP. (You can find them here: &#8220;/etc/php5/&#8221;.) Insert the following:
<pre>zend_extension                  = "/usr/lib/php5/20060613+lfs/eaccelerator.so"
eaccelerator.shm_size           = "0"
eaccelerator.cache_dir          = "/var/cache/eaccelerator"
eaccelerator.enable             = "1"
eaccelerator.optimizer          = "1"
eaccelerator.check_mtime        = "1"
eaccelerator.debug              = "0"
eaccelerator.filter             = ""
eaccelerator.shm_max            = "0"
eaccelerator.shm_ttl            = "0"
eaccelerator.shm_prune_period   = "0"
eaccelerator.shm_only           = "0"
eaccelerator.compress           = "1"
eaccelerator.compress_level     = "7"
eaccelerator.allowed_admin_path = "/var/www/eaccelerator"</pre>
<p>In the first line enter the path printed out during the install. In the last line you could enter a directory for the eAccelerator admin tool, if you want to use it.</li>
<li>Create the cache directory:
<pre>mkdir /var/cache/eaccelerator
chown www-data.www-data /var/cache/eaccelerator</pre>
</li>
<li>Restart you Apache!
<pre>/etc/init.d/apache2 restart</pre>
</li>
</ul>
<p>There are a lot of setting in the ini file. The whole list and the description of them could be found here:  <a title="eAccelerator Ini-settings" href="http://eaccelerator.net/wiki/Settings" target="_blank">Ini-settings</a>.</p>
<p>To check if everything is working open up a page on the server that contains the &#8220;php_info();&#8221; command. There should be some thing like this:</p>
<div id="attachment_32" class="wp-caption aligncenter" style="width: 617px"><img class="size-full wp-image-32" title="eAccelerator" src="http://blog.thehippo.de/wp-content/uploads/2009/08/eacclerator.jpg" alt="eAccelerator" width="607" height="98" /><p class="wp-caption-text">eAccelerator</p></div>
<p>Enjoy the speed!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thehippo.de/2009/08/server/eaccelerator-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.180 seconds -->
