1. 현재 PHP 버전 확인
[root@dupont ~]# php -v | head -1 PHP 5.0.1 (cli) (built: Nov 3 2008 12:32:14) [root@dupont ~]# rpm -qa | grep php php-common-5.0.1-14.e12_1.x86_64 php-cli-5.0.1-14.e12_1.x86_64 php--5.0.1-14.e12_1.x86_64 |
2. webtatic 저장소 추가
[root@dupont ~]# rpm -qa | grep webtatic-release <- 사전 확인 [root@dupont ~]# rpm -Uvh http://mirror.webtatic.com/yum/e16/lates.rpm Retrieving http://mirror.webtatic.com/yum/e16/latest.rpm warning: /var/tmp/rpm-tmp.d4hDGT: Header V4 DSA/SHA1 Signature, key ID... Preparing... #################################### [100%] 1:webtatic-release #################################### [100%] [root@dupont ~]# rpm -qa | grep webtatic-release <- 확인 webtatic-release-5-3 [root@dupont ~]# yum repolist --enablerepo=webtatic | grep webtatic * webtatic: us-east.repo.webtatic.com webtatic Webtatic Repository 5 - x86_64 |
3. 설치 시도 (오류)
[root@dupont ~]# yum install php56w php56w-opcache .. .. Error: php56w-common conflicts with php-common-5.3.3-27.e16_5.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest |
4. yum-plugin-replace 설치
[root@dupont ~]# yum install yum-plugin-replace ... ================================================================ Package Arch Version Repository Size ================================================================ Installing: yum-plugin-replace noarch 0.2.6-1ius-e16 webtatic 17k Transaction Summary =============================================================== Install 1 Package(s) Total download size: 17 k Installed size: 34 k Is this ok [y/N]: y Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-andy Importing GPG key 0xCF4C4FF9: Userid : Andy Thompson <andy@webtatic.com> Package: webtatic-release-6-4.noarch (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-andy Is this ok [y/N]: y ...(생략) Installed: yum-plugin-replace.noarch 0:0.2.6-1.ius.e16 Complete! |
5. php-common 교체
[root@dupont ~]# yum replace --enablerepo=webtatic-testing php-common --replace-with=php56w-common ...(생략) WARNING: Unable to resolve all providers: ['config(php-common)', 'curl.so()(64bit)', ... (생략) This may be normal depending on the package. Continue? [y/N] y ================================================================ Package Arch Version Repository Size ================================================================ Installing: php56w x86_64 5.6.0-0.7.beta4.w6 webtatic-testing 2.5M php56w-cli x86_64 5.6.0-0.7.beta4.w6 webtatic-testing 2.4M php56w-common x86_64 5.6.0-0.7.beta4.w6 webtatic-testing 1.1M ...(생략) Removing: php x86_64 5.3.3-27.e16_5 @updates 3.5M php-cli x86_64 5.3.3-27.e16_5 @updates 6.2M php-common x86_64 5.3.3-27.e16_5 @updates 3.5M ...(생략) Complete! |
6. php56w-opcache 설치
[root@dupont ~]# yum install --enablerepo=webtatic-testing php56w-opcache ================================================================ Package Arch Version Repository Size ================================================================ Installing: php56w-opcache x86_64 5.6.0-07.beta.w6 webtatic-testing 97 k Transaction Summary ================================================================ Install 1 Package(s) Total download size: 97 k Installed size: 292 k Is this ok [y/N]: y ...(생략) Installed: php56w-opcache.x86_64 0:5.6.0-7.beta4.w6 Complete! |
원본 출처: jmnote
php56w은 베타버전으로 상용 서비스중인 시스템에 사용하는 것은 좋지 않다.
한가지 예로 php56w과 php-xml은 혼용될 수 없다. php-xml은 php53w과만 적용되는 것으로 보이며, php-xml이 혼용되지 않는 이유로 홈페이지가 백지가 나올수도 있게되니 사용에 주의가 필요하다
'IT > 기타 유용한 지식' 카테고리의 다른 글
웹페이지 응답속도 측정 툴(page speed insights) (0) | 2015.02.23 |
---|---|
yum epel 저장소 설치 (0) | 2015.02.09 |
glibc 보안성 업데이트 권고 (0) | 2015.01.31 |
/etc/resolv.conf가 지워지는 이유 (1) | 2015.01.09 |
secureCRT 접속 속도 향상시키기 (0) | 2015.01.09 |