"CentOS 6에 PHP 5.3 설치 (yum)"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(사용자 2명의 중간 판 22개는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{작성중}}
{{다른뜻|CentOS 5에 PHP 5.3 설치 (yum)}}
;PHP 5.3 버전으로 업그레이드
{{테스트|CentOS 6.3}}
;CentOS에 PHP 5.3 설치 (yum)


==yum 확인==
==확인==
<source lang='dos'>
<syntaxhighlight lang='console'>
[root@jmnote ~]# yum info php
[root@zetawiki ~]# rpm -qa | grep php
Loaded plugins: fastestmirror
[root@zetawiki ~]# yum list php
Loading mirror speeds from cached hostfile
... (생략)
Installed Packages
Available Packages
Name      : php
php.x86_64                                  5.3.3-46.el6_6                                  updates
Arch       : x86_64
</syntaxhighlight>
Version    : 5.2.10
:→ CentOS 6 이라면 기본 Yum 저장소만으로도 5.3을 설치할 수 있다.
Release    : 1.el5.centos
 
Size      : 3.3 M
==설치==
Repo      : installed
<syntaxhighlight lang='console'>
Summary   : PHP HTML-내장된 스크립트 언어. (PHP: Hypertext Preprocessor)
[root@zetawiki ~]# yum install php
URL        : http://www.php.net/
... (생략)
License    : PHP
======================================================================================================
Description: PHP is an HTML-embedded scripting language. PHP attempts to make it
Package                  Arch             Version                          Repository          Size
          : easy for developers to write dynamically generated webpages. PHP
======================================================================================================
          : also offers built-in database integration for several commercial
Installing:
          : and non-commercial database management systems, so writing a
php                      x86_64           5.3.3-46.el6_6                  updates            1.1 M
          : database-enabled webpage with PHP is fairly simple. The most common
Installing for dependencies:
          : use of PHP coding is probably as a replacement for CGI scripts.
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
          : The php package contains the module which adds support for the PHP
apr-util-ldap            x86_64            1.3.9-3.el6_0.1                  base                15 k
          : language to Apache HTTP Server.
httpd                    x86_64            2.2.15-47.el6.centos            updates            830 k
</source>
httpd-tools              x86_64            2.2.15-47.el6.centos            updates            77 k
:5.2.10 버전이 설치된 것으로 확인되고 더 상위 버전은 보이지 않는다.<ref>현재는 5.2.10가 최신으로 보이지만 언젠가는 5.3 버전 이상으로 높아지게 될 것이다.</ref>
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
</syntaxhighlight>
<syntaxhighlight lang='console'>
... (생략)
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           


==yum 확인 2==
Complete!
<source lang='dos'>
</syntaxhighlight>
[root@jmnote ~]# yum info php53
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Available Packages
Name      : php53
Arch      : x86_64
Version    : 5.3.3
Release    : 5.el5
Size      : 1.3 M
Repo      : Daum
Summary    : PHP scripting language for creating dynamic web sites
URL        : http://www.php.net/
License    : PHP and LGPLv2 and LGPLv2+
Description: PHP is an HTML-embedded scripting language. PHP attempts to make it
          : easy for developers to write dynamically generated webpages. PHP
          : also offers built-in database integration for several commercial
          : and non-commercial database management systems, so writing a
          : database-enabled webpage with PHP is fairly simple. The most common
          : use of PHP coding is probably as a replacement for CGI scripts.
          :
          : The php package contains the module which adds support for the PHP
          : language to Apache HTTP Server.
</source>
:→ 패키지 이름을 그냥 php 대신 php53으로 하면 5.3 대 버전을 확인할 수 있다.
:→ php과 php53으로 분리되어 있는 이유는 확장모듈이 아직 완비되지 않았기 때문인 것 같다.


==기설치 확장모듈 확인==
==확인 2==
<source lang='dos'>
<syntaxhighlight lang='console'>
[root@jmnote ~]# yum list installed | grep php | grep -v zend | cut -d' ' -f1
[root@zetawiki ~]# rpm -qa | grep php
php.x86_64
php-common-5.3.3-46.el6_6.x86_64
php-bcmath.x86_64
php-5.3.3-46.el6_6.x86_64
php-cli.x86_64
php-cli-5.3.3-46.el6_6.x86_64
php-common.x86_64
</syntaxhighlight>
php-devel.x86_64
<syntaxhighlight lang='console'>
php-gd.x86_64
[root@zetawiki ~]# php -v
php-imap.x86_64
PHP 5.3.3 (cli) (built: Jul  9 2015 17:39:00)
php-mbstring.x86_64
Copyright (c) 1997-2010 The PHP Group
php-mcrypt.x86_64
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
php-mhash.x86_64
</syntaxhighlight>
php-mysql.x86_64
php-pdo.x86_64
php-pgsql.x86_64
php-soap.x86_64
php-tidy.x86_64
php-xml.x86_64
php-xmlrpc.x86_64
</source>


==같이 보기==
==같이 보기==
*[[Call to undefined function openssl encrypt()]]
*[[Call to undefined function openssl encrypt()]]
*[[다음 repo 지정]]
*[[Daum repo 지정]]
 
*[[CentOS 6에 PHP 5.5 설치]]
==주석==
*[[CentOS 6에 PHP 5.4 설치]]
<references/>
*[[CentOS 5에 PHP 5.3 설치]]
 
*[[pecl 설치]]
==참고 자료==
*http://chrisjean.com/2011/06/24/upgrade-php-5-1-or-5-2-to-5-3-on-centos/


[[분류: PHP]]
[[분류: PHP]]

2020년 11월 2일 (월) 00:55 기준 최신판

  다른 뜻에 대해서는 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 }}