<?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>Bloggy Bloggy My Blog &#187; php</title>
	<atom:link href="http://www.myblog.bloggybloggy.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.myblog.bloggybloggy.com</link>
	<description>Bloggy Bloggy is a Portal to my College Life as it Happens and other cool stuff.</description>
	<lastBuildDate>Mon, 31 Oct 2011 20:42:14 +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>Upgrading to PHP 5.2.5 on Direct Admin Server</title>
		<link>http://www.myblog.bloggybloggy.com/upgrading-php5-on-direct-admin-centos-30-11-2007/</link>
		<comments>http://www.myblog.bloggybloggy.com/upgrading-php5-on-direct-admin-centos-30-11-2007/#comments</comments>
		<pubDate>Fri, 30 Nov 2007 07:46:06 +0000</pubDate>
		<dc:creator>Sumeet</dc:creator>
				<category><![CDATA[Webmastering]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[direct admin]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php upgrade]]></category>
		<category><![CDATA[php5]]></category>

		<guid isPermaLink="false">http://www.myblog.bloggybloggy.com/upgrading-php5-on-direct-admin-centos-30-11-2007/</guid>
		<description><![CDATA[Learnt a neat trick to update/upgrade Php 4.4.7 on my test server to php 5.2.5 running centos 5 and direct admin as control panel. Took me a while to google up all the answers, so thought why not just put a small tutorial to install php 5.2.5 on apache2 based machine with direct admin on [...]]]></description>
			<content:encoded><![CDATA[<p>Learnt a neat trick to update/upgrade Php 4.4.7 on my test server to php 5.2.5 running centos 5 and direct admin as control panel. Took me a while to google up all the answers, so thought why not just put a small tutorial to install php 5.2.5 on apache2 based machine with direct admin on it.</p>
<p>First for sake of it run</p>
<p>yum install libxml-devel (this command on centos upgrades libxml or installs it if its mising and trust me you need to do this cause it saves time, otherwise php compile will end abruptly giving error :</p>
<p>Configuring extensions<br />
checking whether to enable LIBXML support&#8230; yes<br />
checking libxml2 install dir&#8230; no<br />
checking for xml2-config path&#8230;<br />
configure: error: xml2-config not found. Please check your libxml2 installation.</p>
<p>*** There was an error while trying to configure php. Check the configure.php file</p>
<p>Better safe than sorry <img src='http://www.myblog.bloggybloggy.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . <span id="more-27"></span></p>
<p>After that has taken place do like mentioned below and you should be all set.</p>
<p>Login to server as Root.<br />
Type (do not copy entire commands here go in steps)<br />
Note that if you have different version of php than 4.4.7 running,<br />
change PHP_VER=4.4.7 that to your current version of PHP installed.</p>
<p>cd /usr/local/directadmin/customapache<br />
rm -fr build<br />
wget http://files.directadmin.com/services/customapache/build<br />
chmod 755 build<br />
./build update<br />
./build clean<br />
wget http://files.directadmin.com/services/customapache/php-5.2.5.tar.gz<br />
perl -pi -e &#8216;s/PHP_VER=4.4.7/PHP_VER=5.2.5/&#8217; build<br />
./build php_ap2</p>
<p>Now wait for it to upgrade/install say yes to things it asks to reinstall it doesnt hurt.</p>
<p>Copy httpd.conf file for backup :</p>
<p>cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.safe.copy</p>
<p>Now few things we should check before restarting apache.<br />
Edit /etc/httpd/conf/httpd.conf using nano /etc/httpd/conf/httpd.conf as command.<br />
Locate for following<br />
LoadModule php4_module /usr/lib/apache/libphp4.so</p>
<p>if its there comment it out like this :<br />
#LoadModule php4_module /usr/lib/apache/libphp4.so</p>
<p>Add this after that if this line does not exist :<br />
LoadModule php5_module        /usr/lib/apache/libphp5.so</p>
<p>Search for<br />
application/x-httpd-php<br />
To this add php5 like this if it does not exist already:<br />
application/x-httpd-php .inc .php .php5 .php4 .php3 .phtml</p>
<p>Save file and exit, and rebooot httpd or apache2 using :<br />
/sbin/service httpd restart</p>
<p>Enjoy. (will post tutorial on how to update apache 1.3 to apache 2 also on direct admin soon)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myblog.bloggybloggy.com/upgrading-php5-on-direct-admin-centos-30-11-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

