<?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>linuxbuddies.com &#187; load</title>
	<atom:link href="http://linuxbuddies.com/tag/load/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxbuddies.com</link>
	<description>For linux documentations.</description>
	<lastBuildDate>Fri, 11 Sep 2009 10:11:58 +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  installation</title>
		<link>http://linuxbuddies.com/2008/12/26/eaccelerator-installation/</link>
		<comments>http://linuxbuddies.com/2008/12/26/eaccelerator-installation/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 19:01:31 +0000</pubDate>
		<dc:creator>Riyesh</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[eAccelerator]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[server load]]></category>

		<guid isPermaLink="false">http://linuxbuddies.com/?p=217</guid>
		<description><![CDATA[PHP eAccelerator is a free open source PHP accelerator, optimizer and dynamic content cache module that specially build to optimize php performance. According to php eaccelerator official site, php accelerator able to speed up the php code by 1-10 times and reduce server load.
 
Installing PHP eAccelerator from source
Requirements
     * php4 or php5
    * autoconf
    * automake
    * libtool
    ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-218" title="eacc" src="http://linuxbuddies.com/wp-content/uploads/2008/12/eacc.jpg" alt="eacc" width="111" height="64" /><span class="ilspan"><span>PHP </span></span><span><span>eAccelerator is a</span></span><span><span> </span></span><span><span>free open source</span></span><span><span> </span></span><span class="ilspan"><span>PHP</span></span><span><span> </span></span><span><span>accelerator, optimizer and dynamic content cache module that specially build to optimize</span></span><span><span> </span></span><span class="ilspan"><span>php </span></span><span><span>performance. According to</span></span><span><span> </span></span><span class="ilspan"><span>php</span></span><span><span> </span></span><span><span>eaccelerator official site,</span></span><span><span> </span></span><span class="ilspan"><span>php</span></span><span><span> </span></span><span><span>accelerator able to speed up the</span></span><span><span> </span></span><span class="ilspan"><span>php</span></span><span><span> </span></span><span><span>code by 1-10 times and reduce server load.</span></span></p>
<p> </p>
<p><span><span>Installing <span class="ilspan"><span>PHP </span></span><span><span>eAccelerator from source</span></span></span></span></p>
<p><span><span><span><span><span style="text-decoration: underline;">Requirements</span></span></span></span></span></p>
<blockquote><p><span><span><span><span><span style="text-decoration: underline;"><span>     * php4 or php5<br />
    * autoconf<br />
    * automake<br />
    * libtool<br />
    * m4 </span></span></span></span></span></span></p></blockquote>
<p><span><span><span><span><span style="text-decoration: underline;"><span><span>eAccelerator only works with mod_php or php in fastcgi mode. It can&#8217;t be used in cgi or cli because eAccelerator needs to set up shared memory, and this can only be done when all php instances that need to access it are forks of the first process.</span></span></span></span></span></span></span></p>
<p> </p>
<p><span><span><span><span><span style="text-decoration: underline;"><span><span><span style="text-decoration: underline;"><span>Installation </span></span><span><br />
download  eAccelerator</span></span></span></span></span></span></span></span></p>
<p>Download the tarball file from the source  </p>
<blockquote><p><strong><span>cd /usr/local/src/<br />
mkdir eacp<br />
cd eacp<br />
wget </span></strong><span><a href="http://bart.eaccelerator.net/source/0.9.5.2/eaccelerator-0.9.5.2.tar.bz2" target="_blank"><strong><span>http://bart.eaccelerator.net/source/0.9.5.2/eaccelerator-0.9.5.2.tar.bz2</span></strong></a></span><strong><span><br />
bunzip2 eaccelerator-0.9.5.2.tar.bz2<br />
tar xvf eaccelerator-0.9.5.2.tar<br />
cd eaccelerator-0.9.5.2 </span></strong></p></blockquote>
<p><span><span><span><span><span style="text-decoration: underline;"><span><span><span><br />
</span></span></span></span></span></span></span></span></p>
<blockquote><p><span><span><span><span><span style="text-decoration: underline;"><br />
</span></span></span></span></span></p></blockquote>
<p class="MsoNormal"><span> <span> Compiling eAccelerator </span></span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span><span><span>When you have more then one php install or the phpize and php-config scripts aren&#8217;t in your path then you should follow this procedure<br />
This example has php installed in /usr/bin/php (command to know the path &#8211; which php), this is the path of the &#8211;prefix option given to the php configuration script.</span></span></span></p>
<blockquote>
<p class="MsoNormal"><span><span><span><strong><span>export PHP_PREFIX=&#8221;/usr/&#8221;<br />
$PHP_PREFIX/bin/phpize</span></strong></span></span></span></p>
<p><strong>./configure &#8211;enable-eaccelerator=shared &#8211;with-php-config=$PHP_PREFIX/bin/php-config &#8211;with-eaccelerator-info</strong></p>
<p><strong> </strong><strong>make<br />
make install</strong></p></blockquote>
<p class="MsoNormal"><span><span><span><span><strong><span><span style="font-weight: normal;">copy the all php files under the eaccelerator-0.9.5.2 directory to the document root of server</span></span></strong></span></span></span></span></p>
<blockquote>
<p class="MsoNormal"><span><span><span><span><strong><span><span style="font-weight: normal;"><strong><span>cp *.php /usr/local/apache/htdocs/eacp</span></strong></span></span></strong></span></span></span></span></p>
</blockquote>
<p class="MsoNormal"><span><span><span><span><strong><span><span style="font-weight: normal;"><strong><span><span><span style="font-weight: normal;">Configuring eAccelerator</span></span></span></strong></span></span></strong></span></span></span></span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span><span><span><span><strong><span><span style="font-weight: normal;"><strong><span><span><span style="font-weight: normal;"><span>eAccelerator can be installed both as Zend or PHP extension. When you install eAccelerator as a zend_extension you need to give the full path to the eaccelerator.so library.</span></span></span></span></strong></span></span></strong></span></span></span></span></p>
<p><strong><strong> </strong></strong></p>
<p><strong><strong>To install as Zend extension: Add the follwing lines below the zend entries in the php.in file</strong></strong></p>
<blockquote>
<p class="MsoNormal"><span><span><span><span><strong><span><span style="font-weight: normal;"><strong><span><span><span style="font-weight: normal;"></span></span></span></strong></span></span></strong></span></span></span></span></p>
<p><strong><strong></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td valign="top"> </td>
</tr>
</tbody>
</table>
<p></strong></strong> </p></blockquote>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span> <strong>/scripts/restartsrv_httpd</strong></span></p>
<p class="MsoNormal"><span><strong></strong></span></p>
<p> Verify if eAccelerator works</p>
<blockquote>
<p class="MsoNormal"><span><span><span><span><strong><span><span style="font-weight: normal;"><strong><span><span><span style="font-weight: normal;"><span><span><br />
<strong>php -v </strong></span><br />
</span></span></span></span></strong></span></span></strong></span></span></span></span></p></blockquote>
<blockquote>
<p class="MsoNormal"><span><span><span><span><strong><span><span style="font-weight: normal;"><span><br />
</span></span></span></strong></span></span></span></span></p>
<p class="MsoNormal"><span><strong>eaccelerator.allowed_admin_path=&#8221;/usr/local/apache/htdocs/eacp&#8221;<br />
zend_extension=&#8221;/usr/local/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so&#8221;<br />
eaccelerator.shm_size=&#8221;16&#8243;<br />
eaccelerator.cache_dir=&#8221;/tmp/eaccelerator&#8221;<br />
eaccelerator.enable=&#8221;1&#8243;<br />
eaccelerator.optimizer=&#8221;1&#8243;<br />
eaccelerator.check_mtime=&#8221;1&#8243;<br />
eaccelerator.debug=&#8221;0&#8243;<br />
eaccelerator.filter=&#8221;"<br />
eaccelerator.shm_max=&#8221;0&#8243;<br />
eaccelerator.shm_ttl=&#8221;0&#8243;<br />
eaccelerator.shm_prune_period=&#8221;0&#8243;<br />
eaccelerator.shm_only=&#8221;0&#8243;<br />
eaccelerator.compress=&#8221;1&#8243;<br />
eaccelerator.compress_level=&#8221;9&#8243;</strong></span></p></blockquote>
<p class="MsoNormal"><span><strong><span style="font-weight: normal;">restart the httpd</span></strong></span></p>
<blockquote>
<p class="MsoNormal"><span><strong><span style="font-weight: normal;"><strong><span>/scripts/restartsrv_httpd</span></strong></span></strong></span></p>
</blockquote>
<p class="MsoNormal"><span>Verify if eAccelerator works </span></p>
<blockquote>
<p class="MsoNormal"><span><strong><span>php -v </span></strong></span></p>
</blockquote>
<p class="MsoNormal"><span><strong><span><span><span style="font-weight: normal;">When eAccelerator is loaded successfully you will see something like:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies<br />
    with eAccelerator v0.9.5-beta2, Copyright (c) 2004-2006 eAccelerator, by eAccelerator<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
or check with phpinfo page</span></span></span></strong></span></p>
<p><strong><span style="text-decoration: underline;"><span style="font-weight: normal;">Using Web contrlol panel of eAccelerator</span></span></p>
<p></strong></p>
<p><strong>browse the pages under the default document root</strong></p>
<blockquote>
<p class="MsoNormal"><span><strong><span><span></span></span></strong></span></p>
<p><strong> </strong><strong> <span><a href="http://default.domain.com/eacp/control.php" target="_blank"><span><span style="font-weight: normal;">http://default.domain.com/eacp/control.php</span></span></a></span></strong></p></blockquote>
<p class="MsoNormal"><span><strong><span><span><span><span style="font-weight: normal;"><br />
</span></span></span></span></strong></span></p>
<p class="MsoNormal"><span><span>Finished</span></span></p>
<p class="MsoNormal"><span><strong><span style="font-weight: normal;"><strong><span><br />
</span></strong></span></strong></span></p>
<blockquote>
<p class="MsoNormal"><span><strong><br />
</strong></span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://linuxbuddies.com/2008/12/26/eaccelerator-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
