<?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>Full HeartDisk &#187; Install PHP 5.2 on CentOS 5</title>
	<atom:link href="http://www.lewiverdatama.com/tag/install-php-5-2-on-centos-5/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lewiverdatama.com</link>
	<description>repository of my ideas!</description>
	<lastBuildDate>Wed, 30 Nov 2011 03:48:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing PHP 5.2 on CentOS 5 64bit</title>
		<link>http://www.lewiverdatama.com/tutorial/installing-php-5-2-on-centos-5-64bit</link>
		<comments>http://www.lewiverdatama.com/tutorial/installing-php-5-2-on-centos-5-64bit#comments</comments>
		<pubDate>Fri, 09 Jul 2010 11:54:40 +0000</pubDate>
		<dc:creator>Lewi Verdatama</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Install PHP 5.2 on CentOS 5]]></category>

		<guid isPermaLink="false">http://www.lewiverdatama.com/?p=179</guid>
		<description><![CDATA[I&#8217;m almost crazy thinking about how to update my current PHP 5.1 on CentOS 5 64bit. My phpMyAdmin won&#8217;t work on PHP 5.1 and everytime i try to update via yum command, it always says that PHP already installed and no update repo. The yum command that i use to update php is #yum update [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m almost crazy thinking about how to update my current PHP 5.1 on CentOS 5 64bit. My phpMyAdmin won&#8217;t work on PHP 5.1 and everytime i try to update via yum command, it always says that PHP already installed and no update repo. The yum command that i use to update php is</p>
<p><code> #yum update php<span id="more-179"></span></code></p>
<p>But, finally i figure out that PHP 5.2 must be manually install and update through repo update. As long as you&#8217;re using the standard PHP packages on your CentOS server you won&#8217;t need to do anything extra. If you&#8217;re using extra PHP packages that aren&#8217;t part of the standard CentOS repositories (like php-mcrypt) you&#8217;ll have to remove them or find updated versions of them.</p>
<p><strong>Add the development repositories</strong></p>
<p>First thing we need to do is add the development repositories to yum.  When we add the development repository we&#8217;re going to configure it so it  only pulls PHP packages. To start we&#8217;ll need create a new yum  repository configuration file (use your favorite editor)</p>
<p><code># /etc/yum.repos.d/CentOS-Testing.repo</code></p>
<p>Copy/paste the following into this file:</p>
<p><code># CentOS-Testing:</code><br />
<code># !!!! CAUTION !!!!</code><br />
<code># This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras.</code><br />
<code># They may or may not replace core CentOS packages, and are not guaranteed to function properly.</code><br />
<code># These packages build and install, but are waiting for feedback from testers as to</code><br />
<code># functionality and stability. Packages in this repository will come and go during the</code><br />
<code># development period, so it should not be left enabled or used on production systems without due</code><br />
<code># consideration.</code><br />
<code>[c5-testing]</code><br />
<code>name=CentOS-5 Testing</code><br />
<code>baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/</code><br />
<code>enabled=1</code><br />
<code>gpgcheck=1</code><br />
<code>gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing</code><br />
<code>includepkgs=php*</code></p>
<p>Make sure to remove any spaces at the start of each line, then save and close the file and you&#8217;re done.</p>
<p><strong>Update PHP packages</strong></p>
<p>Before updating your PHP packages you&#8217;ll want to get a list of what you currently have installed. To get a list of current PHP packages run the following:</p>
<p><code># rpm -qa |grep php</code></p>
<p>Now you can use yum to update the PHP packages on your system:</p>
<p><code># yum update</code></p>
<p>You should be shown a list of packages that are going to be updated. Compare it to the list of PHP packages on your system. Note any packages that are not in the list. You&#8217;ll need to remove these packages or find updates for them because they won&#8217;t work after you update to PHP 5.2.x. If that is acceptable type &#8220;y&#8221; to continue and let yum update the packages.</p>
<p>Once yum has completed restart Apache:</p>
<p><code># service httpd restart</code></p>
<p>Now you have PHP 5.2 installed on your CentOS 5 64bit and of course my phpMyAdmin now working! <img src='http://www.lewiverdatama.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />
<div class="fblike_button" style="margin: 10px 0;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.lewiverdatama.com%2Ftutorial%2Finstalling-php-5-2-on-centos-5-64bit&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=segoe ui&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:23px"></iframe></div>
]]></content:encoded>
			<wfw:commentRss>http://www.lewiverdatama.com/tutorial/installing-php-5-2-on-centos-5-64bit/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

