PHP

CentOS6にPHP5.6をyumでインストール

CentOS7も出ていますが、とりあえず6でパパっと試してみました

yumのremi-php56を使います
PHP 5.6 as Software Collection – Les RPM de Remi – Blog

remiの導入

~~~
$ sudo rpm -ivh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
$ sudo rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
~~~

PHPのインストール

php-gdで失敗するのはremi-php55と一緒だなー
~~~
$ sudo yum install –enablerepo=remi-php56 php php-common php-mbstring php-pdo php-cli php-devel php-gd php-mysql

Error: Package: php-gd-5.6.0-0.21.RC4.el6.remi.x86_64 (remi-php56)
Requires: libgd.so.3()(64bit)
You could try using –skip-broken to work around the problem
You could try running: rpm -Va –nofiles –nodigest
~~~

gdを先にremiを使ってインストールします
~~~
$ sudo yum install gd-last –enablerepo=remi
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.jaist.ac.jp
* epel: mirrors.123host.vn
* extras: ftp.jaist.ac.jp
* remi: rpms.famillecollet.com
* updates: ftp.jaist.ac.jp
remi | 2.9 kB 00:00
remi/primary_db | 766 kB 00:02
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package gd-last.x86_64 0:2.1.0-2.el6.remi will be installed
–> Processing Dependency: libpng12.so.0(PNG12_0)(64bit) for package: gd-last-2.1.0-2.el6.remi.x86_64
–> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: gd-last-2.1.0-2.el6.remi.x86_64
–> Processing Dependency: libtiff.so.3()(64bit) for package: gd-last-2.1.0-2.el6.remi.x86_64
–> Processing Dependency: libpng12.so.0()(64bit) for package: gd-last-2.1.0-2.el6.remi.x86_64
–> Processing Dependency: libjpeg.so.62()(64bit) for package: gd-last-2.1.0-2.el6.remi.x86_64
–> Processing Dependency: libfreetype.so.6()(64bit) for package: gd-last-2.1.0-2.el6.remi.x86_64
–> Processing Dependency: libfontconfig.so.1()(64bit) for package: gd-last-2.1.0-2.el6.remi.x86_64
–> Processing Dependency: libXpm.so.4()(64bit) for package: gd-last-2.1.0-2.el6.remi.x86_64
–> Processing Dependency: libX11.so.6()(64bit) for package: gd-last-2.1.0-2.el6.remi.x86_64
–> Running transaction check
—> Package fontconfig.x86_64 0:2.8.0-3.el6 will be installed
—> Package freetype.x86_64 0:2.3.11-14.el6_3.1 will be installed
—> Package libX11.x86_64 0:1.5.0-4.el6 will be installed
–> Processing Dependency: libX11-common = 1.5.0-4.el6 for package: libX11-1.5.0-4.el6.x86_64
–> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.5.0-4.el6.x86_64
—> Package libXpm.x86_64 0:3.5.10-2.el6 will be installed
—> Package libjpeg-turbo.x86_64 0:1.2.1-3.el6_5 will be installed
—> Package libpng.x86_64 2:1.2.49-1.el6_2 will be installed
—> Package libtiff.x86_64 0:3.9.4-10.el6_5 will be installed
–> Running transaction check
—> Package libX11-common.noarch 0:1.5.0-4.el6 will be installed
—> Package libxcb.x86_64 0:1.8.1-1.el6 will be installed
–> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.8.1-1.el6.x86_64
–> Running transaction check
—> Package libXau.x86_64 0:1.0.6-4.el6 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================
Installing:
gd-last x86_64 2.1.0-2.el6.remi remi 129 k
Installing for dependencies:
fontconfig x86_64 2.8.0-3.el6 base 186 k
freetype x86_64 2.3.11-14.el6_3.1 base 359 k
libX11 x86_64 1.5.0-4.el6 base 584 k
libX11-common noarch 1.5.0-4.el6 base 192 k
libXau x86_64 1.0.6-4.el6 base 24 k
libXpm x86_64 3.5.10-2.el6 base 51 k
libjpeg-turbo x86_64 1.2.1-3.el6_5 updates 174 k
libpng x86_64 2:1.2.49-1.el6_2 base 182 k
libtiff x86_64 3.9.4-10.el6_5 updates 343 k
libxcb x86_64 1.8.1-1.el6 base 110 k

Transaction Summary
==================================================================================================================================================
Install 11 Package(s)

Total download size: 2.3 M
Installed size: 7.1 M
Is this ok [y/N]: y
Downloading Packages:
(1/11): fontconfig-2.8.0-3.el6.x86_64.rpm | 186 kB 00:00
(2/11): freetype-2.3.11-14.el6_3.1.x86_64.rpm | 359 kB 00:00
(3/11): gd-last-2.1.0-2.el6.remi.x86_64.rpm | 129 kB 00:01
(4/11): libX11-1.5.0-4.el6.x86_64.rpm | 584 kB 00:00
(5/11): libX11-common-1.5.0-4.el6.noarch.rpm | 192 kB 00:00
(6/11): libXau-1.0.6-4.el6.x86_64.rpm | 24 kB 00:00
(7/11): libXpm-3.5.10-2.el6.x86_64.rpm | 51 kB 00:00
(8/11): libjpeg-turbo-1.2.1-3.el6_5.x86_64.rpm | 174 kB 00:00
(9/11): libpng-1.2.49-1.el6_2.x86_64.rpm | 182 kB 00:00
(10/11): libtiff-3.9.4-10.el6_5.x86_64.rpm | 343 kB 00:00
(11/11): libxcb-1.8.1-1.el6.x86_64.rpm | 110 kB 00:00
————————————————————————————————————————————————–
Total 220 kB/s | 2.3 MB 00:10
warning: rpmts_HdrFromFdno: Header V3 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
Importing GPG key 0x00F97F56:
Userid : Remi Collet
Package: remi-release-6.5-1.el6.remi.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : libjpeg-turbo-1.2.1-3.el6_5.x86_64 1/11
Installing : freetype-2.3.11-14.el6_3.1.x86_64 2/11
Installing : fontconfig-2.8.0-3.el6.x86_64 3/11
Installing : libtiff-3.9.4-10.el6_5.x86_64 4/11
Installing : 2:libpng-1.2.49-1.el6_2.x86_64 5/11
Installing : libX11-common-1.5.0-4.el6.noarch 6/11
Installing : libXau-1.0.6-4.el6.x86_64 7/11
Installing : libxcb-1.8.1-1.el6.x86_64 8/11
Installing : libX11-1.5.0-4.el6.x86_64 9/11
Installing : libXpm-3.5.10-2.el6.x86_64 10/11
Installing : gd-last-2.1.0-2.el6.remi.x86_64 11/11
Verifying : libtiff-3.9.4-10.el6_5.x86_64 1/11
Verifying : libXau-1.0.6-4.el6.x86_64 2/11
Verifying : libXpm-3.5.10-2.el6.x86_64 3/11
Verifying : freetype-2.3.11-14.el6_3.1.x86_64 4/11
Verifying : libX11-common-1.5.0-4.el6.noarch 5/11
Verifying : libX11-1.5.0-4.el6.x86_64 6/11
Verifying : fontconfig-2.8.0-3.el6.x86_64 7/11
Verifying : libxcb-1.8.1-1.el6.x86_64 8/11
Verifying : 2:libpng-1.2.49-1.el6_2.x86_64 9/11
Verifying : libjpeg-turbo-1.2.1-3.el6_5.x86_64 10/11
Verifying : gd-last-2.1.0-2.el6.remi.x86_64 11/11

Installed:
gd-last.x86_64 0:2.1.0-2.el6.remi

Dependency Installed:
fontconfig.x86_64 0:2.8.0-3.el6 freetype.x86_64 0:2.3.11-14.el6_3.1 libX11.x86_64 0:1.5.0-4.el6 libX11-common.noarch 0:1.5.0-4.el6
libXau.x86_64 0:1.0.6-4.el6 libXpm.x86_64 0:3.5.10-2.el6 libjpeg-turbo.x86_64 0:1.2.1-3.el6_5 libpng.x86_64 2:1.2.49-1.el6_2
libtiff.x86_64 0:3.9.4-10.el6_5 libxcb.x86_64 0:1.8.1-1.el6

Complete!
~~~

改めてPHPのインストール

~~~
$ sudo yum install –enablerepo=remi-php56 php php-common php-mbstring php-pdo php-cli php-devel php-gd php-mysql
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.jaist.ac.jp
* epel: mirrors.123host.vn
* extras: ftp.jaist.ac.jp
* remi-php56: rpms.famillecollet.com
* updates: ftp.jaist.ac.jp
Setting up Install Process
Package php-mysql is obsoleted by php-mysqlnd, trying to install php-mysqlnd-5.6.0-0.21.RC4.el6.remi.x86_64 instead
Resolving Dependencies
–> Running transaction check
—> Package php.x86_64 0:5.6.0-0.21.RC4.el6.remi will be installed
–> Processing Dependency: httpd-mmn = 20051115 for package: php-5.6.0-0.21.RC4.el6.remi.x86_64
–> Processing Dependency: libssl.so.10(libssl.so.10)(64bit) for package: php-5.6.0-0.21.RC4.el6.remi.x86_64
–> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: php-5.6.0-0.21.RC4.el6.remi.x86_64
–> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) for package: php-5.6.0-0.21.RC4.el6.remi.x86_64
–> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.1)(64bit) for package: php-5.6.0-0.21.RC4.el6.remi.x86_64
–> Processing Dependency: httpd for package: php-5.6.0-0.21.RC4.el6.remi.x86_64
—> Package php-cli.x86_64 0:5.6.0-0.21.RC4.el6.remi will be installed
—> Package php-common.x86_64 0:5.6.0-0.21.RC4.el6.remi will be installed
–> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.0-0.21.RC4.el6.remi.x86_64
–> Processing Dependency: php-pecl-jsonc(x86-64) for package: php-common-5.6.0-0.21.RC4.el6.remi.x86_64
—> Package php-devel.x86_64 0:5.6.0-0.21.RC4.el6.remi will be installed
–> Processing Dependency: php-pecl-jsonc-devel(x86-64) for package: php-devel-5.6.0-0.21.RC4.el6.remi.x86_64
–> Processing Dependency: automake for package: php-devel-5.6.0-0.21.RC4.el6.remi.x86_64
–> Processing Dependency: autoconf for package: php-devel-5.6.0-0.21.RC4.el6.remi.x86_64
—> Package php-gd.x86_64 0:5.6.0-0.21.RC4.el6.remi will be installed
–> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.6.0-0.21.RC4.el6.remi.x86_64
—> Package php-mbstring.x86_64 0:5.6.0-0.21.RC4.el6.remi will be installed
—> Package php-mysqlnd.x86_64 0:5.6.0-0.21.RC4.el6.remi will be installed
—> Package php-pdo.x86_64 0:5.6.0-0.21.RC4.el6.remi will be installed
–> Running transaction check
—> Package autoconf.noarch 0:2.63-5.1.el6 will be installed
—> Package automake.noarch 0:1.11.1-4.el6 will be installed
—> Package httpd.x86_64 0:2.2.15-31.el6.centos will be installed
–> Processing Dependency: httpd-tools = 2.2.15-31.el6.centos for package: httpd-2.2.15-31.el6.centos.x86_64
–> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-31.el6.centos.x86_64
–> Processing Dependency: /etc/mime.types for package: httpd-2.2.15-31.el6.centos.x86_64
–> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.15-31.el6.centos.x86_64
–> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.15-31.el6.centos.x86_64
—> Package openssl.x86_64 0:1.0.0-27.el6_4.2 will be updated
–> Processing Dependency: openssl = 1.0.0-27.el6_4.2 for package: openssl-devel-1.0.0-27.el6_4.2.x86_64
—> Package openssl.x86_64 0:1.0.1e-16.el6_5.15 will be an update
—> Package php-pecl-jsonc.x86_64 0:1.3.6-1.el6.remi.5.6.1 will be installed
–> Processing Dependency: /usr/bin/pecl for package: php-pecl-jsonc-1.3.6-1.el6.remi.5.6.1.x86_64
–> Processing Dependency: /usr/bin/pecl for package: php-pecl-jsonc-1.3.6-1.el6.remi.5.6.1.x86_64
—> Package php-pecl-jsonc-devel.x86_64 0:1.3.6-1.el6.remi.5.6.1 will be installed
—> Package php-pecl-zip.x86_64 0:1.12.4-2.el6.remi.5.6 will be installed
—> Package t1lib.x86_64 0:5.1.2-6.el6_2.1 will be installed
–> Running transaction check
—> Package apr.x86_64 0:1.3.9-5.el6_2 will be installed
—> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 will be installed
—> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed
—> Package httpd-tools.x86_64 0:2.2.15-31.el6.centos will be installed
—> Package mailcap.noarch 0:2.1.31-2.el6 will be installed
—> Package openssl-devel.x86_64 0:1.0.0-27.el6_4.2 will be updated
—> Package openssl-devel.x86_64 0:1.0.1e-16.el6_5.15 will be an update
—> Package php-pear.noarch 1:1.9.4-4.el6 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================
Installing:
php x86_64 5.6.0-0.21.RC4.el6.remi remi-php56 2.6 M
php-cli x86_64 5.6.0-0.21.RC4.el6.remi remi-php56 3.7 M
php-common x86_64 5.6.0-0.21.RC4.el6.remi remi-php56 936 k
php-devel x86_64 5.6.0-0.21.RC4.el6.remi remi-php56 1.2 M
php-gd x86_64 5.6.0-0.21.RC4.el6.remi remi-php56 70 k
php-mbstring x86_64 5.6.0-0.21.RC4.el6.remi remi-php56 960 k
php-mysqlnd x86_64 5.6.0-0.21.RC4.el6.remi remi-php56 268 k
php-pdo x86_64 5.6.0-0.21.RC4.el6.remi remi-php56 111 k
Installing for dependencies:
apr x86_64 1.3.9-5.el6_2 base 123 k
apr-util x86_64 1.3.9-3.el6_0.1 base 87 k
apr-util-ldap x86_64 1.3.9-3.el6_0.1 base 15 k
autoconf noarch 2.63-5.1.el6 base 781 k
automake noarch 1.11.1-4.el6 base 550 k
httpd x86_64 2.2.15-31.el6.centos updates 824 k
httpd-tools x86_64 2.2.15-31.el6.centos updates 73 k
mailcap noarch 2.1.31-2.el6 base 27 k
php-pear noarch 1:1.9.4-4.el6 base 393 k
php-pecl-jsonc x86_64 1.3.6-1.el6.remi.5.6.1 remi-php56 47 k
php-pecl-jsonc-devel x86_64 1.3.6-1.el6.remi.5.6.1 remi-php56 25 k
php-pecl-zip x86_64 1.12.4-2.el6.remi.5.6 remi-php56 269 k
t1lib x86_64 5.1.2-6.el6_2.1 base 160 k
Updating for dependencies:
openssl x86_64 1.0.1e-16.el6_5.15 updates 1.5 M
openssl-devel x86_64 1.0.1e-16.el6_5.15 updates 1.2 M

Transaction Summary
==================================================================================================================================================
Install 21 Package(s)
Upgrade 2 Package(s)

Total download size: 16 M
Is this ok [y/N]: y
Downloading Packages:
(1/23): apr-1.3.9-5.el6_2.x86_64.rpm | 123 kB 00:00
(2/23): apr-util-1.3.9-3.el6_0.1.x86_64.rpm | 87 kB 00:01
(3/23): apr-util-ldap-1.3.9-3.el6_0.1.x86_64.rpm | 15 kB 00:00
(4/23): autoconf-2.63-5.1.el6.noarch.rpm | 781 kB 00:00
(5/23): automake-1.11.1-4.el6.noarch.rpm | 550 kB 00:00
(6/23): httpd-2.2.15-31.el6.centos.x86_64.rpm | 824 kB 00:00
(7/23): httpd-tools-2.2.15-31.el6.centos.x86_64.rpm | 73 kB 00:00
(8/23): mailcap-2.1.31-2.el6.noarch.rpm | 27 kB 00:00
(9/23): openssl-1.0.1e-16.el6_5.15.x86_64.rpm | 1.5 MB 00:00
(10/23): openssl-devel-1.0.1e-16.el6_5.15.x86_64.rpm | 1.2 MB 00:00
(11/23): php-5.6.0-0.21.RC4.el6.remi.x86_64.rpm | 2.6 MB 00:04
(12/23): php-cli-5.6.0-0.21.RC4.el6.remi.x86_64.rpm | 3.7 MB 00:24
(13/23): php-common-5.6.0-0.21.RC4.el6.remi.x86_64.rpm | 936 kB 00:03
(14/23): php-devel-5.6.0-0.21.RC4.el6.remi.x86_64.rpm | 1.2 MB 00:04
(15/23): php-gd-5.6.0-0.21.RC4.el6.remi.x86_64.rpm | 70 kB 00:01
(16/23): php-mbstring-5.6.0-0.21.RC4.el6.remi.x86_64.rpm | 960 kB 00:05
(17/23): php-mysqlnd-5.6.0-0.21.RC4.el6.remi.x86_64.rpm | 268 kB 00:00
(18/23): php-pdo-5.6.0-0.21.RC4.el6.remi.x86_64.rpm | 111 kB 00:01
(19/23): php-pear-1.9.4-4.el6.noarch.rpm | 393 kB 00:01
(20/23): php-pecl-jsonc-1.3.6-1.el6.remi.5.6.1.x86_64.rpm | 47 kB 00:00
(21/23): php-pecl-jsonc-devel-1.3.6-1.el6.remi.5.6.1.x86_64.rpm | 25 kB 00:00
(22/23): php-pecl-zip-1.12.4-2.el6.remi.5.6.x86_64.rpm | 269 kB 00:00
(23/23): t1lib-5.1.2-6.el6_2.1.x86_64.rpm | 160 kB 00:01
————————————————————————————————————————————————–
Total 132 kB/s | 16 MB 02:02
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : openssl-1.0.1e-16.el6_5.15.x86_64 1/25
Installing : php-cli-5.6.0-0.21.RC4.el6.remi.x86_64 2/25
Installing : 1:php-pear-1.9.4-4.el6.noarch 3/25
Installing : php-common-5.6.0-0.21.RC4.el6.remi.x86_64 4/25

WARNING : These php-* RPM are not official Fedora / Red Hat build and
overrides the official ones. Don’t file bugs on Fedora Project nor Red Hat.

Use dedicated forums http://forums.famillecollet.com/

Installing : php-pecl-jsonc-1.3.6-1.el6.remi.5.6.1.x86_64 5/25
Installing : php-pecl-zip-1.12.4-2.el6.remi.5.6.x86_64 6/25
Installing : apr-1.3.9-5.el6_2.x86_64 7/25
Installing : apr-util-1.3.9-3.el6_0.1.x86_64 8/25
Installing : autoconf-2.63-5.1.el6.noarch 9/25
Installing : automake-1.11.1-4.el6.noarch 10/25
Installing : php-devel-5.6.0-0.21.RC4.el6.remi.x86_64 11/25
Installing : php-pecl-jsonc-devel-1.3.6-1.el6.remi.5.6.1.x86_64 12/25
Installing : apr-util-ldap-1.3.9-3.el6_0.1.x86_64 13/25
Installing : httpd-tools-2.2.15-31.el6.centos.x86_64 14/25
Installing : php-pdo-5.6.0-0.21.RC4.el6.remi.x86_64 15/25
Installing : mailcap-2.1.31-2.el6.noarch 16/25
Installing : httpd-2.2.15-31.el6.centos.x86_64 17/25
Installing : t1lib-5.1.2-6.el6_2.1.x86_64 18/25
Installing : php-gd-5.6.0-0.21.RC4.el6.remi.x86_64 19/25
Installing : php-5.6.0-0.21.RC4.el6.remi.x86_64 20/25
Installing : php-mysqlnd-5.6.0-0.21.RC4.el6.remi.x86_64 21/25
Installing : php-mbstring-5.6.0-0.21.RC4.el6.remi.x86_64 22/25
Updating : openssl-devel-1.0.1e-16.el6_5.15.x86_64 23/25
Cleanup : openssl-devel-1.0.0-27.el6_4.2.x86_64 24/25
Cleanup : openssl-1.0.0-27.el6_4.2.x86_64 25/25
Verifying : apr-util-ldap-1.3.9-3.el6_0.1.x86_64 1/25
Verifying : openssl-1.0.1e-16.el6_5.15.x86_64 2/25
Verifying : automake-1.11.1-4.el6.noarch 3/25
Verifying : 1:php-pear-1.9.4-4.el6.noarch 4/25
Verifying : php-pdo-5.6.0-0.21.RC4.el6.remi.x86_64 5/25
Verifying : openssl-devel-1.0.1e-16.el6_5.15.x86_64 6/25
Verifying : t1lib-5.1.2-6.el6_2.1.x86_64 7/25
Verifying : php-gd-5.6.0-0.21.RC4.el6.remi.x86_64 8/25
Verifying : php-5.6.0-0.21.RC4.el6.remi.x86_64 9/25
Verifying : php-cli-5.6.0-0.21.RC4.el6.remi.x86_64 10/25
Verifying : autoconf-2.63-5.1.el6.noarch 11/25
Verifying : apr-util-1.3.9-3.el6_0.1.x86_64 12/25
Verifying : php-pecl-zip-1.12.4-2.el6.remi.5.6.x86_64 13/25
Verifying : php-pecl-jsonc-1.3.6-1.el6.remi.5.6.1.x86_64 14/25
Verifying : php-common-5.6.0-0.21.RC4.el6.remi.x86_64 15/25
Verifying : php-mysqlnd-5.6.0-0.21.RC4.el6.remi.x86_64 16/25
Verifying : apr-1.3.9-5.el6_2.x86_64 17/25
Verifying : mailcap-2.1.31-2.el6.noarch 18/25
Verifying : php-mbstring-5.6.0-0.21.RC4.el6.remi.x86_64 19/25
Verifying : httpd-2.2.15-31.el6.centos.x86_64 20/25
Verifying : php-devel-5.6.0-0.21.RC4.el6.remi.x86_64 21/25
Verifying : httpd-tools-2.2.15-31.el6.centos.x86_64 22/25
Verifying : php-pecl-jsonc-devel-1.3.6-1.el6.remi.5.6.1.x86_64 23/25
Verifying : openssl-1.0.0-27.el6_4.2.x86_64 24/25
Verifying : openssl-devel-1.0.0-27.el6_4.2.x86_64 25/25

Installed:
php.x86_64 0:5.6.0-0.21.RC4.el6.remi php-cli.x86_64 0:5.6.0-0.21.RC4.el6.remi php-common.x86_64 0:5.6.0-0.21.RC4.el6.remi
php-devel.x86_64 0:5.6.0-0.21.RC4.el6.remi php-gd.x86_64 0:5.6.0-0.21.RC4.el6.remi php-mbstring.x86_64 0:5.6.0-0.21.RC4.el6.remi
php-mysqlnd.x86_64 0:5.6.0-0.21.RC4.el6.remi php-pdo.x86_64 0:5.6.0-0.21.RC4.el6.remi

Dependency Installed:
apr.x86_64 0:1.3.9-5.el6_2 apr-util.x86_64 0:1.3.9-3.el6_0.1 apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1
autoconf.noarch 0:2.63-5.1.el6 automake.noarch 0:1.11.1-4.el6 httpd.x86_64 0:2.2.15-31.el6.centos
httpd-tools.x86_64 0:2.2.15-31.el6.centos mailcap.noarch 0:2.1.31-2.el6 php-pear.noarch 1:1.9.4-4.el6
php-pecl-jsonc.x86_64 0:1.3.6-1.el6.remi.5.6.1 php-pecl-jsonc-devel.x86_64 0:1.3.6-1.el6.remi.5.6.1 php-pecl-zip.x86_64 0:1.12.4-2.el6.remi.5.6
t1lib.x86_64 0:5.1.2-6.el6_2.1

Dependency Updated:
openssl.x86_64 0:1.0.1e-16.el6_5.15 openssl-devel.x86_64 0:1.0.1e-16.el6_5.15

Complete!

~~~

Zend OPcacheも追加してみます

~~~
$ sudo yum –enablerepo=remi-php56 install php-pecl-zendopcache
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.jaist.ac.jp
* epel: mirrors.123host.vn
* extras: ftp.jaist.ac.jp
* remi-php56: rpms.famillecollet.com
* updates: ftp.jaist.ac.jp
Setting up Install Process
Package php-pecl-zendopcache is obsoleted by php-opcache, trying to install php-opcache-5.6.0-0.21.RC4.el6.remi.x86_64 instead
Resolving Dependencies
–> Running transaction check
—> Package php-opcache.x86_64 0:5.6.0-0.21.RC4.el6.remi will be installed
–> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================
Installing:
php-opcache x86_64 5.6.0-0.21.RC4.el6.remi remi-php56 116 k

Transaction Summary
==================================================================================================================================================
Install 1 Package(s)

Total download size: 116 k
Installed size: 292 k
Is this ok [y/N]: y
Downloading Packages:
php-opcache-5.6.0-0.21.RC4.el6.remi.x86_64.rpm | 116 kB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php-opcache-5.6.0-0.21.RC4.el6.remi.x86_64 1/1
Verifying : php-opcache-5.6.0-0.21.RC4.el6.remi.x86_64 1/1

Installed:
php-opcache.x86_64 0:5.6.0-0.21.RC4.el6.remi

Complete!
~~~

そろそろ正式版がでるPHP5.6、現時点で普通にインストールまでは出来るようです

2014/08/29 時点で remi-php56 を使えば正式版のPHP5.6がインストールできます

~~~
$ sudo yum –enablerepo=remi-php56 update php*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/metalink | 6.3 kB 00:00
* base: ftp.jaist.ac.jp
* epel: mirrors.123host.vn
* extras: ftp.jaist.ac.jp
* remi-php56: rpms.famillecollet.com
* updates: ftp.jaist.ac.jp
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
remi-php56 | 2.9 kB 00:00
remi-php56/primary_db | 157 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 4.7 MB 00:03
Setting up Update Process
Resolving Dependencies
–> Running transaction check
—> Package php.x86_64 0:5.6.0-0.21.RC4.el6.remi will be updated
—> Package php.x86_64 0:5.6.0-1.el6.remi will be an update
—> Package php-cli.x86_64 0:5.6.0-0.21.RC4.el6.remi will be updated
—> Package php-cli.x86_64 0:5.6.0-1.el6.remi will be an update
—> Package php-common.x86_64 0:5.6.0-0.21.RC4.el6.remi will be updated
—> Package php-common.x86_64 0:5.6.0-1.el6.remi will be an update
—> Package php-devel.x86_64 0:5.6.0-0.21.RC4.el6.remi will be updated
—> Package php-devel.x86_64 0:5.6.0-1.el6.remi will be an update
—> Package php-gd.x86_64 0:5.6.0-0.21.RC4.el6.remi will be updated
—> Package php-gd.x86_64 0:5.6.0-1.el6.remi will be an update
—> Package php-mbstring.x86_64 0:5.6.0-0.21.RC4.el6.remi will be updated
—> Package php-mbstring.x86_64 0:5.6.0-1.el6.remi will be an update
—> Package php-mysqlnd.x86_64 0:5.6.0-0.21.RC4.el6.remi will be updated
—> Package php-mysqlnd.x86_64 0:5.6.0-1.el6.remi will be an update
—> Package php-opcache.x86_64 0:5.6.0-0.21.RC4.el6.remi will be updated
—> Package php-opcache.x86_64 0:5.6.0-1.el6.remi will be an update
—> Package php-pdo.x86_64 0:5.6.0-0.21.RC4.el6.remi will be updated
—> Package php-pdo.x86_64 0:5.6.0-1.el6.remi will be an update
–> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================
Updating:
php x86_64 5.6.0-1.el6.remi remi-php56 2.6 M
php-cli x86_64 5.6.0-1.el6.remi remi-php56 3.7 M
php-common x86_64 5.6.0-1.el6.remi remi-php56 1.0 M
php-devel x86_64 5.6.0-1.el6.remi remi-php56 1.2 M
php-gd x86_64 5.6.0-1.el6.remi remi-php56 71 k
php-mbstring x86_64 5.6.0-1.el6.remi remi-php56 960 k
php-mysqlnd x86_64 5.6.0-1.el6.remi remi-php56 269 k
php-opcache x86_64 5.6.0-1.el6.remi remi-php56 116 k
php-pdo x86_64 5.6.0-1.el6.remi remi-php56 112 k

Transaction Summary
==================================================================================================================================================
Upgrade 9 Package(s)

Total download size: 10 M
Is this ok [y/N]: y
Downloading Packages:
(1/9): php-5.6.0-1.el6.remi.x86_64.rpm | 2.6 MB 00:10
(2/9): php-cli-5.6.0-1.el6.remi.x86_64.rpm | 3.7 MB 00:12
(3/9): php-common-5.6.0-1.el6.remi.x86_64.rpm | 1.0 MB 00:02
(4/9): php-devel-5.6.0-1.el6.remi.x86_64.rpm | 1.2 MB 00:06
(5/9): php-gd-5.6.0-1.el6.remi.x86_64.rpm | 71 kB 00:00
(6/9): php-mbstring-5.6.0-1.el6.remi.x86_64.rpm | 960 kB 00:03
(7/9): php-mysqlnd-5.6.0-1.el6.remi.x86_64.rpm | 269 kB 00:01
(8/9): php-opcache-5.6.0-1.el6.remi.x86_64.rpm | 116 kB 00:01
(9/9): php-pdo-5.6.0-1.el6.remi.x86_64.rpm | 112 kB 00:00
————————————————————————————————————————————————–
Total 172 kB/s | 10 MB 00:59
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : php-common-5.6.0-1.el6.remi.x86_64 1/18

WARNING : These php-* RPM are not official Fedora / Red Hat build and
overrides the official ones. Don’t file bugs on Fedora Project nor Red Hat.

Use dedicated forums http://forums.famillecollet.com/

Updating : php-cli-5.6.0-1.el6.remi.x86_64 2/18
Updating : php-pdo-5.6.0-1.el6.remi.x86_64 3/18
Updating : php-mysqlnd-5.6.0-1.el6.remi.x86_64 4/18
Updating : php-5.6.0-1.el6.remi.x86_64 5/18
Updating : php-devel-5.6.0-1.el6.remi.x86_64 6/18
Updating : php-mbstring-5.6.0-1.el6.remi.x86_64 7/18
Updating : php-gd-5.6.0-1.el6.remi.x86_64 8/18
Updating : php-opcache-5.6.0-1.el6.remi.x86_64 9/18
Cleanup : php-5.6.0-0.21.RC4.el6.remi.x86_64 10/18
Cleanup : php-opcache-5.6.0-0.21.RC4.el6.remi.x86_64 11/18
Cleanup : php-devel-5.6.0-0.21.RC4.el6.remi.x86_64 12/18
Cleanup : php-cli-5.6.0-0.21.RC4.el6.remi.x86_64 13/18
Cleanup : php-gd-5.6.0-0.21.RC4.el6.remi.x86_64 14/18
Cleanup : php-mysqlnd-5.6.0-0.21.RC4.el6.remi.x86_64 15/18
Cleanup : php-pdo-5.6.0-0.21.RC4.el6.remi.x86_64 16/18
Cleanup : php-mbstring-5.6.0-0.21.RC4.el6.remi.x86_64 17/18
Cleanup : php-common-5.6.0-0.21.RC4.el6.remi.x86_64 18/18
Verifying : php-common-5.6.0-1.el6.remi.x86_64 1/18
Verifying : php-5.6.0-1.el6.remi.x86_64 2/18
Verifying : php-mbstring-5.6.0-1.el6.remi.x86_64 3/18
Verifying : php-pdo-5.6.0-1.el6.remi.x86_64 4/18
Verifying : php-mysqlnd-5.6.0-1.el6.remi.x86_64 5/18
Verifying : php-gd-5.6.0-1.el6.remi.x86_64 6/18
Verifying : php-devel-5.6.0-1.el6.remi.x86_64 7/18
Verifying : php-opcache-5.6.0-1.el6.remi.x86_64 8/18
Verifying : php-cli-5.6.0-1.el6.remi.x86_64 9/18
Verifying : php-mbstring-5.6.0-0.21.RC4.el6.remi.x86_64 10/18
Verifying : php-common-5.6.0-0.21.RC4.el6.remi.x86_64 11/18
Verifying : php-gd-5.6.0-0.21.RC4.el6.remi.x86_64 12/18
Verifying : php-5.6.0-0.21.RC4.el6.remi.x86_64 13/18
Verifying : php-devel-5.6.0-0.21.RC4.el6.remi.x86_64 14/18
Verifying : php-cli-5.6.0-0.21.RC4.el6.remi.x86_64 15/18
Verifying : php-pdo-5.6.0-0.21.RC4.el6.remi.x86_64 16/18
Verifying : php-mysqlnd-5.6.0-0.21.RC4.el6.remi.x86_64 17/18
Verifying : php-opcache-5.6.0-0.21.RC4.el6.remi.x86_64 18/18

Updated:
php.x86_64 0:5.6.0-1.el6.remi php-cli.x86_64 0:5.6.0-1.el6.remi php-common.x86_64 0:5.6.0-1.el6.remi
php-devel.x86_64 0:5.6.0-1.el6.remi php-gd.x86_64 0:5.6.0-1.el6.remi php-mbstring.x86_64 0:5.6.0-1.el6.remi
php-mysqlnd.x86_64 0:5.6.0-1.el6.remi php-opcache.x86_64 0:5.6.0-1.el6.remi php-pdo.x86_64 0:5.6.0-1.el6.remi

Complete!
~~~

ImageMagickを入れたい時も

ImageMagickではなく、ImageMagick-lastが必要
~~~
sudo yum install –enablerepo=remi ImageMagick-last
~~~

~~~
sudo yum install –enablerepo=remi-php56 php-pecl-imagick

Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: ftp.tsukuba.wide.ad.jp
* epel: ftp.tsukuba.wide.ad.jp
* extras: ftp.tsukuba.wide.ad.jp
* remi-php56: remi.kazukioishi.net
* updates: ftp.tsukuba.wide.ad.jp
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package php-pecl-imagick.x86_64 0:3.2.0-0.9.RC1.el6.remi.5.6 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================
Installing:
php-pecl-imagick x86_64 3.2.0-0.9.RC1.el6.remi.5.6 remi-php56 147 k

Transaction Summary
==================================================================================================================================================
Install 1 Package(s)

Total download size: 147 k
Installed size: 779 k
Is this ok [y/N]: y
Downloading Packages:
php-pecl-imagick-3.2.0-0.9.RC1.el6.remi.5.6.x86_64.rpm | 147 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php-pecl-imagick-3.2.0-0.9.RC1.el6.remi.5.6.x86_64 1/1
Verifying : php-pecl-imagick-3.2.0-0.9.RC1.el6.remi.5.6.x86_64 1/1

Installed:
php-pecl-imagick.x86_64 0:3.2.0-0.9.RC1.el6.remi.5.6

Complete!
~~~