Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ggeorgaras/84649abe6d84fd0d15da59bba84e2d32 to your computer and use it in GitHub Desktop.
Save ggeorgaras/84649abe6d84fd0d15da59bba84e2d32 to your computer and use it in GitHub Desktop.
Upgrading PHP 5.3.3 to 5.4.x in CentOS 6.7
#Install epel
yum install epel
#or you can do this with wget
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
#Install remi
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm
#Just to be safe run update
yum update
#Upgrade the php and modules allready installed
yum --enablerepo=remi upgrade php* -y
#Check installed version of php and restart apache or php-fpm or both
php -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment