How to install PHP 5.6 from remi repo on Centos 7
Install repo release repository
Install yum utils
[[email protected] ~]# yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
Loaded plugins: fastestmirror
remi-release-7.rpm | 16 kB 00:00:00
Examining /var/tmp/yum-root-bLzN2F/remi-release-7.rpm: remi-release-7.6-2.el7.remi.noarch
Marking /var/tmp/yum-root-bLzN2F/remi-release-7.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package remi-release.noarch 0:7.6-2.el7.remi will be installed
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================
Installing:
remi-release noarch 7.6-2.el7.remi /remi-release-7 19 k
Transaction Summary
======================================================================================================================================
Install 1 Package
Total size: 19 k
Installed size: 19 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : remi-release-7.6-2.el7.remi.noarch 1/1
Verifying : remi-release-7.6-2.el7.remi.noarch 1/1
Installed:
remi-release.noarch 0:7.6-2.el7.remi
Complete!
[[email protected] ~]# yum install yum-utils Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 3.3 kB 00:00:00 * base: mirror.buana.web.id * epel: epel.dionipe.id * extras: centos.mirror.angkasa.id * remi-safe: mirror.innosol.asia * updates: centos.mirror.angkasa.id base | 3.6 kB 00:00:00 epel | 5.3 kB 00:00:00 extras | 3.4 kB 00:00:00 remi-safe | 3.0 kB 00:00:00 updates | 3.4 kB 00:00:00 remi-safe/primary_db | 1.6 MB 00:00:01 Resolving Dependencies --> Running transaction check ---> Package yum-utils.noarch 0:1.1.31-50.el7 will be installed --> Processing Dependency: python-kitchen for package: yum-utils-1.1.31-50.el7.noarch --> Processing Dependency: libxml2-python for package: yum-utils-1.1.31-50.el7.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-50.el7 base 121 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: 861 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): python-kitchen-1.1.1-5.el7.noarch.rpm | 267 kB 00:00:00 (3/4): libxml2-python-2.9.1-6.el7_2.3.x86_64.rpm | 247 kB 00:00:00 (4/4): yum-utils-1.1.31-50.el7.noarch.rpm | 121 kB 00:00:00 -------------------------------------------------------------------------------------------------------------------------------------- Total 2.2 MB/s | 861 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-50.el7.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-50.el7.noarch 3/4 Verifying : python-chardet-2.2.1-1.el7_1.noarch 4/4 Installed: yum-utils.noarch 0:1.1.31-50.el7 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! [[email protected] ~]#
Enable remi-php56 repository with yum config manager
[[email protected] ~]# yum-config-manager --enable remi-php56
Loaded plugins: fastestmirror
========================================================== repo: remi-php56 ==========================================================
[remi-php56]
async = True
bandwidth = 0
base_persistdir = /var/lib/yum/repos/x86_64/7
baseurl =
cache = 0
cachedir = /var/cache/yum/x86_64/7/remi-php56
check_config_file_age = True
compare_providers_priority = 80
cost = 1000
deltarpm_metadata_percentage = 100
deltarpm_percentage =
enabled = 1
enablegroups = True
exclude =
failovermethod = priority
ftp_disable_epsv = False
gpgcadir = /var/lib/yum/repos/x86_64/7/remi-php56/gpgcadir
gpgcakey =
gpgcheck = True
gpgdir = /var/lib/yum/repos/x86_64/7/remi-php56/gpgdir
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
hdrdir = /var/cache/yum/x86_64/7/remi-php56/headers
http_caching = all
includepkgs =
ip_resolve =
keepalive = True
keepcache = False
mddownloadpolicy = sqlite
mdpolicy = group:small
mediaid =
metadata_expire = 21600
metadata_expire_filter = read-only:present
metalink =
minrate = 0
mirrorlist = http://cdn.remirepo.net/enterprise/7/php56/mirror
mirrorlist_expire = 86400
name = Remi's PHP 5.6 RPM repository for Enterprise Linux 7 - x86_64
old_base_cache_dir =
password =
persistdir = /var/lib/yum/repos/x86_64/7/remi-php56
pkgdir = /var/cache/yum/x86_64/7/remi-php56/packages
proxy = False
proxy_dict =
proxy_password =
proxy_username =
repo_gpgcheck = False
retries = 10
skip_if_unavailable = False
ssl_check_cert_permissions = True
sslcacert =
sslclientcert =
sslclientkey =
sslverify = True
throttle = 0
timeout = 30.0
ui_id = remi-php56
ui_repoid_vars = releasever,
basearch
username =
[[email protected] ~]#
Install php, dependency and plugins
[[email protected] ~]# 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.buana.web.id
* epel: epel.dionipe.id
* extras: centos.mirror.angkasa.id
* remi-php56: mirror.innosol.asia
* remi-safe: mirror.innosol.asia
* updates: centos.mirror.angkasa.id
remi-php56 | 3.0 kB 00:00:00
remi-php56/primary_db | 247 kB 00:00:00
Package php-mysql is obsoleted by php-mysqlnd, trying to install php-mysqlnd-5.6.40-12.el7.remi.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.6.40-12.el7.remi will be installed
---> Package php-cli.x86_64 0:5.6.40-12.el7.remi will be installed
---> Package php-common.x86_64 0:5.6.40-12.el7.remi will be installed
--> Processing Dependency: php-pecl-jsonc(x86-64) for package: php-common-5.6.40-12.el7.remi.x86_64
---> Package php-gd.x86_64 0:5.6.40-12.el7.remi will be installed
--> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-5.6.40-12.el7.remi.x86_64
--> Processing Dependency: libX11.so.6()(64bit) for package: php-gd-5.6.40-12.el7.remi.x86_64
--> Processing Dependency: libXpm.so.4()(64bit) for package: php-gd-5.6.40-12.el7.remi.x86_64
--> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.6.40-12.el7.remi.x86_64
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.6.40-12.el7.remi.x86_64
---> Package php-ldap.x86_64 0:5.6.40-12.el7.remi will be installed
---> Package php-mcrypt.x86_64 0:5.6.40-12.el7.remi will be installed
---> Package php-mysqlnd.x86_64 0:5.6.40-12.el7.remi will be installed
--> Processing Dependency: php-pdo(x86-64) = 5.6.40-12.el7.remi for package: php-mysqlnd-5.6.40-12.el7.remi.x86_64
---> Package php-pecl-zip.x86_64 0:1.15.4-1.el7.remi.5.6 will be installed
--> Processing Dependency: libzip5(x86-64) >= 1.5.1 for package: php-pecl-zip-1.15.4-1.el7.remi.5.6.x86_64
--> Processing Dependency: libzip.so.5()(64bit) for package: php-pecl-zip-1.15.4-1.el7.remi.5.6.x86_64
--> Running transaction check
---> Package gd-last.x86_64 0:2.2.5-8.el7.remi will be installed
--> Processing Dependency: libtiff.so.5(LIBTIFF_4.0)(64bit) for package: gd-last-2.2.5-8.el7.remi.x86_64
--> Processing Dependency: libfontconfig.so.1()(64bit) for package: gd-last-2.2.5-8.el7.remi.x86_64
--> Processing Dependency: libtiff.so.5()(64bit) for package: gd-last-2.2.5-8.el7.remi.x86_64
--> Processing Dependency: libwebp.so.7()(64bit) for package: gd-last-2.2.5-8.el7.remi.x86_64
---> Package libX11.x86_64 0:1.6.5-2.el7 will be installed
--> Processing Dependency: libX11-common >= 1.6.5-2.el7 for package: libX11-1.6.5-2.el7.x86_64
--> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.5-2.el7.x86_64
---> Package libXpm.x86_64 0:3.5.12-1.el7 will be installed
---> Package libzip5.x86_64 0:1.5.2-1.el7.remi will be installed
---> Package php-pdo.x86_64 0:5.6.40-12.el7.remi will be installed
---> Package php-pecl-jsonc.x86_64 0:1.3.10-2.el7.remi.5.6 will be installed
---> Package t1lib.x86_64 0:5.1.2-14.el7 will be installed
--> Running transaction check
---> Package fontconfig.x86_64 0:2.13.0-4.3.el7 will be installed
--> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.13.0-4.3.el7.x86_64
--> Processing Dependency: dejavu-sans-fonts for package: fontconfig-2.13.0-4.3.el7.x86_64
---> Package libX11-common.noarch 0:1.6.5-2.el7 will be installed
---> Package libtiff.x86_64 0:4.0.3-27.el7_3 will be installed
--> Processing Dependency: libjbig.so.2.0()(64bit) for package: libtiff-4.0.3-27.el7_3.x86_64
---> Package libwebp7.x86_64 0:1.0.2-1.el7.remi will be installed
---> Package libxcb.x86_64 0:1.13-1.el7 will be installed
--> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.13-1.el7.x86_64
--> Running transaction check
---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed
--> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch
---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed
---> Package jbigkit-libs.x86_64 0:2.0-11.el7 will be installed
---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed
--> Running transaction check
---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================
Installing:
php x86_64 5.6.40-12.el7.remi remi-php56 2.6 M
php-cli x86_64 5.6.40-12.el7.remi remi-php56 4.0 M
php-common x86_64 5.6.40-12.el7.remi remi-php56 1.1 M
php-gd x86_64 5.6.40-12.el7.remi remi-php56 88 k
php-ldap x86_64 5.6.40-12.el7.remi remi-php56 68 k
php-mcrypt x86_64 5.6.40-12.el7.remi remi-php56 56 k
php-mysqlnd x86_64 5.6.40-12.el7.remi remi-php56 300 k
php-pecl-zip x86_64 1.15.4-1.el7.remi.5.6 remi-php56 58 k
Installing for dependencies:
dejavu-fonts-common noarch 2.33-6.el7 base 64 k
dejavu-sans-fonts noarch 2.33-6.el7 base 1.4 M
fontconfig x86_64 2.13.0-4.3.el7 base 254 k
fontpackages-filesystem noarch 1.44-8.el7 base 9.9 k
gd-last x86_64 2.2.5-8.el7.remi remi-safe 134 k
jbigkit-libs x86_64 2.0-11.el7 base 46 k
libX11 x86_64 1.6.5-2.el7 base 606 k
libX11-common noarch 1.6.5-2.el7 base 164 k
libXau x86_64 1.0.8-2.1.el7 base 29 k
libXpm x86_64 3.5.12-1.el7 base 55 k
libtiff x86_64 4.0.3-27.el7_3 base 170 k
libwebp7 x86_64 1.0.2-1.el7.remi remi-safe 265 k
libxcb x86_64 1.13-1.el7 base 214 k
libzip5 x86_64 1.5.2-1.el7.remi remi-safe 56 k
php-pdo x86_64 5.6.40-12.el7.remi remi-php56 142 k
php-pecl-jsonc x86_64 1.3.10-2.el7.remi.5.6 remi-php56 57 k
t1lib x86_64 5.1.2-14.el7 base 166 k
Transaction Summary
======================================================================================================================================
Install 8 Packages (+17 Dependent packages)
Total download size: 12 M
Installed size: 43 M
Is this ok [y/d/N]: y
Downloading packages:
(1/25): dejavu-fonts-common-2.33-6.el7.noarch.rpm | 64 kB 00:00:00
(2/25): jbigkit-libs-2.0-11.el7.x86_64.rpm | 46 kB 00:00:00
(3/25): fontpackages-filesystem-1.44-8.el7.noarch.rpm | 9.9 kB 00:00:00
(4/25): fontconfig-2.13.0-4.3.el7.x86_64.rpm | 254 kB 00:00:00
(5/25): libX11-common-1.6.5-2.el7.noarch.rpm | 164 kB 00:00:00
(6/25): libXau-1.0.8-2.1.el7.x86_64.rpm | 29 kB 00:00:00
(7/25): libXpm-3.5.12-1.el7.x86_64.rpm | 55 kB 00:00:00
(8/25): libtiff-4.0.3-27.el7_3.x86_64.rpm | 170 kB 00:00:00
(9/25): libX11-1.6.5-2.el7.x86_64.rpm | 606 kB 00:00:00
(10/25): dejavu-sans-fonts-2.33-6.el7.noarch.rpm | 1.4 MB 00:00:00
(11/25): libxcb-1.13-1.el7.x86_64.rpm | 214 kB 00:00:00
warning: /var/cache/yum/x86_64/7/remi-safe/packages/gd-last-2.2.5-8.el7.remi.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
Public key for gd-last-2.2.5-8.el7.remi.x86_64.rpm is not installed
(12/25): gd-last-2.2.5-8.el7.remi.x86_64.rpm | 134 kB 00:00:00
(13/25): libwebp7-1.0.2-1.el7.remi.x86_64.rpm | 265 kB 00:00:00
Public key for php-gd-5.6.40-12.el7.remi.x86_64.rpm is not installed======== ] 2.1 MB/s | 5.2 MB 00:00:03 ETA
(14/25): php-gd-5.6.40-12.el7.remi.x86_64.rpm | 88 kB 00:00:00
(15/25): php-5.6.40-12.el7.remi.x86_64.rpm | 2.6 MB 00:00:01
(16/25): php-mcrypt-5.6.40-12.el7.remi.x86_64.rpm | 56 kB 00:00:00
(17/25): php-ldap-5.6.40-12.el7.remi.x86_64.rpm | 68 kB 00:00:00
(18/25): php-mysqlnd-5.6.40-12.el7.remi.x86_64.rpm | 300 kB 00:00:00
(19/25): php-pecl-jsonc-1.3.10-2.el7.remi.5.6.x86_64.rpm | 57 kB 00:00:00
(20/25): php-pecl-zip-1.15.4-1.el7.remi.5.6.x86_64.rpm | 58 kB 00:00:00
(21/25): t1lib-5.1.2-14.el7.x86_64.rpm | 166 kB 00:00:00
(22/25): libzip5-1.5.2-1.el7.remi.x86_64.rpm | 56 kB 00:00:02
(23/25): php-pdo-5.6.40-12.el7.remi.x86_64.rpm | 142 kB 00:00:00
(24/25): php-cli-5.6.40-12.el7.remi.x86_64.rpm | 4.0 MB 00:00:03
(25/25): php-common-5.6.40-12.el7.remi.x86_64.rpm | 1.1 MB 00:00:27
--------------------------------------------------------------------------------------------------------------------------------------
Total 439 kB/s | 12 MB 00:00:28
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
Importing GPG key 0x00F97F56:
Userid : "Remi Collet <[email protected]>"
Fingerprint: 1ee0 4cce 88a4 ae4a a29a 5df5 004e 6f47 00f9 7f56
Package : remi-release-7.6-2.el7.remi.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : fontpackages-filesystem-1.44-8.el7.noarch 1/25
Installing : dejavu-fonts-common-2.33-6.el7.noarch 2/25
Installing : dejavu-sans-fonts-2.33-6.el7.noarch 3/25
Installing : fontconfig-2.13.0-4.3.el7.x86_64 4/25
Installing : libX11-common-1.6.5-2.el7.noarch 5/25
Installing : libXau-1.0.8-2.1.el7.x86_64 6/25
Installing : libxcb-1.13-1.el7.x86_64 7/25
Installing : libX11-1.6.5-2.el7.x86_64 8/25
Installing : libXpm-3.5.12-1.el7.x86_64 9/25
Installing : t1lib-5.1.2-14.el7.x86_64 10/25
Installing : libwebp7-1.0.2-1.el7.remi.x86_64 11/25
Installing : libzip5-1.5.2-1.el7.remi.x86_64 12/25
Installing : php-pecl-zip-1.15.4-1.el7.remi.5.6.x86_64 13/25
Installing : php-common-5.6.40-12.el7.remi.x86_64 14/25
warning: /etc/php.ini created as /etc/php.ini.rpmnew
Installing : php-pecl-jsonc-1.3.10-2.el7.remi.5.6.x86_64 15/25
Installing : php-cli-5.6.40-12.el7.remi.x86_64 16/25
Installing : php-pdo-5.6.40-12.el7.remi.x86_64 17/25
Installing : jbigkit-libs-2.0-11.el7.x86_64 18/25
Installing : libtiff-4.0.3-27.el7_3.x86_64 19/25
Installing : gd-last-2.2.5-8.el7.remi.x86_64 20/25
Installing : php-gd-5.6.40-12.el7.remi.x86_64 21/25
Installing : php-mysqlnd-5.6.40-12.el7.remi.x86_64 22/25
Installing : php-5.6.40-12.el7.remi.x86_64 23/25
warning: /etc/httpd/conf.d/php.conf created as /etc/httpd/conf.d/php.conf.rpmnew
Installing : php-mcrypt-5.6.40-12.el7.remi.x86_64 24/25
Installing : php-ldap-5.6.40-12.el7.remi.x86_64 25/25
=====================================================================
WARNING : PHP 5.6 have reached its "End of Life" in
January 2019. Even, if this package includes some of
the important security fix, backported from 7.1, the
UPGRADE to a maintained version is very strongly RECOMMENDED.
=====================================================================
Verifying : php-mysqlnd-5.6.40-12.el7.remi.x86_64 1/25
Verifying : php-5.6.40-12.el7.remi.x86_64 2/25
Verifying : libtiff-4.0.3-27.el7_3.x86_64 3/25
Verifying : fontconfig-2.13.0-4.3.el7.x86_64 4/25
Verifying : php-cli-5.6.40-12.el7.remi.x86_64 5/25
Verifying : php-pecl-jsonc-1.3.10-2.el7.remi.5.6.x86_64 6/25
Verifying : fontpackages-filesystem-1.44-8.el7.noarch 7/25
Verifying : php-pecl-zip-1.15.4-1.el7.remi.5.6.x86_64 8/25
Verifying : jbigkit-libs-2.0-11.el7.x86_64 9/25
Verifying : php-mcrypt-5.6.40-12.el7.remi.x86_64 10/25
Verifying : dejavu-fonts-common-2.33-6.el7.noarch 11/25
Verifying : php-ldap-5.6.40-12.el7.remi.x86_64 12/25
Verifying : libzip5-1.5.2-1.el7.remi.x86_64 13/25
Verifying : libxcb-1.13-1.el7.x86_64 14/25
Verifying : libXpm-3.5.12-1.el7.x86_64 15/25
Verifying : t1lib-5.1.2-14.el7.x86_64 16/25
Verifying : php-pdo-5.6.40-12.el7.remi.x86_64 17/25
Verifying : libX11-1.6.5-2.el7.x86_64 18/25
Verifying : dejavu-sans-fonts-2.33-6.el7.noarch 19/25
Verifying : gd-last-2.2.5-8.el7.remi.x86_64 20/25
Verifying : libwebp7-1.0.2-1.el7.remi.x86_64 21/25
Verifying : php-gd-5.6.40-12.el7.remi.x86_64 22/25
Verifying : libXau-1.0.8-2.1.el7.x86_64 23/25
Verifying : php-common-5.6.40-12.el7.remi.x86_64 24/25
Verifying : libX11-common-1.6.5-2.el7.noarch 25/25
Installed:
php.x86_64 0:5.6.40-12.el7.remi php-cli.x86_64 0:5.6.40-12.el7.remi php-common.x86_64 0:5.6.40-12.el7.remi
php-gd.x86_64 0:5.6.40-12.el7.remi php-ldap.x86_64 0:5.6.40-12.el7.remi php-mcrypt.x86_64 0:5.6.40-12.el7.remi
php-mysqlnd.x86_64 0:5.6.40-12.el7.remi php-pecl-zip.x86_64 0:1.15.4-1.el7.remi.5.6
Dependency Installed:
dejavu-fonts-common.noarch 0:2.33-6.el7 dejavu-sans-fonts.noarch 0:2.33-6.el7 fontconfig.x86_64 0:2.13.0-4.3.el7
fontpackages-filesystem.noarch 0:1.44-8.el7 gd-last.x86_64 0:2.2.5-8.el7.remi jbigkit-libs.x86_64 0:2.0-11.el7
libX11.x86_64 0:1.6.5-2.el7 libX11-common.noarch 0:1.6.5-2.el7 libXau.x86_64 0:1.0.8-2.1.el7
libXpm.x86_64 0:3.5.12-1.el7 libtiff.x86_64 0:4.0.3-27.el7_3 libwebp7.x86_64 0:1.0.2-1.el7.remi
libxcb.x86_64 0:1.13-1.el7 libzip5.x86_64 0:1.5.2-1.el7.remi php-pdo.x86_64 0:5.6.40-12.el7.remi
php-pecl-jsonc.x86_64 0:1.3.10-2.el7.remi.5.6 t1lib.x86_64 0:5.1.2-14.el7
Complete!
[[email protected] ~]#
Tidak ada komentar :
Posting Komentar