Install PHP and MySQL on Redhat Enterprise Server 5.5

This post is more for personal reference as I couldn’t find anything definitive online for installing PHP and MySQL on RHEL5.5 easily.

sudo -s
wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

yum update

yum install php php-devel php-mysql php-gd php-imap php-xml php-odbc  php-mssql

Hopefully someone else will find this useful

4 thoughts on “Install PHP and MySQL on Redhat Enterprise Server 5.5

  1. I’m surprised you had to do this. MySQL and PHP are provided with RHEL. I imagine that just installing php-mysql would have also installed mysql as a dependency, as well as most of the php packages you needed. Did you need a specific, newer version of MySQL and PHP than comes as default on RHEL?

  2. RHEL only support PHP 5.1 and for some of the stuff we are working on we need 5.3. We spent hours compiling PHP 5.3 to how we need it (getting MSSQL support working on a Linux box requires sacrifices at a full moon) and then I stumbled across a community repo that has upto date packages so I thought I’d share it.

  3. Ah, yes. That makes sense. Unless you need the source code compiling with a specific configuration, you shouldn’t have to compile stuff like MySQL and PHP from source 🙂

Leave a Reply to Alex Bilbie Cancel reply

Your email address will not be published.