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

sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

Enable remi repo

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


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


now you can follow these instructions to install LAMP stack