Search Engine: Elastic

Article ID: 132126, created on Jan 25, 2018, last review on Jan 25, 2018

  • Applies to:
  • APS

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

717db81efe94e616312b74fb03a5d474

Email subscription for changes to this article
Save as PDF