CentOS6 PHP 5.3 → 5.5 업그레이드

Jmnote (토론 | 기여)님의 2015년 12월 10일 (목) 14:41 판 (→‎PHP 설치)
CentOS 6에 PHP 5.5 설치 (yum)

1 확인

[root@zetawiki ~]# php -v
PHP 5.3.3 (cli) (built: Jul  9 2015 17:39:00) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
→ php 5.3 설치됨

2 webtatic-release 설치

[root@zetaweb ~]# rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
Retrieving https://mirror.webtatic.com/yum/el6/latest.rpm
Preparing...                ########################################### [100%]
   1:webtatic-release       ########################################### [100%]
[root@zetaweb ~]# yum repolist
... (생략)
repo id                       repo name                                                         status
base                          CentOS-6 - Base                                                    6,575
epel                          Extra Packages for Enterprise Linux 6 - x86_64                    11,812
extras                        CentOS-6 - Extras                                                     46
rpmforge                      RHEL 6 - RPMforge.net - dag                                        4,718
updates                       CentOS-6 - Updates                                                   707
varnish-4.0                   Varnish 4.0 for Enterprise Linux                                      34
webtatic                      Webtatic Repository EL6 - x86_64                                     285
repolist: 24,177

3 yum-plugin-replace 설치

[root@zetaweb ~]# yum install yum-plugin-replace
... (생략)
======================================================================================================
 Package                       Arch              Version                    Repository           Size
======================================================================================================
Updating:
 yum-plugin-replace            noarch            0.2.7-1.ius.el6            webtatic             17 k

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

Total download size: 17 k
Is this ok [y/N]: y
... (생략)
Warning: RPMDB altered outside of yum.
  Updating   : yum-plugin-replace-0.2.7-1.ius.el6.noarch                                          1/2 
  Cleanup    : yum-plugin-replace-0.2.6-1.ius.el6.noarch                                          2/2 
  Verifying  : yum-plugin-replace-0.2.7-1.ius.el6.noarch                                          1/2 
  Verifying  : yum-plugin-replace-0.2.6-1.ius.el6.noarch                                          2/2 

Updated:
  yum-plugin-replace.noarch 0:0.2.7-1.ius.el6                                                         

Complete!

4 확인 2

[root@zetawiki ~]# rpm -qa | grep php
php-common-5.5.6-1.el6.remi.x86_64
php-cli-5.5.6-1.el6.remi.x86_64
php-process-5.5.6-1.el6.remi.x86_64
php-pecl-jsonc-1.3.2-2.el6.remi.1.x86_64
php-pear-1.9.4-20.el6.remi.noarch
php-5.5.6-1.el6.remi.x86_64
php-xml-5.5.6-1.el6.remi.x86_64
php-pecl-zip-1.12.2-2.el6.remi.5.5.x86_64
[root@zetawiki ~]# php -v
PHP 5.5.6 (cli) (built: Nov 13 2013 07:48:35) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies

5 같이 보기

6 참고 자료