https://www.rootusers.com/upgrade-php-5-6-7-1-centos-7-linux/
# yum install yum-utils [psqa@centos7dev ~]$ yum install yum-utils Loaded plugins: fastestmirror You need to be root to perform this command. [psqa@centos7dev ~]$ sudo yum install yum-utils [sudo] password for psqa: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.dal10.us.leaseweb.net * epel: pubmirror1.math.uh.edu * extras: mirror.dal10.us.leaseweb.net * updates: mirror.dal10.us.leaseweb.net * webtatic: us-east.repo.webtatic.com Resolving Dependencies --> Running transaction check ---> Package yum-utils.noarch 0:1.1.31-46.el7_5 will be installed --> Processing Dependency: python-kitchen for package: yum-utils-1.1.31-46.el7_5.noarch --> Processing Dependency: libxml2-python for package: yum-utils-1.1.31-46.el7_5.noarch --> Running transaction check ---> Package libxml2-python.x86_64 0:2.9.1-6.el7_2.3 will be installed ---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be installed --> Processing Dependency: python-chardet for package: python-kitchen-1.1.1-5.el7.noarch --> Running transaction check ---> Package python-chardet.noarch 0:2.2.1-1.el7_1 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================== Installing: yum-utils noarch 1.1.31-46.el7_5 updates 120 k Installing for dependencies: libxml2-python x86_64 2.9.1-6.el7_2.3 base 247 k python-chardet noarch 2.2.1-1.el7_1 base 227 k python-kitchen noarch 1.1.1-5.el7 base 267 k Transaction Summary =================================================================================================================================== Install 1 Package (+3 Dependent packages)
Total download size: 860 k Installed size: 4.3 M Is this ok [y/d/N]: y Downloading packages: (1/4): python-chardet-2.2.1-1.el7_1.noarch.rpm | 227 kB 00:00:00 (2/4): libxml2-python-2.9.1-6.el7_2.3.x86_64.rpm | 247 kB 00:00:00 (3/4): python-kitchen-1.1.1-5.el7.noarch.rpm | 267 kB 00:00:00 (4/4): yum-utils-1.1.31-46.el7_5.noarch.rpm | 120 kB 00:00:00 ----------------------------------------------------------------------------------------------------------------------------------- Total 1.5 MB/s | 860 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : python-chardet-2.2.1-1.el7_1.noarch 1/4 Installing : python-kitchen-1.1.1-5.el7.noarch 2/4 Installing : libxml2-python-2.9.1-6.el7_2.3.x86_64 3/4 Installing : yum-utils-1.1.31-46.el7_5.noarch 4/4 Verifying : libxml2-python-2.9.1-6.el7_2.3.x86_64 1/4 Verifying : python-kitchen-1.1.1-5.el7.noarch 2/4 Verifying : yum-utils-1.1.31-46.el7_5.noarch 3/4 Verifying : python-chardet-2.2.1-1.el7_1.noarch 4/4 Installed: yum-utils.noarch 0:1.1.31-46.el7_5 Dependency Installed: libxml2-python.x86_64 0:2.9.1-6.el7_2.3 python-chardet.noarch 0:2.2.1-1.el7_1 python-kitchen.noarch 0:1.1.1-5.el7 Complete!
# yum-config-manager --enable remi-php70 [Install PHP 7.0] [psqa@centos7dev ~]$ sudo yum-config-manager --enable remi-php70 [sudo] password for psqa: Loaded plugins: fastestmirror [psqa@centos7dev ~]$ sudo yum-config-manager --enable remi-php71 Loaded plugins: fastestmirror [psqa@centos7dev ~]$ sudo yum-config-manager --enable remi-php72 Loaded plugins: fastestmirror
Plugins
yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo
[psqa@centos7dev ~]$ yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo Loaded plugins: fastestmirror You need to be root to perform this command. [psqa@centos7dev ~]$ sudo yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.dal10.us.leaseweb.net * epel: pubmirror1.math.uh.edu * extras: mirror.dal10.us.leaseweb.net * updates: mirror.dal10.us.leaseweb.net * webtatic: us-east.repo.webtatic.com Resolving Dependencies --> Running transaction check ---> Package php.x86_64 0:5.4.16-45.el7 will be installed --> Processing Dependency: php-common(x86-64) = 5.4.16-45.el7 for package: php-5.4.16-45.el7.x86_64 ---> Package php-cli.x86_64 0:5.4.16-45.el7 will be installed ---> Package php-gd.x86_64 0:5.4.16-45.el7 will be installed ---> Package php-ldap.x86_64 0:5.4.16-45.el7 will be installed ---> Package php-mcrypt.x86_64 0:5.4.16-7.el7 will be installed ---> Package php-mysql.x86_64 0:5.4.16-45.el7 will be installed --> Processing Dependency: php-pdo(x86-64) = 5.4.16-45.el7 for package: php-mysql-5.4.16-45.el7.x86_64 ---> Package php56w-common.x86_64 0:5.6.36-1.w7 will be updated --> Processing Dependency: php56w-common(x86-64) = 5.6.36-1.w7 for package: php56w-5.6.36-1.w7.x86_64 --> Processing Dependency: php56w-common(x86-64) = 5.6.36-1.w7 for package: php56w-bcmath-5.6.36-1.w7.x86_64 --> Processing Dependency: php56w-common(x86-64) = 5.6.36-1.w7 for package: php56w-pdo-5.6.36-1.w7.x86_64 --> Processing Dependency: php56w-common(x86-64) = 5.6.36-1.w7 for package: php56w-xml-5.6.36-1.w7.x86_64 --> Processing Dependency: php56w-common(x86-64) = 5.6.36-1.w7 for package: php56w-gd-5.6.36-1.w7.x86_64 --> Processing Dependency: php56w-common(x86-64) = 5.6.36-1.w7 for package: php56w-fpm-5.6.36-1.w7.x86_64 --> Processing Dependency: php56w-common(x86-64) = 5.6.36-1.w7 for package: php56w-tidy-5.6.36-1.w7.x86_64 --> Processing Dependency: php56w-common(x86-64) = 5.6.36-1.w7 for package: php56w-cli-5.6.36-1.w7.x86_64 --> Processing Dependency: php56w-common(x86-64) = 5.6.36-1.w7 for package: php56w-process-5.6.36-1.w7.x86_64 --> Processing Dependency: php56w-common(x86-64) = 5.6.36-1.w7 for package: php56w-opcache-5.6.36-1.w7.x86_64 --> Processing Dependency: php56w-common(x86-64) = 5.6.36-1.w7 for package: php56w-mbstring-5.6.36-1.w7.x86_64 ---> Package php56w-common.x86_64 0:5.6.38-1.w7 will be an update --> Running transaction check ---> Package php-common.x86_64 0:5.4.16-45.el7 will be installed ---> Package php-pdo.x86_64 0:5.4.16-45.el7 will be installed ---> Package php56w.x86_64 0:5.6.36-1.w7 will be updated ---> Package php56w.x86_64 0:5.6.38-1.w7 will be an update ---> Package php56w-bcmath.x86_64 0:5.6.36-1.w7 will be updated ---> Package php56w-bcmath.x86_64 0:5.6.38-1.w7 will be an update ---> Package php56w-cli.x86_64 0:5.6.36-1.w7 will be updated ---> Package php56w-cli.x86_64 0:5.6.38-1.w7 will be an update ---> Package php56w-fpm.x86_64 0:5.6.36-1.w7 will be updated ---> Package php56w-fpm.x86_64 0:5.6.38-1.w7 will be an update ---> Package php56w-gd.x86_64 0:5.6.36-1.w7 will be updated ---> Package php56w-gd.x86_64 0:5.6.38-1.w7 will be an update ---> Package php56w-mbstring.x86_64 0:5.6.36-1.w7 will be updated ---> Package php56w-mbstring.x86_64 0:5.6.38-1.w7 will be an update ---> Package php56w-opcache.x86_64 0:5.6.36-1.w7 will be updated ---> Package php56w-opcache.x86_64 0:5.6.38-1.w7 will be an update ---> Package php56w-pdo.x86_64 0:5.6.36-1.w7 will be updated ---> Package php56w-pdo.x86_64 0:5.6.38-1.w7 will be an update ---> Package php56w-process.x86_64 0:5.6.36-1.w7 will be updated ---> Package php56w-process.x86_64 0:5.6.38-1.w7 will be an update ---> Package php56w-tidy.x86_64 0:5.6.36-1.w7 will be updated ---> Package php56w-tidy.x86_64 0:5.6.38-1.w7 will be an update ---> Package php56w-xml.x86_64 0:5.6.36-1.w7 will be updated ---> Package php56w-xml.x86_64 0:5.6.38-1.w7 will be an update --> Processing Conflict: php56w-common-5.6.38-1.w7.x86_64 conflicts php-common < 5.6 --> Finished Dependency Resolution Error: php56w-common conflicts with php-common-5.4.16-45.el7.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
psqa@centos7dev ~]$ yum install https://centos7.iuscommunity.org/ius-release.rpm Loaded plugins: fastestmirror You need to be root to perform this command. [psqa@centos7dev ~]$ sudo yum install https://centos7.iuscommunity.org/ius-release.rpm Loaded plugins: fastestmirror ius-release.rpm | 8.1 kB 00:00:00 Examining /var/tmp/yum-root-JXfpdZ/ius-release.rpm: ius-release-1.0-15.ius.centos7.noarch Marking /var/tmp/yum-root-JXfpdZ/ius-release.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package ius-release.noarch 0:1.0-15.ius.centos7 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================== Installing: ius-release noarch 1.0-15.ius.centos7 /ius-release 8.5 k Transaction Summary =================================================================================================================================== Install 1 Package Total size: 8.5 k Installed size: 8.5 k Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : ius-release-1.0-15.ius.centos7.noarch 1/1 Verifying : ius-release-1.0-15.ius.centos7.noarch 1/1 Installed: ius-release.noarch 0:1.0-15.ius.centos7
backup php.ini
Remove PHP5 Artifacts
[psqa@centos7dev /]$ yum list installed | grep -i webtatic php56w.x86_64 5.6.36-1.w7 @webtatic php56w-bcmath.x86_64 5.6.36-1.w7 @webtatic php56w-cli.x86_64 5.6.36-1.w7 @webtatic php56w-common.x86_64 5.6.36-1.w7 @webtatic php56w-fpm.x86_64 5.6.36-1.w7 @webtatic php56w-gd.x86_64 5.6.36-1.w7 @webtatic php56w-mbstring.x86_64 5.6.36-1.w7 @webtatic php56w-mysql.x86_64 5.6.36-1.w7 @webtatic php56w-opcache.x86_64 5.6.36-1.w7 @webtatic php56w-pdo.x86_64 5.6.36-1.w7 @webtatic php56w-process.x86_64 5.6.36-1.w7 @webtatic php56w-tidy.x86_64 5.6.36-1.w7 @webtatic php56w-xml.x86_64 5.6.36-1.w7 @webtatic
yum remove php56w php56w-cli php56w-common php56w-fpm php56w-gd php56w-mbstring php56w-mysqlnd php56w-opcache php56w-pdo php56w-pear php56w-pecl-igbinary php56w-pecl-memcache php56w-pecl-memcached php56w-process php56w-xml
yum remove php56w php56w-cli php56w-common php56w-fpm php56w-gd php56w-mbstring php56w-mysqlnd php56w-opcache php56w-pdo php56w-pear php56w-pecl-igbinary php56w-pecl-memcache php56w-pecl-memcached php56w-process php56w-xml
[psqa@centos7dev /]$ sudo yum remove php56w php56w-cli php56w-common php56w-fpm php56w-gd php56w-mbstring php56w-mysqlnd php56w-opcache php56w-pdo php56w-pear php56w-pecl-igbinary php56w-pecl-memcache php56w-pecl-memcached php56w-process php56w-xml [sudo] password for psqa: Loaded plugins: fastestmirror No Match for argument: php56w-mysqlnd No Match for argument: php56w-pear No Match for argument: php56w-pecl-igbinary No Match for argument: php56w-pecl-memcache No Match for argument: php56w-pecl-memcached Resolving Dependencies --> Running transaction check ---> Package php56w.x86_64 0:5.6.36-1.w7 will be erased ---> Package php56w-cli.x86_64 0:5.6.36-1.w7 will be erased ---> Package php56w-common.x86_64 0:5.6.36-1.w7 will be erased --> Processing Dependency: php(language) >= 5.3.7 for package: phpMyAdmin-4.4.15.10-3.el7.noarch --> Processing Dependency: php(language) >= 5.3 for package: php-tcpdf-6.2.13-1.el7.noarch --> Processing Dependency: php(language) >= 5.3.3 for package: php-fedora-autoloader-1.0.0-1.el7.noarch --> Processing Dependency: php-bz2 for package: phpMyAdmin-4.4.15.10-3.el7.noarch --> Processing Dependency: php-ctype for package: phpMyAdmin-4.4.15.10-3.el7.noarch --> Processing Dependency: php-ctype for package: php-fedora-autoloader-1.0.0-1.el7.noarch --> Processing Dependency: php-curl for package: phpMyAdmin-4.4.15.10-3.el7.noarch --> Processing Dependency: php-curl for package: php-tcpdf-6.2.13-1.el7.noarch --> Processing Dependency: php-date for package: phpMyAdmin-4.4.15.10-3.el7.noarch --> Processing Dependency: php-date for package: php-tcpdf-6.2.13-1.el7.noarch --> Processing Dependency: php-filter for package: phpMyAdmin-4.4.15.10-3.el7.noarch --> Processing Dependency: php-hash for package: php-tcpdf-6.2.13-1.el7.noarch --> Processing Dependency: php-iconv for package: phpMyAdmin-4.4.15.10-3.el7.noarch --> Processing Dependency: php-json for package: phpMyAdmin-4.4.15.10-3.el7.noarch --> Processing Dependency: php-json for package: php-tcpdf-6.2.13-1.el7.noarch --> Processing Dependency: php-libxml for package: phpMyAdmin-4.4.15.10-3.el7.noarch --> Processing Dependency: php-openssl for package: phpMyAdmin-4.4.15.10-3.el7.noarch --> Processing Dependency: php-openssl for package: php-tcpdf-6.2.13-1.el7.noarch --> Processing Dependency: php-pcre for package: phpMyAdmin-4.4.15.10-3.el7.noarch --> Processing Dependency: php-pcre for package: php-tcpdf-6.2.13-1.el7.noarch --> Processing Dependency: php-session for package: phpMyAdmin-4.4.15.10-3.el7.noarch --> Processing Dependency: php-simplexml for package: phpMyAdmin-4.4.15.10-3.el7.noarch --> Processing Dependency: php-spl for package: phpMyAdmin-4.4.15.10-3.el7.noarch --> Processing Dependency: php-spl for package: php-fedora-autoloader-1.0.0-1.el7.noarch --> Processing Dependency: php-zip for package: phpMyAdmin-4.4.15.10-3.el7.noarch --> Processing Dependency: php-zlib for package: phpMyAdmin-4.4.15.10-3.el7.noarch --> Processing Dependency: php-zlib for package: php-tcpdf-6.2.13-1.el7.noarch --> Processing Dependency: php-common for package: php-php-gettext-1.0.12-1.el7.noarch --> Processing Dependency: php56w-common(x86-64) = 5.6.36-1.w7 for package: php56w-tidy-5.6.36-1.w7.x86_64 --> Processing Dependency: php56w-common(x86-64) = 5.6.36-1.w7 for package: php56w-bcmath-5.6.36-1.w7.x86_64 ---> Package php56w-fpm.x86_64 0:5.6.36-1.w7 will be erased ---> Package php56w-gd.x86_64 0:5.6.36-1.w7 will be erased ---> Package php56w-mbstring.x86_64 0:5.6.36-1.w7 will be erased ---> Package php56w-opcache.x86_64 0:5.6.36-1.w7 will be erased ---> Package php56w-pdo.x86_64 0:5.6.36-1.w7 will be erased --> Processing Dependency: php56w-pdo(x86-64) for package: php56w-mysql-5.6.36-1.w7.x86_64 ---> Package php56w-process.x86_64 0:5.6.36-1.w7 will be erased ---> Package php56w-xml.x86_64 0:5.6.36-1.w7 will be erased --> Running transaction check ---> Package php-fedora-autoloader.noarch 0:1.0.0-1.el7 will be erased ---> Package php-php-gettext.noarch 0:1.0.12-1.el7 will be erased ---> Package php-tcpdf.noarch 0:6.2.13-1.el7 will be erased --> Processing Dependency: php-tcpdf = 6.2.13-1.el7 for package: php-tcpdf-dejavu-sans-fonts-6.2.13-1.el7.noarch ---> Package php56w-bcmath.x86_64 0:5.6.36-1.w7 will be erased ---> Package php56w-mysql.x86_64 0:5.6.36-1.w7 will be erased ---> Package php56w-tidy.x86_64 0:5.6.36-1.w7 will be erased ---> Package phpMyAdmin.noarch 0:4.4.15.10-3.el7 will be erased --> Running transaction check ---> Package php-tcpdf-dejavu-sans-fonts.noarch 0:6.2.13-1.el7 will be erased --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================== Removing: php56w x86_64 5.6.36-1.w7 @webtatic 9.3 M php56w-cli x86_64 5.6.36-1.w7 @webtatic 9.2 M php56w-common x86_64 5.6.36-1.w7 @webtatic 8.6 M php56w-fpm x86_64 5.6.36-1.w7 @webtatic 4.7 M php56w-gd x86_64 5.6.36-1.w7 @webtatic 789 k php56w-mbstring x86_64 5.6.36-1.w7 @webtatic 2.7 M php56w-opcache x86_64 5.6.36-1.w7 @webtatic 314 k php56w-pdo x86_64 5.6.36-1.w7 @webtatic 397 k php56w-process x86_64 5.6.36-1.w7 @webtatic 157 k php56w-xml x86_64 5.6.36-1.w7 @webtatic 671 k Removing for dependencies: php-fedora-autoloader noarch 1.0.0-1.el7 @epel 15 k php-php-gettext noarch 1.0.12-1.el7 @epel 57 k php-tcpdf noarch 6.2.13-1.el7 @epel 11 M php-tcpdf-dejavu-sans-fonts noarch 6.2.13-1.el7 @epel 1.5 M php56w-bcmath x86_64 5.6.36-1.w7 @webtatic 94 k php56w-mysql x86_64 5.6.36-1.w7 @webtatic 476 k php56w-tidy x86_64 5.6.36-1.w7 @webtatic 110 k phpMyAdmin noarch 4.4.15.10-3.el7 @epel 24 M Transaction Summary =================================================================================================================================== Remove 10 Packages (+8 Dependent packages) Installed size: 74 M Is this ok [y/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Erasing : phpMyAdmin-4.4.15.10-3.el7.noarch 1/18 warning: /etc/phpMyAdmin/config.inc.php saved as /etc/phpMyAdmin/config.inc.php.rpmsave warning: /etc/httpd/conf.d/phpMyAdmin.conf saved as /etc/httpd/conf.d/phpMyAdmin.conf.rpmsave Erasing : php-php-gettext-1.0.12-1.el7.noarch 2/18 Erasing : php56w-5.6.36-1.w7.x86_64 3/18 Erasing : php56w-mysql-5.6.36-1.w7.x86_64 4/18 Erasing : php56w-pdo-5.6.36-1.w7.x86_64 5/18 Erasing : php-tcpdf-dejavu-sans-fonts-6.2.13-1.el7.noarch 6/18 Erasing : php-tcpdf-6.2.13-1.el7.noarch 7/18 Erasing : php56w-cli-5.6.36-1.w7.x86_64 8/18 Erasing : php56w-bcmath-5.6.36-1.w7.x86_64 9/18 Erasing : php-fedora-autoloader-1.0.0-1.el7.noarch 10/18 Erasing : php56w-gd-5.6.36-1.w7.x86_64 11/18 Erasing : php56w-mbstring-5.6.36-1.w7.x86_64 12/18 Erasing : php56w-process-5.6.36-1.w7.x86_64 13/18 Erasing : php56w-tidy-5.6.36-1.w7.x86_64 14/18 Erasing : php56w-xml-5.6.36-1.w7.x86_64 15/18 Erasing : php56w-fpm-5.6.36-1.w7.x86_64 16/18 Erasing : php56w-opcache-5.6.36-1.w7.x86_64 17/18 Erasing : php56w-common-5.6.36-1.w7.x86_64 18/18 warning: /etc/php.ini saved as /etc/php.ini.rpmsave Verifying : php56w-process-5.6.36-1.w7.x86_64 1/18 Verifying : php-tcpdf-6.2.13-1.el7.noarch 2/18 Verifying : phpMyAdmin-4.4.15.10-3.el7.noarch 3/18 Verifying : php56w-pdo-5.6.36-1.w7.x86_64 4/18 Verifying : php56w-common-5.6.36-1.w7.x86_64 5/18 Verifying : php56w-opcache-5.6.36-1.w7.x86_64 6/18 Verifying : php-tcpdf-dejavu-sans-fonts-6.2.13-1.el7.noarch 7/18 Verifying : php56w-tidy-5.6.36-1.w7.x86_64 8/18 Verifying : php56w-gd-5.6.36-1.w7.x86_64 9/18 Verifying : php56w-fpm-5.6.36-1.w7.x86_64 10/18 Verifying : php-fedora-autoloader-1.0.0-1.el7.noarch 11/18 Verifying : php56w-bcmath-5.6.36-1.w7.x86_64 12/18 Verifying : php56w-5.6.36-1.w7.x86_64 13/18 Verifying : php56w-xml-5.6.36-1.w7.x86_64 14/18 Verifying : php56w-cli-5.6.36-1.w7.x86_64 15/18 Verifying : php-php-gettext-1.0.12-1.el7.noarch 16/18 Verifying : php56w-mbstring-5.6.36-1.w7.x86_64 17/18 Verifying : php56w-mysql-5.6.36-1.w7.x86_64 18/18 Removed: php56w.x86_64 0:5.6.36-1.w7 php56w-cli.x86_64 0:5.6.36-1.w7 php56w-common.x86_64 0:5.6.36-1.w7 php56w-fpm.x86_64 0:5.6.36-1.w7 php56w-gd.x86_64 0:5.6.36-1.w7 php56w-mbstring.x86_64 0:5.6.36-1.w7 php56w-opcache.x86_64 0:5.6.36-1.w7 php56w-pdo.x86_64 0:5.6.36-1.w7 php56w-process.x86_64 0:5.6.36-1.w7 php56w-xml.x86_64 0:5.6.36-1.w7 Dependency Removed: php-fedora-autoloader.noarch 0:1.0.0-1.el7 php-php-gettext.noarch 0:1.0.12-1.el7 php-tcpdf.noarch 0:6.2.13-1.el7 php-tcpdf-dejavu-sans-fonts.noarch 0:6.2.13-1.el7 php56w-bcmath.x86_64 0:5.6.36-1.w7 php56w-mysql.x86_64 0:5.6.36-1.w7 php56w-tidy.x86_64 0:5.6.36-1.w7 phpMyAdmin.noarch 0:4.4.15.10-3.el7 Complete!
Install PHP
yum install php71u php71u-cli php71u-common php71u-fpm php71u-gd php71u-mbstring php71u-mysqlnd php71u-opcache php71u-pdo php71u-pear php71u-pecl-igbinary php71u-pecl-memcache php71u-pecl-memcached php71u-process php71u-xml php71u-json -y
[psqa@centos7dev /]$ yum install php71u php71u-cli php71u-common php71u-fpm php71u-gd php71u-mbstring php71u-mysqlnd php71u-opcache php71u-pdo php71u-pear php71u-pecl-igbinary php71u-pecl-memcache php71u-pecl-memcached php71u-process php71u-xml php71u-json -y Loaded plugins: fastestmirror You need to be root to perform this command. [psqa@centos7dev /]$ sudo yum install php71u php71u-cli php71u-common php71u-fpm php71u-gd php71u-mbstring php71u-mysqlnd php71u-opcache php71u-pdo php71u-pear php71u-pecl-igbinary php71u-pecl-memcache php71u-pecl-memcached php71u-process php71u-xml php71u-json -y Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.dal10.us.leaseweb.net * epel: pubmirror1.math.uh.edu * extras: mirror.dal10.us.leaseweb.net * ius: dfw.mirror.rackspace.com * updates: mirror.dal10.us.leaseweb.net ius | 2.3 kB 00:00:00 ius/x86_64/primary_db | 398 kB 00:00:00 No package php71u-pear available. No package php71u-pecl-memcache available. Resolving Dependencies --> Running transaction check ---> Package mod_php71u.x86_64 0:7.1.22-1.ius.centos7 will be installed ---> Package php71u-cli.x86_64 0:7.1.22-1.ius.centos7 will be installed ---> Package php71u-common.x86_64 0:7.1.22-1.ius.centos7 will be installed ---> Package php71u-fpm.x86_64 0:7.1.22-1.ius.centos7 will be installed ---> Package php71u-gd.x86_64 0:7.1.22-1.ius.centos7 will be installed --> Processing Dependency: libwebp.so.4()(64bit) for package: php71u-gd-7.1.22-1.ius.centos7.x86_64 ---> Package php71u-json.x86_64 0:7.1.22-1.ius.centos7 will be installed ---> Package php71u-mbstring.x86_64 0:7.1.22-1.ius.centos7 will be installed ---> Package php71u-mysqlnd.x86_64 0:7.1.22-1.ius.centos7 will be installed ---> Package php71u-opcache.x86_64 0:7.1.22-1.ius.centos7 will be installed ---> Package php71u-pdo.x86_64 0:7.1.22-1.ius.centos7 will be installed ---> Package php71u-pecl-igbinary.x86_64 0:2.0.5-2.ius.centos7 will be installed ---> Package php71u-pecl-memcached.x86_64 0:3.0.4-2.ius.centos7 will be installed --> Processing Dependency: libevent-2.0.so.5()(64bit) for package: php71u-pecl-memcached-3.0.4-2.ius.centos7.x86_64 --> Processing Dependency: libfastlz.so.0()(64bit) for package: php71u-pecl-memcached-3.0.4-2.ius.centos7.x86_64 --> Processing Dependency: libmemcachedprotocol.so.0()(64bit) for package: php71u-pecl-memcached-3.0.4-2.ius.centos7.x86_64 --> Processing Dependency: libmemcached.so.11()(64bit) for package: php71u-pecl-memcached-3.0.4-2.ius.centos7.x86_64 --> Processing Dependency: libmemcachedutil.so.2()(64bit) for package: php71u-pecl-memcached-3.0.4-2.ius.centos7.x86_64 ---> Package php71u-process.x86_64 0:7.1.22-1.ius.centos7 will be installed ---> Package php71u-xml.x86_64 0:7.1.22-1.ius.centos7 will be installed --> Running transaction check ---> Package fastlz.x86_64 0:0.1.0-0.1.20070619svnrev12.el7 will be installed ---> Package libevent.x86_64 0:2.0.21-4.el7 will be installed ---> Package libmemcached.x86_64 0:1.0.16-5.el7 will be installed ---> Package libwebp.x86_64 0:0.3.0-7.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================== Installing: mod_php71u x86_64 7.1.22-1.ius.centos7 ius 3.0 M php71u-cli x86_64 7.1.22-1.ius.centos7 ius 4.5 M php71u-common x86_64 7.1.22-1.ius.centos7 ius 1.1 M php71u-fpm x86_64 7.1.22-1.ius.centos7 ius 1.5 M php71u-gd x86_64 7.1.22-1.ius.centos7 ius 176 k php71u-json x86_64 7.1.22-1.ius.centos7 ius 67 k php71u-mbstring x86_64 7.1.22-1.ius.centos7 ius 582 k php71u-mysqlnd x86_64 7.1.22-1.ius.centos7 ius 237 k php71u-opcache x86_64 7.1.22-1.ius.centos7 ius 243 k php71u-pdo x86_64 7.1.22-1.ius.centos7 ius 129 k php71u-pecl-igbinary x86_64 2.0.5-2.ius.centos7 ius 100 k php71u-pecl-memcached x86_64 3.0.4-2.ius.centos7 ius 78 k php71u-process x86_64 7.1.22-1.ius.centos7 ius 83 k php71u-xml x86_64 7.1.22-1.ius.centos7 ius 213 k Installing for dependencies: fastlz x86_64 0.1.0-0.1.20070619svnrev12.el7 epel 9.8 k libevent x86_64 2.0.21-4.el7 base 214 k libmemcached x86_64 1.0.16-5.el7 base 237 k libwebp x86_64 0.3.0-7.el7 base 170 k Transaction Summary =================================================================================================================================== Install 14 Packages (+4 Dependent packages) Total download size: 13 M Installed size: 45 M Downloading packages: (1/18): fastlz-0.1.0-0.1.20070619svnrev12.el7.x86_64.rpm | 9.8 kB 00:00:00 (2/18): libevent-2.0.21-4.el7.x86_64.rpm | 214 kB 00:00:00 (3/18): libmemcached-1.0.16-5.el7.x86_64.rpm | 237 kB 00:00:00 (4/18): libwebp-0.3.0-7.el7.x86_64.rpm | 170 kB 00:00:00 warning: /var/cache/yum/x86_64/7/ius/packages/php71u-common-7.1.22-1.ius.centos7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 9cd4953f: NOKEY Public key for php71u-common-7.1.22-1.ius.centos7.x86_64.rpm is not installed (5/18): php71u-common-7.1.22-1.ius.centos7.x86_64.rpm | 1.1 MB 00:00:00 (6/18): php71u-json-7.1.22-1.ius.centos7.x86_64.rpm | 67 kB 00:00:00 (7/18): php71u-mbstring-7.1.22-1.ius.centos7.x86_64.rpm | 582 kB 00:00:00 (8/18): mod_php71u-7.1.22-1.ius.centos7.x86_64.rpm | 3.0 MB 00:00:01 (9/18): php71u-gd-7.1.22-1.ius.centos7.x86_64.rpm | 176 kB 00:00:00 (10/18): php71u-mysqlnd-7.1.22-1.ius.centos7.x86_64.rpm | 237 kB 00:00:00 (11/18): php71u-opcache-7.1.22-1.ius.centos7.x86_64.rpm | 243 kB 00:00:00 (12/18): php71u-pecl-igbinary-2.0.5-2.ius.centos7.x86_64.rpm | 100 kB 00:00:00 (13/18): php71u-process-7.1.22-1.ius.centos7.x86_64.rpm | 83 kB 00:00:00 (14/18): php71u-xml-7.1.22-1.ius.centos7.x86_64.rpm | 213 kB 00:00:00 (15/18): php71u-pdo-7.1.22-1.ius.centos7.x86_64.rpm | 129 kB 00:00:00 (16/18): php71u-pecl-memcached-3.0.4-2.ius.centos7.x86_64.rpm | 78 kB 00:00:00 (17/18): php71u-fpm-7.1.22-1.ius.centos7.x86_64.rpm | 1.5 MB 00:00:01 (18/18): php71u-cli-7.1.22-1.ius.centos7.x86_64.rpm | 4.5 MB 00:00:17 ----------------------------------------------------------------------------------------------------------------------------------- Total 706 kB/s | 13 MB 00:00:18 Retrieving key from file:///etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY Importing GPG key 0x9CD4953F: Userid : "IUS Community Project <coredev@iuscommunity.org>" Fingerprint: 8b84 6e3a b3fe 6462 74e8 670f da22 1cdf 9cd4 953f Package : ius-release-1.0-15.ius.centos7.noarch (installed) From : /etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : php71u-common-7.1.22-1.ius.centos7.x86_64 1/18 Installing : libevent-2.0.21-4.el7.x86_64 2/18 Installing : libmemcached-1.0.16-5.el7.x86_64 3/18 Installing : php71u-json-7.1.22-1.ius.centos7.x86_64 4/18 Installing : php71u-pdo-7.1.22-1.ius.centos7.x86_64 5/18 Installing : php71u-pecl-igbinary-2.0.5-2.ius.centos7.x86_64 6/18 Installing : fastlz-0.1.0-0.1.20070619svnrev12.el7.x86_64 7/18 Installing : libwebp-0.3.0-7.el7.x86_64 8/18 Installing : php71u-gd-7.1.22-1.ius.centos7.x86_64 9/18 Installing : php71u-pecl-memcached-3.0.4-2.ius.centos7.x86_64 10/18 Installing : php71u-mysqlnd-7.1.22-1.ius.centos7.x86_64 11/18 Installing : php71u-mbstring-7.1.22-1.ius.centos7.x86_64 12/18 Installing : php71u-process-7.1.22-1.ius.centos7.x86_64 13/18 Installing : mod_php71u-7.1.22-1.ius.centos7.x86_64 14/18 Installing : php71u-fpm-7.1.22-1.ius.centos7.x86_64 15/18 Installing : php71u-xml-7.1.22-1.ius.centos7.x86_64 16/18 Installing : php71u-cli-7.1.22-1.ius.centos7.x86_64 17/18 Installing : php71u-opcache-7.1.22-1.ius.centos7.x86_64 18/18 Verifying : php71u-mbstring-7.1.22-1.ius.centos7.x86_64 1/18 Verifying : php71u-json-7.1.22-1.ius.centos7.x86_64 2/18 Verifying : php71u-mysqlnd-7.1.22-1.ius.centos7.x86_64 3/18 Verifying : php71u-process-7.1.22-1.ius.centos7.x86_64 4/18 Verifying : php71u-common-7.1.22-1.ius.centos7.x86_64 5/18 Verifying : php71u-pdo-7.1.22-1.ius.centos7.x86_64 6/18 Verifying : php71u-pecl-igbinary-2.0.5-2.ius.centos7.x86_64 7/18 Verifying : mod_php71u-7.1.22-1.ius.centos7.x86_64 8/18 Verifying : php71u-fpm-7.1.22-1.ius.centos7.x86_64 9/18 Verifying : php71u-gd-7.1.22-1.ius.centos7.x86_64 10/18 Verifying : php71u-xml-7.1.22-1.ius.centos7.x86_64 11/18 Verifying : php71u-cli-7.1.22-1.ius.centos7.x86_64 12/18 Verifying : php71u-opcache-7.1.22-1.ius.centos7.x86_64 13/18 Verifying : php71u-pecl-memcached-3.0.4-2.ius.centos7.x86_64 14/18 Verifying : libwebp-0.3.0-7.el7.x86_64 15/18 Verifying : libevent-2.0.21-4.el7.x86_64 16/18 Verifying : libmemcached-1.0.16-5.el7.x86_64 17/18 Verifying : fastlz-0.1.0-0.1.20070619svnrev12.el7.x86_64 18/18 Installed: mod_php71u.x86_64 0:7.1.22-1.ius.centos7 php71u-cli.x86_64 0:7.1.22-1.ius.centos7 php71u-common.x86_64 0:7.1.22-1.ius.centos7 php71u-fpm.x86_64 0:7.1.22-1.ius.centos7 php71u-gd.x86_64 0:7.1.22-1.ius.centos7 php71u-json.x86_64 0:7.1.22-1.ius.centos7 php71u-mbstring.x86_64 0:7.1.22-1.ius.centos7 php71u-mysqlnd.x86_64 0:7.1.22-1.ius.centos7 php71u-opcache.x86_64 0:7.1.22-1.ius.centos7 php71u-pdo.x86_64 0:7.1.22-1.ius.centos7 php71u-pecl-igbinary.x86_64 0:2.0.5-2.ius.centos7 php71u-pecl-memcached.x86_64 0:3.0.4-2.ius.centos7 php71u-process.x86_64 0:7.1.22-1.ius.centos7 php71u-xml.x86_64 0:7.1.22-1.ius.centos7 Dependency Installed: fastlz.x86_64 0:0.1.0-0.1.20070619svnrev12.el7 libevent.x86_64 0:2.0.21-4.el7 libmemcached.x86_64 0:1.0.16-5.el7 libwebp.x86_64 0:0.3.0-7.el7 Complete!
Check PHP Version
php -v
[root@centos7 ~]# php -v PHP 7.1.1 (cli) (built: Jan 18 2017 13:45:30) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.1.1, Copyright (c) 1999-2017, by Zend Technologies
PHP-fpm FastCGI Process Manager
[root@centos7 ~]# systemctl is-enabled php-fpm disabled
[root@centos7 ~]# systemctl enable php-fpm Created symlink from /etc/systemd/system/multi-user.target.wants/php-fpm.service to /usr/lib/systemd/system/php-fpm.s ervice.
- Log in to post comments
Tags