Introduction

I was recently tasked with working on getting PHP 5.3 installed with Gearman on CentOS 5.5. I’ve learned quite a few of the pains of working with RPMs and have reminded myself why I don’t work with RHEL on a regular basis (for personal items anyway). I have had some success in getting everything working correctly and the following is the quick easy way to get this done on an x86_64 CentOS 5.5 install (although other RHELs should work as well).

Upgrade PHP

First, we need to upgrade PHP from the IUS Community Repository. Once you have the epel and ius repositories installed and working you simply:

yum remove php
yum install php53

If the second yum command complains simply remove all php packages listed form `rpm -qa | grep ^php’ and install the php53 equivalents.

Install Gearman

I recompiled the Fedora source RPMs (with a slightly modified spec file) to get Gearman to play nicely with the CentOS 5.5 environment. These RPMs are available in my repository. Simply install these RPMs (letting me know if there are any issues with them) and you should be ready to install the PHP Gearman Interface.

Install php-gearman

This is the easiest part once you have the requirements fulfilled. Simply `pear install channel://pecl.php.net/gearman-0.7.0` and you’re finished.

Conclusion

If you must use RHEL this guide should help you get gearman running with PHP in a snap.

Alex Brandt

An avid Linux user for many years (since 2004). Have moved through Fedora, Slackware, and finally settled on Gentoo as a distribution of choice. Hacking Gentoo and other software as well as playing bass pass the time and add a flair of fun.

Sorry, the comment form is closed at this time.

   
© 2011 Alunduil's Hosting Suffusion theme by Sayontan Sinha