CentOS 6에 PHP 5.3 설치 (yum)

  다른 뜻에 대해서는 CentOS 5에 PHP 5.3 설치 (yum) 문서를 참조하십시오.
CentOS에 PHP 5.3 설치 (yum)

1 확인[ | ]

[root@zetawiki ~]# rpm -qa | grep php
[root@zetawiki ~]# yum list php
... (생략)
Available Packages
php.x86_64                                  5.3.3-46.el6_6                                   updates
→ CentOS 6 이라면 기본 Yum 저장소만으로도 5.3을 설치할 수 있다.

2 설치[ | ]

[root@zetawiki ~]# yum install php
... (생략)
======================================================================================================
 Package                  Arch              Version                          Repository          Size
======================================================================================================
Installing:
 php                      x86_64            5.3.3-46.el6_6                   updates            1.1 M
Installing for dependencies:
 apr                      x86_64            1.3.9-5.el6_2                    base               123 k
 apr-util                 x86_64            1.3.9-3.el6_0.1                  base                87 k
 apr-util-ldap            x86_64            1.3.9-3.el6_0.1                  base                15 k
 httpd                    x86_64            2.2.15-47.el6.centos             updates            830 k
 httpd-tools              x86_64            2.2.15-47.el6.centos             updates             77 k
 mailcap                  noarch            2.1.31-2.el6                     base                27 k
 php-cli                  x86_64            5.3.3-46.el6_6                   updates            2.2 M
 php-common               x86_64            5.3.3-46.el6_6                   updates            529 k

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

Total download size: 5.0 M
Installed size: 16 M
Is this ok [y/N]: y
... (생략)
Installed:
  php.x86_64 0:5.3.3-46.el6_6                                                                         

Dependency Installed:
  apr.x86_64 0:1.3.9-5.el6_2                           apr-util.x86_64 0:1.3.9-3.el6_0.1             
  apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1               httpd.x86_64 0:2.2.15-47.el6.centos           
  httpd-tools.x86_64 0:2.2.15-47.el6.centos            mailcap.noarch 0:2.1.31-2.el6                 
  php-cli.x86_64 0:5.3.3-46.el6_6                      php-common.x86_64 0:5.3.3-46.el6_6            

Complete!

3 확인 2[ | ]

[root@zetawiki ~]# rpm -qa | grep php
php-common-5.3.3-46.el6_6.x86_64
php-5.3.3-46.el6_6.x86_64
php-cli-5.3.3-46.el6_6.x86_64
[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

4 같이 보기[ | ]

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