Developing a Drupal community site has been really good for a while until I needed to search a module to integrate Facebook Connect with it. I found this module specifically for that. Unfortunately, it requires PHP version 5.2, but the one on the Godaddy VPS (which is by default a CentOS flavor) is 5.1 I think. I needed to upgrade the PHP version to 5.2, and the best possible way is to install the latest rpm for CentOS and do a yum update. Here were the steps I did:
1. Login to your server using SSH then create an updated .repo file (you need to be root user to do this)
vi /etc/yum.repos.d/centos-test.repo
2. Paste the following lines in it:
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/5/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
3. Run a yum update:
yum update php
That’s it! Your PHP installation should be updated in about 5 seconds! :)
BUT! There are known issues on this, specifically for Zend Optimizer, mcrypt and mhash PHP modules because they are the for the older version of PHP. I fixed the Zend Optimizer issue by re-installing the package itself by yum:
wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
yum install php-zend-optimizer
For the mcrypt and mhash issues, I just installed updated rpm packaged for these:
wget -c ftp://ftp.muug.mb.ca/mirror/centos/5.4/extras/i386/RPMS/php-mcrypt-5.1.6-15.el5.centos.1.i386.rpm
rpm -ivh --nodeps php-mhash-5.2.5-7.i386.rpm
wget -c ftp://ftp.pbone.net/mirror/yum.trixbox.org/centos/5/RPMS/php-mhash-5.2.5-7.i386.rpm
rpm -ivh --nodeps php-mcrypt-5.1.6-15.el5.centos.1.i386.rpm
Let me know if this helps or what issues you came across.
References:
http://www.freshblurbs.com/install-php-5-2-centos-5-2-using-yum
http://www.atomicorp.com/wiki/index.php/PHP
Related posts:
- How to Install/Recompile MCRYPT in PHP (CentOS VPS) I’m starting to develop sites with the Interspire Shopping Cart system, which I think is totally way better than Prestashop....
- Drupal – How to Diagnose a Blank White Screen: White Screen of Death (WSOD) While developing a Drupal website, I was testing out the created pages and suddenly on one page, nothing was loaded....
- WordPress Upgrade 2.8.3 Just a self note – I’ve upgraded my blog to the latest version of the best blogging platform in the...
- Improve Drupal Performance 400% using the Boost Module When developing Drupal websites, you will start to notice performance bumps when adding more and more modules to your site....
- Blog Renovation At last I was successful in finishing the new look of my blog; a more updated web2.0-ey style. I know...
- 9 Tips for Improving Drupal Performance I’ve started working on a Drupal Project just last month and although the learning curve is quite steep, its also...
- Search and Replace in MySQL I just went through a domain transfer for one of our websites, and the links in the posts are all...

add the end there you put the directions in the wrong order…
you have:
wget mcrypt
rpm mhash
wget mhash
rpm mcrypt
obviously should be:
wget mcrypt
rpm mcrypt
wget mhash
rpm mhash
that aside, thank you for this
Thank you for posting this. It is frustrating to see that GoDaddy is still offering PHP 5.1.6 by default as of April 2010, and moreover, that their own knowledge base doesn’t seem to include this particular tip (which I’m sure is not an uncommon issue). And forget about asking this by telephone. I have been meaning to experiment with Magento eCommerce but since it requires PHP 5.2, I haven’t been able to, but your steps seem to have done the trick. Thanks!