Quantcast
Channel: はるはる。の開発日記 » CentOS
Viewing all articles
Browse latest Browse all 10

CentOS 6.5 に PHP5.5 をインストール

$
0
0

CentOS 6.5 に PHP5.5 をインストールした際のメモ

RPMでリポジトリをインストール

# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm を取得中
準備中...                ########################################### [100%]
        パッケージ epel-release-6-8.noarch は既にインストールされています。
# cp /etc/php.ini /etc/php.ini.5.3

# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
http://rpms.famillecollet.com/enterprise/remi-release-6.rpm を取得中
警告: /var/tmp/rpm-tmp.itAdOQ: ヘッダ V3 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
準備中...                ########################################### [100%]
   1:remi-release           ########################################### [100%]

リポジトリを確認

# cat /etc/yum.repos.d/remi.repo
[remi]
name=Les RPM de remi pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

[remi-php55]
name=Les RPM de remi de PHP 5.5 pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/php55/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/php55/mirror
# WARNING: If you enable this repository, you must also enable "remi"
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

リポジトリを指定して PHP 関連をインストール

# yum install --enablerepo=remi --enablerepo=remi-php55 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd
Loaded plugins: downloadonly, fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: ftp.iij.ad.jp
 * epel: ftp.jaist.ac.jp
 * extras: ftp.iij.ad.jp
 * remi: remi.kazukioishi.net
 * remi-php55: remi.kazukioishi.net
 * updates: ftp.iij.ad.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.3.3-27.el6_5 will be updated
---> Package php.x86_64 0:5.5.12-1.el6.remi will be an update
--> Processing Dependency: php-common(x86-64) = 5.5.12-1.el6.remi for package: php-5.5.12-1.el6.remi.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.5.12-1.el6.remi for package: php-5.5.12-1.el6.remi.x86_64
---> Package php-devel.x86_64 0:5.3.3-27.el6_5 will be updated
---> Package php-devel.x86_64 0:5.5.12-1.el6.remi will be an update
--> Processing Dependency: php-pecl-jsonc-devel(x86-64) for package: php-devel-5.5.12-1.el6.remi.x86_64
---> Package php-mbstring.x86_64 0:5.3.3-27.el6_5 will be updated
---> Package php-mbstring.x86_64 0:5.5.12-1.el6.remi will be an update
---> Package php-mcrypt.x86_64 0:5.3.3-3.el6 will be updated
---> Package php-mcrypt.x86_64 0:5.5.12-1.el6.remi will be an update
--> Processing Dependency: libltdl.so.7()(64bit) for package: php-mcrypt-5.5.12-1.el6.remi.x86_64
---> Package php-mysql.x86_64 0:5.3.3-27.el6_5 will be obsoleted
---> Package php-mysqlnd.x86_64 0:5.5.12-1.el6.remi will be obsoleting
--> Processing Dependency: php-pdo(x86-64) = 5.5.12-1.el6.remi for package: php-mysqlnd-5.5.12-1.el6.remi.x86_64
---> Package php-opcache.x86_64 0:5.5.12-1.el6.remi will be installed
--> Running transaction check
---> Package libtool-ltdl.x86_64 0:2.2.6-15.5.el6 will be installed
---> Package php-cli.x86_64 0:5.3.3-27.el6_5 will be updated
---> Package php-cli.x86_64 0:5.5.12-1.el6.remi will be an update
---> Package php-common.x86_64 0:5.3.3-27.el6_5 will be updated
--> Processing Dependency: php(api) = 20090626 for package: php-pecl-memcache-3.0.5-4.el6.x86_64
--> Processing Dependency: php(api) = 20090626 for package: php-pecl-apc-3.1.9-2.el6.x86_64
--> Processing Dependency: php(api) = 20090626 for package: php-pecl-memcached-1.0.0-1.el6.x86_64
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-pecl-memcache-3.0.5-4.el6.x86_64
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-pecl-apc-3.1.9-2.el6.x86_64
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-pecl-memcached-1.0.0-1.el6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-27.el6_5 for package: php-gd-5.3.3-27.el6_5.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-27.el6_5 for package: php-xml-5.3.3-27.el6_5.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-27.el6_5 for package: php-process-5.3.3-27.el6_5.x86_64
---> Package php-common.x86_64 0:5.5.12-1.el6.remi will be an update
--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.5.12-1.el6.remi.x86_64
--> Processing Dependency: php-pecl-jsonc(x86-64) for package: php-common-5.5.12-1.el6.remi.x86_64
---> Package php-pdo.x86_64 0:5.3.3-27.el6_5 will be updated
---> Package php-pdo.x86_64 0:5.5.12-1.el6.remi will be an update
---> Package php-pecl-jsonc-devel.x86_64 0:1.3.5-1.el6.remi.5.5 will be installed
--> Running transaction check
---> Package php-gd.x86_64 0:5.3.3-27.el6_5 will be updated
---> Package php-gd.x86_64 0:5.5.12-1.el6.remi will be an update
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.5.12-1.el6.remi.x86_64
--> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-5.5.12-1.el6.remi.x86_64
---> Package php-pecl-apc.x86_64 0:3.1.9-2.el6 will be updated
---> Package php-pecl-apc.x86_64 0:3.1.15-0.4.20130912.el6.remi.5.5 will be an update
---> Package php-pecl-jsonc.x86_64 0:1.3.5-1.el6.remi.5.5 will be installed
---> Package php-pecl-memcache.x86_64 0:3.0.5-4.el6 will be updated
---> Package php-pecl-memcache.x86_64 0:3.0.8-2.el6.remi.5.5 will be an update
---> Package php-pecl-memcached.x86_64 0:1.0.0-1.el6 will be updated
---> Package php-pecl-memcached.x86_64 0:2.2.0-2.el6.remi.5.5 will be an update
--> Processing Dependency: php-pecl-msgpack(x86-64) for package: php-pecl-memcached-2.2.0-2.el6.remi.5.5.x86_64
--> Processing Dependency: php-pecl-igbinary(x86-64) for package: php-pecl-memcached-2.2.0-2.el6.remi.5.5.x86_64
--> Processing Dependency: libmemcachedutil.so.2()(64bit) for package: php-pecl-memcached-2.2.0-2.el6.remi.5.5.x86_64
--> Processing Dependency: libmemcachedprotocol.so.0()(64bit) for package: php-pecl-memcached-2.2.0-2.el6.remi.5.5.x86_64
--> Processing Dependency: libmemcached.so.11()(64bit) for package: php-pecl-memcached-2.2.0-2.el6.remi.5.5.x86_64
--> Processing Dependency: libevent-2.0.so.5()(64bit) for package: php-pecl-memcached-2.2.0-2.el6.remi.5.5.x86_64
---> Package php-pecl-zip.x86_64 0:1.12.4-1.el6.remi.5.5 will be installed
---> Package php-process.x86_64 0:5.3.3-27.el6_5 will be updated
---> Package php-process.x86_64 0:5.5.12-1.el6.remi will be an update
---> Package php-xml.x86_64 0:5.3.3-27.el6_5 will be updated
---> Package php-xml.x86_64 0:5.5.12-1.el6.remi will be an update
--> Running transaction check
---> Package gd-last.x86_64 0:2.1.0-2.el6.remi will be installed
---> Package libevent-last.x86_64 0:2.0.21-4.el6.remi will be installed
---> Package libmemcached-last-libs.x86_64 0:1.0.18-2.el6.remi will be installed
---> Package php-pecl-igbinary.x86_64 0:1.1.2-0.5.git3b8ab7e.el6.remi.1 will be installed
---> Package php-pecl-msgpack.x86_64 0:0.5.5-4.el6.remi.1 will be installed
---> Package t1lib.x86_64 0:5.1.2-6.el6_2.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================
 Package                Arch   Version                  Repository  Size
=========================================================================
Installing:
 php-mysqlnd            x86_64 5.5.12-1.el6.remi        remi-php55 261 k
     replacing  php-mysql.x86_64 5.3.3-27.el6_5
 php-opcache            x86_64 5.5.12-1.el6.remi        remi-php55 106 k
Updating:
 php                    x86_64 5.5.12-1.el6.remi        remi-php55 2.6 M
 php-devel              x86_64 5.5.12-1.el6.remi        remi-php55 2.4 M
 php-mbstring           x86_64 5.5.12-1.el6.remi        remi-php55 958 k
 php-mcrypt             x86_64 5.5.12-1.el6.remi        remi-php55  39 k
Installing for dependencies:
 gd-last                x86_64 2.1.0-2.el6.remi         remi       129 k
 libevent-last          x86_64 2.0.21-4.el6.remi        remi       196 k
 libmemcached-last-libs x86_64 1.0.18-2.el6.remi        remi       119 k
 libtool-ltdl           x86_64 2.2.6-15.5.el6           base        44 k
 php-pecl-igbinary      x86_64 1.1.2-0.5.git3b8ab7e.el6.remi.1
                                                        remi-php55  38 k
 php-pecl-jsonc         x86_64 1.3.5-1.el6.remi.5.5     remi-php55  46 k
 php-pecl-jsonc-devel   x86_64 1.3.5-1.el6.remi.5.5     remi-php55  24 k
 php-pecl-msgpack       x86_64 0.5.5-4.el6.remi.1       remi-php55  53 k
 php-pecl-zip           x86_64 1.12.4-1.el6.remi.5.5    remi-php55 269 k
 t1lib                  x86_64 5.1.2-6.el6_2.1          base       160 k
Updating for dependencies:
 php-cli                x86_64 5.5.12-1.el6.remi        remi-php55 2.5 M
 php-common             x86_64 5.5.12-1.el6.remi        remi-php55 1.0 M
 php-gd                 x86_64 5.5.12-1.el6.remi        remi-php55  68 k
 php-pdo                x86_64 5.5.12-1.el6.remi        remi-php55 109 k
 php-pecl-apc           x86_64 3.1.15-0.4.20130912.el6.remi.5.5
                                                        remi-php55 142 k
 php-pecl-memcache      x86_64 3.0.8-2.el6.remi.5.5     remi-php55 100 k
 php-pecl-memcached     x86_64 2.2.0-2.el6.remi.5.5     remi-php55 101 k
 php-process            x86_64 5.5.12-1.el6.remi        remi-php55  54 k
 php-xml                x86_64 5.5.12-1.el6.remi        remi-php55 205 k

Transaction Summary
=========================================================================
Install      12 Package(s)
Upgrade      13 Package(s)

Total download size: 12 M
Is this ok [y/N]: y
Downloading Packages:
(1/25): gd-last-2.1.0-2.el6.remi.x86_64.rpm       | 129 kB     00:00     
(2/25): libevent-last-2.0.21-4.el6.remi.x86_64.rp | 196 kB     00:00     
(3/25): libmemcached-last-libs-1.0.18-2.el6.remi. | 119 kB     00:00     
(4/25): libtool-ltdl-2.2.6-15.5.el6.x86_64.rpm    |  44 kB     00:00     
(5/25): php-5.5.12-1.el6.remi.x86_64.rpm          | 2.6 MB     00:00     
(6/25): php-cli-5.5.12-1.el6.remi.x86_64.rpm      | 2.5 MB     00:00     
(7/25): php-common-5.5.12-1.el6.remi.x86_64.rpm   | 1.0 MB     00:00     
(8/25): php-devel-5.5.12-1.el6.remi.x86_64.rpm    | 2.4 MB     00:00     
(9/25): php-gd-5.5.12-1.el6.remi.x86_64.rpm       |  68 kB     00:00     
(10/25): php-mbstring-5.5.12-1.el6.remi.x86_64.rp | 958 kB     00:00     
(11/25): php-mcrypt-5.5.12-1.el6.remi.x86_64.rpm  |  39 kB     00:00     
(12/25): php-mysqlnd-5.5.12-1.el6.remi.x86_64.rpm | 261 kB     00:00     
(13/25): php-opcache-5.5.12-1.el6.remi.x86_64.rpm | 106 kB     00:00     
(14/25): php-pdo-5.5.12-1.el6.remi.x86_64.rpm     | 109 kB     00:00     
(15/25): php-pecl-apc-3.1.15-0.4.20130912.el6.rem | 142 kB     00:00     
(16/25): php-pecl-igbinary-1.1.2-0.5.git3b8ab7e.e |  38 kB     00:00     
(17/25): php-pecl-jsonc-1.3.5-1.el6.remi.5.5.x86_ |  46 kB     00:00     
(18/25): php-pecl-jsonc-devel-1.3.5-1.el6.remi.5. |  24 kB     00:00     
(19/25): php-pecl-memcache-3.0.8-2.el6.remi.5.5.x | 100 kB     00:00     
(20/25): php-pecl-memcached-2.2.0-2.el6.remi.5.5. | 101 kB     00:00     
(21/25): php-pecl-msgpack-0.5.5-4.el6.remi.1.x86_ |  53 kB     00:00     
(22/25): php-pecl-zip-1.12.4-1.el6.remi.5.5.x86_6 | 269 kB     00:00     
(23/25): php-process-5.5.12-1.el6.remi.x86_64.rpm |  54 kB     00:00     
(24/25): php-xml-5.5.12-1.el6.remi.x86_64.rpm     | 205 kB     00:00     
(25/25): t1lib-5.1.2-6.el6_2.1.x86_64.rpm         | 160 kB     00:00     
-------------------------------------------------------------------------
Total                                    3.7 MB/s |  12 MB     00:03     
警告: rpmts_HdrFromFdno: ヘッダ 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 <RPMS@FamilleCollet.com>
 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 : php-pecl-zip-1.12.4-1.el6.remi.5.5.x86_64            1/39 
  Updating   : php-common-5.5.12-1.el6.remi.x86_64                  2/39 

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/

warning: /etc/php.ini created as /etc/php.ini.rpmnew
  Installing : php-pecl-jsonc-1.3.5-1.el6.remi.5.5.x86_64           3/39 
  Updating   : php-cli-5.5.12-1.el6.remi.x86_64                     4/39 
  Installing : libevent-last-2.0.21-4.el6.remi.x86_64               5/39 
  Installing : libmemcached-last-libs-1.0.18-2.el6.remi.x86_64      6/39 
  Installing : php-pecl-jsonc-devel-1.3.5-1.el6.remi.5.5.x86_64     7/39 
  Updating   : php-devel-5.5.12-1.el6.remi.x86_64                   8/39 
  Updating   : php-pdo-5.5.12-1.el6.remi.x86_64                     9/39 
  Installing : php-pecl-msgpack-0.5.5-4.el6.remi.1.x86_64          10/39 
  Installing : php-pecl-igbinary-1.1.2-0.5.git3b8ab7e.el6.remi.1   11/39 
  Installing : gd-last-2.1.0-2.el6.remi.x86_64                     12/39 
  Installing : libtool-ltdl-2.2.6-15.5.el6.x86_64                  13/39 
  Installing : t1lib-5.1.2-6.el6_2.1.x86_64                        14/39 
  Updating   : php-gd-5.5.12-1.el6.remi.x86_64                     15/39 
  Updating   : php-mcrypt-5.5.12-1.el6.remi.x86_64                 16/39 
  Updating   : php-pecl-memcached-2.2.0-2.el6.remi.5.5.x86_64      17/39 
  Installing : php-mysqlnd-5.5.12-1.el6.remi.x86_64                18/39 
  Updating   : php-5.5.12-1.el6.remi.x86_64                        19/39 
  Updating   : php-process-5.5.12-1.el6.remi.x86_64                20/39 
  Installing : php-opcache-5.5.12-1.el6.remi.x86_64                21/39 
  Updating   : php-pecl-apc-3.1.15-0.4.20130912.el6.remi.5.5.x86   22/39 
warning: /etc/php.d/apc.ini created as /etc/php.d/apc.ini.rpmnew
  Updating   : php-xml-5.5.12-1.el6.remi.x86_64                    23/39 
  Updating   : php-mbstring-5.5.12-1.el6.remi.x86_64               24/39 
  Updating   : php-pecl-memcache-3.0.8-2.el6.remi.5.5.x86_64       25/39 
  Erasing    : php-mysql-5.3.3-27.el6_5.x86_64                     26/39 
  Cleanup    : php-devel-5.3.3-27.el6_5.x86_64                     27/39 
  Cleanup    : php-5.3.3-27.el6_5.x86_64                           28/39 
  Cleanup    : php-cli-5.3.3-27.el6_5.x86_64                       29/39 
  Cleanup    : php-pdo-5.3.3-27.el6_5.x86_64                       30/39 
  Cleanup    : php-pecl-memcache-3.0.5-4.el6.x86_64                31/39 
  Cleanup    : php-mbstring-5.3.3-27.el6_5.x86_64                  32/39 
  Cleanup    : php-pecl-memcached-1.0.0-1.el6.x86_64               33/39 
  Cleanup    : php-xml-5.3.3-27.el6_5.x86_64                       34/39 
  Cleanup    : php-pecl-apc-3.1.9-2.el6.x86_64                     35/39 
  Cleanup    : php-process-5.3.3-27.el6_5.x86_64                   36/39 
  Cleanup    : php-gd-5.3.3-27.el6_5.x86_64                        37/39 
  Cleanup    : php-mcrypt-5.3.3-3.el6.x86_64                       38/39 
  Cleanup    : php-common-5.3.3-27.el6_5.x86_64                    39/39 
  Verifying  : php-mcrypt-5.5.12-1.el6.remi.x86_64                  1/39 
  Verifying  : php-gd-5.5.12-1.el6.remi.x86_64                      2/39 
  Verifying  : php-pecl-jsonc-1.3.5-1.el6.remi.5.5.x86_64           3/39 
  Verifying  : php-process-5.5.12-1.el6.remi.x86_64                 4/39 
  Verifying  : php-pecl-zip-1.12.4-1.el6.remi.5.5.x86_64            5/39 
  Verifying  : php-pecl-jsonc-devel-1.3.5-1.el6.remi.5.5.x86_64     6/39 
  Verifying  : php-opcache-5.5.12-1.el6.remi.x86_64                 7/39 
  Verifying  : php-mysqlnd-5.5.12-1.el6.remi.x86_64                 8/39 
  Verifying  : php-pecl-apc-3.1.15-0.4.20130912.el6.remi.5.5.x86    9/39 
  Verifying  : php-pdo-5.5.12-1.el6.remi.x86_64                    10/39 
  Verifying  : t1lib-5.1.2-6.el6_2.1.x86_64                        11/39 
  Verifying  : php-devel-5.5.12-1.el6.remi.x86_64                  12/39 
  Verifying  : php-xml-5.5.12-1.el6.remi.x86_64                    13/39 
  Verifying  : php-pecl-msgpack-0.5.5-4.el6.remi.1.x86_64          14/39 
  Verifying  : php-pecl-memcached-2.2.0-2.el6.remi.5.5.x86_64      15/39 
  Verifying  : libevent-last-2.0.21-4.el6.remi.x86_64              16/39 
  Verifying  : libtool-ltdl-2.2.6-15.5.el6.x86_64                  17/39 
  Verifying  : libmemcached-last-libs-1.0.18-2.el6.remi.x86_64     18/39 
  Verifying  : php-pecl-igbinary-1.1.2-0.5.git3b8ab7e.el6.remi.1   19/39 
  Verifying  : php-common-5.5.12-1.el6.remi.x86_64                 20/39 
  Verifying  : php-mbstring-5.5.12-1.el6.remi.x86_64               21/39 
  Verifying  : php-cli-5.5.12-1.el6.remi.x86_64                    22/39 
  Verifying  : php-5.5.12-1.el6.remi.x86_64                        23/39 
  Verifying  : gd-last-2.1.0-2.el6.remi.x86_64                     24/39 
  Verifying  : php-pecl-memcache-3.0.8-2.el6.remi.5.5.x86_64       25/39 
  Verifying  : php-xml-5.3.3-27.el6_5.x86_64                       26/39 
  Verifying  : php-devel-5.3.3-27.el6_5.x86_64                     27/39 
  Verifying  : php-gd-5.3.3-27.el6_5.x86_64                        28/39 
  Verifying  : php-mbstring-5.3.3-27.el6_5.x86_64                  29/39 
  Verifying  : php-process-5.3.3-27.el6_5.x86_64                   30/39 
  Verifying  : php-pecl-memcached-1.0.0-1.el6.x86_64               31/39 
  Verifying  : php-common-5.3.3-27.el6_5.x86_64                    32/39 
  Verifying  : php-pecl-apc-3.1.9-2.el6.x86_64                     33/39 
  Verifying  : php-cli-5.3.3-27.el6_5.x86_64                       34/39 
  Verifying  : php-5.3.3-27.el6_5.x86_64                           35/39 
  Verifying  : php-pdo-5.3.3-27.el6_5.x86_64                       36/39 
  Verifying  : php-mysql-5.3.3-27.el6_5.x86_64                     37/39 
  Verifying  : php-mcrypt-5.3.3-3.el6.x86_64                       38/39 
  Verifying  : php-pecl-memcache-3.0.5-4.el6.x86_64                39/39 

Installed:
  php-mysqlnd.x86_64 0:5.5.12-1.el6.remi                                 
  php-opcache.x86_64 0:5.5.12-1.el6.remi                                 

Dependency Installed:
  gd-last.x86_64 0:2.1.0-2.el6.remi                                      
  libevent-last.x86_64 0:2.0.21-4.el6.remi                               
  libmemcached-last-libs.x86_64 0:1.0.18-2.el6.remi                      
  libtool-ltdl.x86_64 0:2.2.6-15.5.el6                                   
  php-pecl-igbinary.x86_64 0:1.1.2-0.5.git3b8ab7e.el6.remi.1             
  php-pecl-jsonc.x86_64 0:1.3.5-1.el6.remi.5.5                           
  php-pecl-jsonc-devel.x86_64 0:1.3.5-1.el6.remi.5.5                     
  php-pecl-msgpack.x86_64 0:0.5.5-4.el6.remi.1                           
  php-pecl-zip.x86_64 0:1.12.4-1.el6.remi.5.5                            
  t1lib.x86_64 0:5.1.2-6.el6_2.1                                         

Updated:
  php.x86_64 0:5.5.12-1.el6.remi                                         
  php-devel.x86_64 0:5.5.12-1.el6.remi                                   
  php-mbstring.x86_64 0:5.5.12-1.el6.remi                                
  php-mcrypt.x86_64 0:5.5.12-1.el6.remi                                  

Dependency Updated:
  php-cli.x86_64 0:5.5.12-1.el6.remi                                     
  php-common.x86_64 0:5.5.12-1.el6.remi                                  
  php-gd.x86_64 0:5.5.12-1.el6.remi                                      
  php-pdo.x86_64 0:5.5.12-1.el6.remi                                     
  php-pecl-apc.x86_64 0:3.1.15-0.4.20130912.el6.remi.5.5                 
  php-pecl-memcache.x86_64 0:3.0.8-2.el6.remi.5.5                        
  php-pecl-memcached.x86_64 0:2.2.0-2.el6.remi.5.5                       
  php-process.x86_64 0:5.5.12-1.el6.remi                                 
  php-xml.x86_64 0:5.5.12-1.el6.remi                                     

Replaced:
  php-mysql.x86_64 0:5.3.3-27.el6_5                                      

PHP のバージョンを確認

# php -v
PHP Warning:  Module 'zmq' already loaded in Unknown on line 0
PHP 5.5.12 (cli) (built: May  2 2014 19:53:49) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies

/etc/php.d/ 配下のファイル(ls /etc/php.d/)が、どのパッケージによって提供されているかを調べ(rpm -qf ファイル)、結果をソートして重複する項目をなくし、「common」を含むものを除いたものを表示するコマンド

#for n in `ls /etc/php.d/` ; do rpm -qf /etc/php.d/$n ; done | sort | uniq | egrep -v 'common'

php-gd-5.5.12-1.el6.remi.x86_64
php-mbstring-5.5.12-1.el6.remi.x86_64
php-mcrypt-5.5.12-1.el6.remi.x86_64
php-mysqlnd-5.5.12-1.el6.remi.x86_64
php-opcache-5.5.12-1.el6.remi.x86_64
php-pdo-5.5.12-1.el6.remi.x86_64
php-pecl-apc-3.1.15-0.4.20130912.el6.remi.5.5.x86_64
php-pecl-igbinary-1.1.2-0.5.git3b8ab7e.el6.remi.1.x86_64
php-pecl-jsonc-1.3.5-1.el6.remi.5.5.x86_64
php-pecl-memcache-3.0.8-2.el6.remi.5.5.x86_64
php-pecl-memcached-2.2.0-2.el6.remi.5.5.x86_64
php-pecl-msgpack-0.5.5-4.el6.remi.1.x86_64
php-pecl-zip-1.12.4-1.el6.remi.5.5.x86_64
php-pecl-zmq-1.1.2-1.el6.remi.5.5.x86_64
php-process-5.5.12-1.el6.remi.x86_64
php-xml-5.5.12-1.el6.remi.x86_64
ファイル /etc/php.d/apc.ini.rpmnew はどのパッケージにも属していません。
ファイル /etc/php.d/zeromq.ini はどのパッケージにも属していません。

不要なパッケージを削除

# rpm -e --nodeps php-pecl-apc
# rpm -e --nodeps php-pecl-zmq

Viewing all articles
Browse latest Browse all 10

Trending Articles