Created
November 12, 2016 21:04
-
-
Save tomardern/8ead8229afd856a60a8596f71d137197 to your computer and use it in GitHub Desktop.
Upgrading PHP5.4 to PHP5.6 on CentOS7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Resource: | |
https://support.rackspace.com/how-to/install-epel-and-additional-repositories-on-centos-and-red-hat/ | |
#Step 1 - Add the IUS Repo | |
wget https://centos7.iuscommunity.org/ius-release.rpm | |
#Add it to YUM, U=upgrade, v=verbose, h=hash | |
sudo rpm -Uvh ius-release*.rpm | |
#Step 2 - Add the yum plugin replace package | |
sudo yum install yum-plugin-replace | |
#Step 3 - List PHP packages we'll need to replace | |
yum list installed | grep php | |
php.x86_64 5.4.16-36.3.el7_2 @updates | |
php-cli.x86_64 5.4.16-36.3.el7_2 @updates | |
php-common.x86_64 5.4.16-36.3.el7_2 @updates | |
php-imap.x86_64 5.4.16-5.el7 @epel | |
php-mssql.x86_64 5.4.16-5.el7 @epel | |
php-mysql.x86_64 5.4.16-36.3.el7_2 @updates | |
php-pdo.x86_64 5.4.16-36.3.el7_2 @updates | |
#Step 4 - Replace Using the yum-plugin-replace | |
sudo yum replace php --replace-with php56u | |
As below: | |
php56u.x86_64 5.6.27-1.ius.centos7 @ius | |
php56u-cli.x86_64 5.6.27-1.ius.centos7 @ius | |
php56u-common.x86_64 5.6.27-1.ius.centos7 @ius | |
php56u-gmp.x86_64 5.6.27-1.ius.centos7 @ius | |
php56u-imap.x86_64 5.6.27-1.ius.centos7 @ius | |
php56u-mssql.x86_64 5.6.27-1.ius.centos7 @ius | |
php56u-mysqlnd.x86_64 5.6.27-1.ius.centos7 @ius | |
php56u-pdo.x86_64 5.6.27-1.ius.centos7 @ius | |
php56u-pear.noarch 1:1.10.1-4.ius.centos7 @ius | |
php56u-pecl-jsonc.x86_64 1.3.10-2.ius.centos7 @ius | |
php56u-process.x86_64 5.6.27-1.ius.centos7 @ius | |
php56u-xml.x86_64 5.6.27-1.ius.centos7 @ius | |
#Step 5 - Restart Apache | |
sudo systemctl restart httpd.service | |
#Step 6 - Check Zlib Compression | |
zlib.output_compression |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks a lot :-)