upgrading centos to php 5.2 in 1 minute

Just gave myself the high five.  The default centos yum repositories don't have PHP 5.2, which for a drupal developer is a major handicap. 

 

Step 1, add this guy's repo keys your server.  Yes, I am trusting his stuff.

rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

Step 2, add his repo to your system

vi /etc/yum.repos.d/utterramblings.repo

paste the following code:

[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka


Step 3, upgrade

yum upgrade php

Step 4, restart apache

apachectl restart

Step 5, Confirmation

php -version


Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options