CentOS 6에 PHP 5.6 설치 (yum webtatic)

CentOS에 PHP 5.6 설치 (yum)

1 확인

[root@jmnote ~]# php -v | head -1
PHP 5.3.3 (cli) (built: Dec 11 2013 03:29:57)
[root@jmnote ~]# rpm -qa | grep ^php
php-common-5.3.3-27.el6_5.x86_64
php-mysql-5.3.3-27.el6_5.x86_64
php-cli-5.3.3-27.el6_5.x86_64
php-devel-5.3.3-27.el6_5.x86_64
php-5.3.3-27.el6_5.x86_64
php-xml-5.3.3-27.el6_5.x86_64
php-pear-1.9.4-4.el6.noarch
php-pdo-5.3.3-27.el6_5.x86_64
php-gd-5.3.3-27.el6_5.x86_64
php-intl-5.3.3-27.el6_5.x86_64

2 webtatic 저장소 추가

3 설치 시도 (오류)

[root@jmnote ~]# yum install --enablerepo=webtatic-testing php56w php56w-opcache
... (생략)
Error: php56w-common conflicts with php-common-5.3.3-27.el6_5.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

4 yum-plugin-replace 설치

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

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

Total download size: 17 k
Installed size: 34 k
Is this ok [y/N]: y
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-andy
Importing GPG key 0xCF4C4FF9:
 Userid : Andy Thompson <andy@webtatic.com>
 Package: webtatic-release-6-4.noarch (installed)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-andy
Is this ok [y/N]: y
... (생략)
Installed:
  yum-plugin-replace.noarch 0:0.2.6-1.ius.el6                           

Complete!

5 php-common 교체

[root@jmnote ~]# yum replace --enablerepo=webtatic-testing php-common --replace-with=php56w-common
... (생략)
WARNING: Unable to resolve all providers: ['config(php-common)', 'curl.so()(64bit)', 'fileinfo.so()(64bit)', 'json.so()(64bit)', 'phar.so()(64bit)', 'zip.so()(64bit)', 'config(php)', 'libphp5.so()(64bit)', 'config(php-pdo)', 'pdo.so()(64bit)', 'pdo_sqlite.so()(64bit)', 'sqlite3.so()(64bit)', 'config(php-gd)', 'gd.so()(64bit)', 'config(php-mysql)', 'mysql.so()(64bit)', 'mysqli.so()(64bit)', 'pdo_mysql.so()(64bit)', 'config(php-devel)', 'config(php-xml)', 'dom.so()(64bit)', 'wddx.so()(64bit)', 'xmlreader.so()(64bit)', 'xmlwriter.so()(64bit)', 'xsl.so()(64bit)', 'config(php-intl)', 'intl.so()(64bit)']

This may be normal depending on the package.  Continue? [y/N] y
... (생략)
========================================================================
 Package         Arch    Version                Repository         Size
========================================================================
Installing:
 php56w          x86_64  5.6.0-0.7.beta4.w6     webtatic-testing  2.5 M
 php56w-cli      x86_64  5.6.0-0.7.beta4.w6     webtatic-testing  2.4 M
 php56w-common   x86_64  5.6.0-0.7.beta4.w6     webtatic-testing  1.1 M
 php56w-devel    x86_64  5.6.0-0.7.beta4.w6     webtatic-testing  2.5 M
 php56w-gd       x86_64  5.6.0-0.7.beta4.w6     webtatic-testing  140 k
 php56w-intl     x86_64  5.6.0-0.7.beta4.w6     webtatic-testing  175 k
 php56w-mysql    x86_64  5.6.0-0.7.beta4.w6     webtatic-testing  107 k
 php56w-pdo      x86_64  5.6.0-0.7.beta4.w6     webtatic-testing   92 k
 php56w-pear     noarch  1:1.9.4-1.w6           webtatic-testing  363 k
 php56w-xml      x86_64  5.6.0-0.7.beta4.w6     webtatic-testing  143 k
Removing:
 php             x86_64  5.3.3-27.el6_5         @updates          3.5 M
 php-cli         x86_64  5.3.3-27.el6_5         @updates          6.2 M
 php-common      x86_64  5.3.3-27.el6_5         @updates          2.9 M
 php-devel       x86_64  5.3.3-27.el6_5         @updates          3.0 M
 php-gd          x86_64  5.3.3-27.el6_5         @updates          324 k
 php-intl        x86_64  5.3.3-27.el6_5         @updates          166 k
 php-mysql       x86_64  5.3.3-27.el6_5         @updates          216 k
 php-pdo         x86_64  5.3.3-27.el6_5         @updates          168 k
 php-pear        noarch  1:1.9.4-4.el6          @base             2.2 M
 php-xml         x86_64  5.3.3-27.el6_5         @updates          307 k
Installing for dependencies:
 php56w-process  x86_64  5.6.0-0.7.beta4.w6     webtatic-testing   32 k
 t1lib           x86_64  5.1.2-6.el6_2.1        base              160 k

Transaction Summary
========================================================================
Install      12 Package(s)
Remove       10 Package(s)

Total download size: 9.7 M
Is this ok [y/N]: y
... (생략)
Installed:
  php56w.x86_64 0:5.6.0-0.7.beta4.w6                                    
  php56w-cli.x86_64 0:5.6.0-0.7.beta4.w6                                
  php56w-common.x86_64 0:5.6.0-0.7.beta4.w6                             
  php56w-devel.x86_64 0:5.6.0-0.7.beta4.w6                              
  php56w-gd.x86_64 0:5.6.0-0.7.beta4.w6                                 
  php56w-intl.x86_64 0:5.6.0-0.7.beta4.w6                               
  php56w-mysql.x86_64 0:5.6.0-0.7.beta4.w6                              
  php56w-pdo.x86_64 0:5.6.0-0.7.beta4.w6                                
  php56w-pear.noarch 1:1.9.4-1.w6                                       
  php56w-xml.x86_64 0:5.6.0-0.7.beta4.w6                                

Dependency Installed:
  php56w-process.x86_64 0:5.6.0-0.7.beta4.w6                            
  t1lib.x86_64 0:5.1.2-6.el6_2.1                                        

Complete!

6 같이 보기

7 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}