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

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(사용자 2명의 중간 판 18개는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{다른뜻|CentOS 6에 PHP 5.5 설치}}
==개요==
;CentOS 6에서 PHP 5.3 → 5.5 업그레이드
;CentOS 6에서 PHP 5.3 → 5.5 업그레이드
*사용하는 동적 라이브러리에 따라 로딩시 문제가 있을 수 있음
:'PHP Warning 발생' 문단 참고


==확인==
==확인==
<source lang='cli'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# php -v
[root@zetawiki ~]# php -v
PHP 5.3.3 (cli) (built: Jul  9 2015 17:39:00)  
PHP 5.3.3 (cli) (built: Jul  9 2015 17:39:00)  
Copyright (c) 1997-2010 The PHP Group
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
</source>
</syntaxhighlight>
:→ php 5.3 설치됨
:→ PHP 5.3이 설치되어 있음


==webtatic-release 설치==
==webtatic-release 설치==
<source lang='cli'>
<syntaxhighlight lang='console'>
[root@zetaweb ~]# rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
[root@zetaweb ~]# rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
Retrieving https://mirror.webtatic.com/yum/el6/latest.rpm
Retrieving https://mirror.webtatic.com/yum/el6/latest.rpm
Preparing...                ########################################### [100%]
Preparing...                ########################################### [100%]
   1:webtatic-release      ########################################### [100%]
   1:webtatic-release      ########################################### [100%]
</source>
</syntaxhighlight>
<source lang='cli'>
<syntaxhighlight lang='console'>
[root@zetaweb ~]# yum repolist
[root@zetaweb ~]# yum repolist
... (생략)
... (생략)
29번째 줄: 33번째 줄:
webtatic                      Webtatic Repository EL6 - x86_64                                    285
webtatic                      Webtatic Repository EL6 - x86_64                                    285
repolist: 24,177
repolist: 24,177
</source>
</syntaxhighlight>


==yum-plugin-replace 설치==
==yum-plugin-replace 설치==
<source lang='cli'>
<syntaxhighlight lang='console'>
[root@zetaweb ~]# yum install yum-plugin-replace
[root@zetaweb ~]# yum install yum-plugin-replace
... (생략)
... (생략)
47번째 줄: 51번째 줄:
Total download size: 17 k
Total download size: 17 k
Is this ok [y/N]: y
Is this ok [y/N]: y
</source>
</syntaxhighlight>
<source lang='cli'>
<syntaxhighlight lang='console'>
... (생략)
... (생략)
Warning: RPMDB altered outside of yum.
Warning: RPMDB altered outside of yum.
60번째 줄: 64번째 줄:


Complete!
Complete!
</source>
</syntaxhighlight>


==php-common 교체==
==php-common 교체==
<source lang='cli'>
<syntaxhighlight lang='console'>
[root@zetaweb ~]# yum replace php-common --replace-with=php55w-common
[root@zetaweb ~]# yum replace php-common --replace-with=php55w-common
... (생략)
... (생략)
69번째 줄: 73번째 줄:


This may be normal depending on the package.  Continue? [y/N] y
This may be normal depending on the package.  Continue? [y/N] y
</source>
</syntaxhighlight>
<source lang='cli'>
<syntaxhighlight lang='console'>
... (생략)
... (생략)
======================================================================================================
======================================================================================================
122번째 줄: 126번째 줄:
Total download size: 11 M
Total download size: 11 M
Is this ok [y/N]: y
Is this ok [y/N]: y
</source>
</syntaxhighlight>
<source lang='cli'>
<syntaxhighlight lang='console'>
Removed:
Removed:
   php.x86_64 0:5.3.3-46.el6_6                      php-bcmath.x86_64 0:5.3.3-46.el6_6                 
   php.x86_64 0:5.3.3-46.el6_6                      php-bcmath.x86_64 0:5.3.3-46.el6_6                 
150번째 줄: 154번째 줄:


Complete!
Complete!
</source>
</syntaxhighlight>
 
==(참고) PHP Warning 발생==
*사용하는 동적 라이브러리에 따라 로딩시 문제가 있을 수 있음
<syntaxhighlight lang='console'>
[root@zetaweb ~]# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/apc.so' - /usr/lib64/php/modules/apc.so: undefined symbol: zend_unmangle_property_name in Unknown on line 0
PHP Warning:  PHP Startup: gearman: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: uri_template: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP 5.5.30 (cli) (built: Oct 16 2015 09:21:15)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
</syntaxhighlight>
<syntaxhighlight lang='console'>
[root@zetaweb ~]# pecl uninstall apc
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/apc.so' - /usr/lib64/php/modules/apc.so: undefined symbol: zend_unmangle_property_name in Unknown on line 0
PHP Warning:  PHP Startup: gearman: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: uri_template: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20121212
These options need to match
in Unknown on line 0
Unable to remove "extension=apc.so" from php.ini
uninstall ok: channel://pecl.php.net/APC-3.1.13
</syntaxhighlight>
<syntaxhighlight lang='console'>
[root@zetaweb ~]# mv /etc/php.d/gearman.ini /etc/php.d/gearman.ini.unused
[root@zetaweb ~]# mv /etc/php.d/uri_template.ini /etc/php.d/uri_template.ini.unused
</syntaxhighlight>


==확인 2==
==확인 2==
<source lang='cli'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# rpm -qa | grep php
[root@zetaweb ~]# php -v
php-common-5.5.6-1.el6.remi.x86_64
PHP 5.5.30 (cli) (built: Oct 16 2015 09:21:15)  
php-cli-5.5.6-1.el6.remi.x86_64
Copyright (c) 1997-2015 The PHP Group
php-process-5.5.6-1.el6.remi.x86_64
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
php-pecl-jsonc-1.3.2-2.el6.remi.1.x86_64
</syntaxhighlight>
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
</source>
<source lang='cli'>
[root@zetawiki ~]# 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
</source>


==같이 보기==
==같이 보기==
*[[CentOS 6에 PHP 5.4 설치]]
*[[CentOS 6에 PHP 5.5 설치]]
*[[CentOS 6에 PHP 5.3 설치]]
*[[리눅스 PHP 설치]]
*[[리눅스 PHP 설치]]


==참고 자료==
==참고==
*https://webtatic.com/packages/php55/
*https://webtatic.com/packages/php55/
*http://www.tecmint.com/install-apache-mysql-php-on-redhat-centos-fedora/
*http://www.tecmint.com/install-apache-mysql-php-on-redhat-centos-fedora/


[[분류: PHP]]
[[분류: PHP]]
[[분류: PHP 5]]
[[분류: CentOS 6]]
[[분류: CentOS 6]]
[[분류: Yum 설치]]
[[분류: Yum 설치]]

2020년 11월 2일 (월) 02:34 기준 최신판

  다른 뜻에 대해서는 CentOS 6에 PHP 5.5 설치 문서를 참조하십시오.

1 개요[ | ]

CentOS 6에서 PHP 5.3 → 5.5 업그레이드
  • 사용하는 동적 라이브러리에 따라 로딩시 문제가 있을 수 있음
'PHP Warning 발생' 문단 참고

2 확인[ | ]

[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
→ PHP 5.3이 설치되어 있음

3 webtatic-release 설치[ | ]

[root@zetaweb ~]# rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
Retrieving https://mirror.webtatic.com/yum/el6/latest.rpm
Preparing...                ########################################### [100%]
   1:webtatic-release       ########################################### [100%]
[root@zetaweb ~]# yum repolist
... (생략)
repo id                       repo name                                                         status
base                          CentOS-6 - Base                                                    6,575
epel                          Extra Packages for Enterprise Linux 6 - x86_64                    11,812
extras                        CentOS-6 - Extras                                                     46
rpmforge                      RHEL 6 - RPMforge.net - dag                                        4,718
updates                       CentOS-6 - Updates                                                   707
varnish-4.0                   Varnish 4.0 for Enterprise Linux                                      34
webtatic                      Webtatic Repository EL6 - x86_64                                     285
repolist: 24,177

4 yum-plugin-replace 설치[ | ]

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

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

Total download size: 17 k
Is this ok [y/N]: y
... (생략)
Warning: RPMDB altered outside of yum.
  Updating   : yum-plugin-replace-0.2.7-1.ius.el6.noarch                                          1/2 
  Cleanup    : yum-plugin-replace-0.2.6-1.ius.el6.noarch                                          2/2 
  Verifying  : yum-plugin-replace-0.2.7-1.ius.el6.noarch                                          1/2 
  Verifying  : yum-plugin-replace-0.2.6-1.ius.el6.noarch                                          2/2 

Updated:
  yum-plugin-replace.noarch 0:0.2.7-1.ius.el6                                                         

Complete!

5 php-common 교체[ | ]

[root@zetaweb ~]# yum replace php-common --replace-with=php55w-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-xmlrpc)', 'xmlrpc.so()(64bit)', 'config(php-mysql)', 'mysql.so()(64bit)', 'mysqli.so()(64bit)', 'pdo_mysql.so()(64bit)', 'config(php-devel)', 'libphp5.so()(64bit)', 'config(php-intl)', 'intl.so()(64bit)', 'config(php-mbstring)', 'mbstring.so()(64bit)', 'config(php-xml)', 'dom.so()(64bit)', 'wddx.so()(64bit)', 'xmlreader.so()(64bit)', 'xmlwriter.so()(64bit)', 'xsl.so()(64bit)', 'config(php-gd)', 'gd.so()(64bit)', 'config(php-process)', 'posix.so()(64bit)', 'sysvmsg.so()(64bit)', 'sysvsem.so()(64bit)', 'sysvshm.so()(64bit)', 'config(php-soap)', 'soap.so()(64bit)', 'bcmath.so()(64bit)', 'config(php-bcmath)', 'config(php-tidy)', 'tidy.so()(64bit)']

This may be normal depending on the package.  Continue? [y/N] y
... (생략)
======================================================================================================
 Package                     Arch               Version                    Repository            Size
======================================================================================================
Installing:
 php55w                      x86_64             5.5.30-2.w6                webtatic             2.7 M
 php55w-bcmath               x86_64             5.5.30-2.w6                webtatic              34 k
 php55w-cli                  x86_64             5.5.30-2.w6                webtatic             2.6 M
 php55w-common               x86_64             5.5.30-2.w6                webtatic             1.2 M
 php55w-devel                x86_64             5.5.30-2.w6                webtatic             2.6 M
 php55w-gd                   x86_64             5.5.30-2.w6                webtatic             144 k
 php55w-intl                 x86_64             5.5.30-2.w6                webtatic             176 k
 php55w-mbstring             x86_64             5.5.30-2.w6                webtatic             943 k
 php55w-mcrypt               x86_64             5.5.30-2.w6                webtatic              25 k
 php55w-mysql                x86_64             5.5.30-2.w6                webtatic             110 k
 php55w-pdo                  x86_64             5.5.30-2.w6                webtatic              94 k
 php55w-pear                 noarch             1:1.10.1-1.w6              webtatic             350 k
 php55w-process              x86_64             5.5.30-2.w6                webtatic              35 k
 php55w-soap                 x86_64             5.5.30-2.w6                webtatic             196 k
 php55w-tidy                 x86_64             5.5.30-2.w6                webtatic              29 k
 php55w-xml                  x86_64             5.5.30-2.w6                webtatic             145 k
 php55w-xmlrpc               x86_64             5.5.30-2.w6                webtatic              44 k
Removing:
 php                         x86_64             5.3.3-46.el6_6             @updates             3.5 M
 php-bcmath                  x86_64             5.3.3-46.el6_6             @updates              29 k
 php-cli                     x86_64             5.3.3-46.el6_6             @updates             6.2 M
 php-common                  x86_64             5.3.3-46.el6_6             @updates             2.9 M
 php-devel                   x86_64             5.3.3-46.el6_6             @updates             3.0 M
 php-gd                      x86_64             5.3.3-46.el6_6             @updates             324 k
 php-intl                    x86_64             5.3.3-46.el6_6             @updates             166 k
 php-mbstring                x86_64             5.3.3-46.el6_6             @updates             2.1 M
 php-mcrypt                  x86_64             5.3.3-3.el6                @epel                 46 k
 php-mysql                   x86_64             5.3.3-46.el6_6             @updates             216 k
 php-pdo                     x86_64             5.3.3-46.el6_6             @updates             168 k
 php-pear                    noarch             1:1.9.4-4.el6              @base                2.2 M
 php-process                 x86_64             5.3.3-46.el6_6             @updates              65 k
 php-soap                    x86_64             5.3.3-46.el6_6             @updates             325 k
 php-tidy                    x86_64             5.3.3-46.el6_6             @updates              48 k
 php-xml                     x86_64             5.3.3-46.el6_6             @updates             307 k
 php-xmlrpc                  x86_64             5.3.3-46.el6_6             @updates              77 k
 php-zts                     x86_64             5.3.3-46.el6_6             @updates             3.7 M
Removing for dependencies:
 php-pecl-http1              x86_64             1.7.6-4.el6                @epel                440 k

Transaction Summary
======================================================================================================
Install      17 Package(s)
Remove       19 Package(s)

Total download size: 11 M
Is this ok [y/N]: y
Removed:
  php.x86_64 0:5.3.3-46.el6_6                       php-bcmath.x86_64 0:5.3.3-46.el6_6                
  php-cli.x86_64 0:5.3.3-46.el6_6                   php-common.x86_64 0:5.3.3-46.el6_6                
  php-devel.x86_64 0:5.3.3-46.el6_6                 php-gd.x86_64 0:5.3.3-46.el6_6                    
  php-intl.x86_64 0:5.3.3-46.el6_6                  php-mbstring.x86_64 0:5.3.3-46.el6_6              
  php-mcrypt.x86_64 0:5.3.3-3.el6                   php-mysql.x86_64 0:5.3.3-46.el6_6                 
  php-pdo.x86_64 0:5.3.3-46.el6_6                   php-pear.noarch 1:1.9.4-4.el6                     
  php-process.x86_64 0:5.3.3-46.el6_6               php-soap.x86_64 0:5.3.3-46.el6_6                  
  php-tidy.x86_64 0:5.3.3-46.el6_6                  php-xml.x86_64 0:5.3.3-46.el6_6                   
  php-xmlrpc.x86_64 0:5.3.3-46.el6_6                php-zts.x86_64 0:5.3.3-46.el6_6                   

Dependency Removed:
  php-pecl-http1.x86_64 0:1.7.6-4.el6                                                                 

Installed:
  php55w.x86_64 0:5.5.30-2.w6                       php55w-bcmath.x86_64 0:5.5.30-2.w6                
  php55w-cli.x86_64 0:5.5.30-2.w6                   php55w-common.x86_64 0:5.5.30-2.w6                
  php55w-devel.x86_64 0:5.5.30-2.w6                 php55w-gd.x86_64 0:5.5.30-2.w6                    
  php55w-intl.x86_64 0:5.5.30-2.w6                  php55w-mbstring.x86_64 0:5.5.30-2.w6              
  php55w-mcrypt.x86_64 0:5.5.30-2.w6                php55w-mysql.x86_64 0:5.5.30-2.w6                 
  php55w-pdo.x86_64 0:5.5.30-2.w6                   php55w-pear.noarch 1:1.10.1-1.w6                  
  php55w-process.x86_64 0:5.5.30-2.w6               php55w-soap.x86_64 0:5.5.30-2.w6                  
  php55w-tidy.x86_64 0:5.5.30-2.w6                  php55w-xml.x86_64 0:5.5.30-2.w6                   
  php55w-xmlrpc.x86_64 0:5.5.30-2.w6               

Complete!

6 (참고) PHP Warning 발생[ | ]

  • 사용하는 동적 라이브러리에 따라 로딩시 문제가 있을 수 있음
[root@zetaweb ~]# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/apc.so' - /usr/lib64/php/modules/apc.so: undefined symbol: zend_unmangle_property_name in Unknown on line 0
PHP Warning:  PHP Startup: gearman: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20121212
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: uri_template: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20121212
These options need to match
 in Unknown on line 0
PHP 5.5.30 (cli) (built: Oct 16 2015 09:21:15) 
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
[root@zetaweb ~]# pecl uninstall apc
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/apc.so' - /usr/lib64/php/modules/apc.so: undefined symbol: zend_unmangle_property_name in Unknown on line 0
PHP Warning:  PHP Startup: gearman: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20121212
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: uri_template: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20121212
These options need to match
 in Unknown on line 0
Unable to remove "extension=apc.so" from php.ini
uninstall ok: channel://pecl.php.net/APC-3.1.13
[root@zetaweb ~]# mv /etc/php.d/gearman.ini /etc/php.d/gearman.ini.unused
[root@zetaweb ~]# mv /etc/php.d/uri_template.ini /etc/php.d/uri_template.ini.unused

7 확인 2[ | ]

[root@zetaweb ~]# php -v
PHP 5.5.30 (cli) (built: Oct 16 2015 09:21:15) 
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies

8 같이 보기[ | ]

9 참고[ | ]

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