PHP 5.4.x on CentOS 6.5

PHP 5.4.x on CentOS 6.5

Quick copy and paste list of commands to get PHP 5.4 on CentOS boxes

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

Enable remi repo

sudo nano /etc/yum.repos.d/remi.repo

Update

sudo yum update
sudo yum info php
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirror.optus.net
 * epel: fedora.mirror.serversaustralia.com.au
 * extras: ftp.swin.edu.au
 * remi: remi.kazukioishi.net
 * updates: ftp.swin.edu.au
Available Packages
Name        : php
Arch        : x86_64
Version     : 5.4.33
Release     : 2.el6.remi
Size        : 2.7 M
Repo        : remi

done…

now you can follow these instructions to install LAMP stack