読者です 読者をやめる 読者になる 読者になる

AKAI TSUKI

System development or Technical something

php 5.5 install

現在のPHPバージョン

# php -v
PHP 5.3.3 (cli) (built: Dec 11 2013 03:29:57)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
#

リポジトリを追加

# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
Retrieving http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
warning: /var/tmp/rpm-tmp.7x5s54: Header V3 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
Preparing...                ########################################### [100%]
   1:remi-release           ########################################### [100%]
# ls -l /etc/yum.repos.d/
total 36
-rw-r--r--. 1 root root 1926 Nov 27 20:53 CentOS-Base.repo
-rw-r--r--. 1 root root  638 Nov 27 20:53 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root  630 Nov 27 20:53 CentOS-Media.repo
-rw-r--r--. 1 root root 3664 Nov 27 20:53 CentOS-Vault.repo
-rw-r--r--  1 root root  957 Nov  5  2012 epel.repo
-rw-r--r--  1 root root 1056 Nov  5  2012 epel-testing.repo
-rw-r--r--  1 root root 1209 Dec  2 20:15 mysql-community.repo
-rw-r--r--  1 root root 1060 Dec  2 20:15 mysql-community-source.repo
-rw-r--r--  1 root root 2298 Mar  1 19:47 remi.repo
#

インストール結果

# sudo yum install --enablerepo=remi --enablerepo=remi-php55 php php-devel php-mbstring php-mcrypt php-mysql

(途中省略)

Installed:
  php-devel.x86_64 0:5.5.10-1.el6.remi.1                      php-mcrypt.x86_64 0:5.5.10-1.el6.remi.1
  php-mysqlnd.x86_64 0:5.5.10-1.el6.remi.1

Dependency Installed:
  autoconf.noarch 0:2.63-5.1.el6                          automake.noarch 0:1.11.1-4.el6
  libmcrypt.x86_64 0:2.5.8-9.el6                          libtool-ltdl.x86_64 0:2.2.6-15.5.el6
  libxslt.x86_64 0:1.1.26-2.el6_3.1                       php-pear.noarch 1:1.9.4-23.el6.remi
  php-pecl-jsonc.x86_64 0:1.3.4-1.el6.remi.5.5            php-pecl-jsonc-devel.x86_64 0:1.3.4-1.el6.remi.5.5
  php-pecl-zip.x86_64 0:1.12.4-1.el6.remi.5.5             php-process.x86_64 0:5.5.10-1.el6.remi.1
  php-xml.x86_64 0:5.5.10-1.el6.remi.1

Updated:
  php.x86_64 0:5.5.10-1.el6.remi.1                       php-mbstring.x86_64 0:5.5.10-1.el6.remi.1

Dependency Updated:
  php-cli.x86_64 0:5.5.10-1.el6.remi.1  php-common.x86_64 0:5.5.10-1.el6.remi.1  php-pdo.x86_64 0:5.5.10-1.el6.remi.1

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

Complete!
#

インストール後のバージョン

# php -v
PHP 5.5.10 (cli) (built: Mar 11 2014 17:37:46)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
#