How to upgrade php from 5.4 to 5.5 on CentOS 7?


Create a file with sh extension, put the following contents to it, make the file executable with chmod +x file_name , launch the file

#!/bin/bash -x
set -e
rpm -Uvh
rpm -Uvh
yum install yum-plugin-replace -y
yum replace php-common --replace-with=php55w-common -y
service httpd restart
php -v

Internal content