CentOS 6에 PHP 5.6 설치 (yum remi)

CentOS 6에 PHP 5.6 설치 (yum)

1 사전 작업[ | ]

2 확인[ | ]

[root@zetawiki ~]# php -v
-bash: php: command not found
[root@zetawiki ~]# rpm -qa | grep php
[root@zetawiki ~]# rpm -qa | grep remi-release
remi-release-6.8-1.el6.remi.noarch
→php 는 설치 안됨. remi-release는 설치됨

3 PHP 설치[ | ]

[root@zetawiki ~]# yum --enablerepo=remi-php56 install php
... (생략)
===========================================================================================
 Package              Arch         Version                          Repository        Size
===========================================================================================
Installing:
 php                  x86_64       5.6.26-1.el6.remi                remi-php56       2.7 M
Installing for dependencies:
 libedit              x86_64       2.11-4.20080712cvs.1.el6         base              74 k
 libzip-last          x86_64       1.1.3-1.el6.remi                 remi-safe         42 k
 php-cli              x86_64       5.6.26-1.el6.remi                remi-php56       4.0 M
 php-common           x86_64       5.6.26-1.el6.remi                remi-php56       1.1 M
 php-pecl-jsonc       x86_64       1.3.10-1.el6.remi.5.6            remi-php56        51 k
 php-pecl-zip         x86_64       1.13.4-1.el6.remi.5.6            remi-php56        53 k

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

Total download size: 8.0 M
Installed size: 29 M
Is this ok [y/N]: y
... (생략)
Installed:
  php.x86_64 0:5.6.26-1.el6.remi                                                           

Dependency Installed:
  libedit.x86_64 0:2.11-4.20080712cvs.1.el6                                                
  libzip-last.x86_64 0:1.1.3-1.el6.remi                                                    
  php-cli.x86_64 0:5.6.26-1.el6.remi                                                       
  php-common.x86_64 0:5.6.26-1.el6.remi                                                    
  php-pecl-jsonc.x86_64 0:1.3.10-1.el6.remi.5.6                                            
  php-pecl-zip.x86_64 0:1.13.4-1.el6.remi.5.6                                              

Complete!

4 확인 2[ | ]

[root@zetawiki ~]# rpm -qa | grep php
php-common-5.6.26-1.el6.remi.x86_64
php-cli-5.6.26-1.el6.remi.x86_64
php-pecl-jsonc-1.3.10-1.el6.remi.5.6.x86_64
php-pecl-zip-1.13.4-1.el6.remi.5.6.x86_64
php-5.6.26-1.el6.remi.x86_64
[root@zetawiki ~]# php -v
PHP 5.6.26 (cli) (built: Sep 15 2016 14:57:05) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

5 같이 보기[ | ]

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