Question

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

Answer

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 https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install yum-plugin-replace -y
yum replace php-common --replace-with=php55w-common -y
service httpd restart
php -v

Internal content