"CentOS6 PHP 5.3 → 5.5 업그레이드"의 두 판 사이의 차이

잔글 (로봇: 자동으로 텍스트 교체 (-<source lang='dos'> +<source lang='cli'>))
6번째 줄: 6번째 줄:


==확인==
==확인==
<source lang='dos'>
<source lang='cli'>
[root@jmnote ~]# rpm -qa | grep php
[root@jmnote ~]# rpm -qa | grep php
[root@jmnote ~]# rpm -qa | grep remi-release
[root@jmnote ~]# rpm -qa | grep remi-release
14번째 줄: 14번째 줄:


==PHP 설치==
==PHP 설치==
<source lang='dos'>
<source lang='cli'>
[root@jmnote ~]# yum --enablerepo=remi-php55 install php
[root@jmnote ~]# yum --enablerepo=remi-php55 install php
... (생략)
... (생략)
39번째 줄: 39번째 줄:
Is this ok [y/N]: y
Is this ok [y/N]: y
</source>
</source>
<source lang='dos'>
<source lang='cli'>
... (생략)
... (생략)
Installed:
Installed:
54번째 줄: 54번째 줄:


==확인 2==
==확인 2==
<source lang='dos'>
<source lang='cli'>
[root@jmnote ~]# rpm -qa | grep php
[root@jmnote ~]# rpm -qa | grep php
php-common-5.5.6-1.el6.remi.x86_64
php-common-5.5.6-1.el6.remi.x86_64
65번째 줄: 65번째 줄:
php-pecl-zip-1.12.2-2.el6.remi.5.5.x86_64
php-pecl-zip-1.12.2-2.el6.remi.5.5.x86_64
</source>
</source>
<source lang='dos'>
<source lang='cli'>
[root@jmnote ~]# php -v
[root@jmnote ~]# php -v
PHP 5.5.6 (cli) (built: Nov 13 2013 07:48:35)  
PHP 5.5.6 (cli) (built: Nov 13 2013 07:48:35)  

2015년 2월 6일 (금) 02:10 판

CentOS 6에 PHP 5.5 설치 (yum)

1 사전 작업

2 확인

[root@jmnote ~]# rpm -qa | grep php
[root@jmnote ~]# rpm -qa | grep remi-release
remi-release-6.4-1.el6.remi.noarch
→php 는 설치 안됨. remi-release는 설치됨

3 PHP 설치

[root@jmnote ~]# yum --enablerepo=remi-php55 install php
... (생략)
====================================================================================================
 Package                 Arch            Version                          Repository           Size
====================================================================================================
Installing:
 php                     x86_64          5.5.6-1.el6.remi                 remi-php55          2.5 M
Installing for dependencies:
 php-cli                 x86_64          5.5.6-1.el6.remi                 remi-php55          2.4 M
 php-common              x86_64          5.5.6-1.el6.remi                 remi-php55          1.0 M
 php-pear                noarch          1:1.9.4-20.el6.remi              remi-php55          371 k
 php-pecl-jsonc          x86_64          1.3.2-2.el6.remi.1               remi-php55           45 k
 php-pecl-zip            x86_64          1.12.2-2.el6.remi.5.5            remi-php55          265 k
 php-process             x86_64          5.5.6-1.el6.remi                 remi-php55           51 k
 php-xml                 x86_64          5.5.6-1.el6.remi                 remi-php55          202 k

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

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

Dependency Installed:
  php-cli.x86_64 0:5.5.6-1.el6.remi                 php-common.x86_64 0:5.5.6-1.el6.remi            
  php-pear.noarch 1:1.9.4-20.el6.remi               php-pecl-jsonc.x86_64 0:1.3.2-2.el6.remi.1      
  php-pecl-zip.x86_64 0:1.12.2-2.el6.remi.5.5       php-process.x86_64 0:5.5.6-1.el6.remi           
  php-xml.x86_64 0:5.5.6-1.el6.remi                

Complete!

4 확인 2

[root@jmnote ~]# 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@jmnote ~]# 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 참고 자료