PHP [CentOS 6.8] php 5.5 설치하기
페이지 정보
본문
1. epel-relase 설치
[root@localhost /]# rpm -qa | grep remi-release
[root@localhost /]# rpm -qa | grep epel-release
2. remi-release 설치
[root@localhost /]# yum install http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
... (생략)
===========================================================================================
Package Arch Version Repository Size
===========================================================================================
Installing:
remi-release noarch 6.8-2.el6.remi /remi-release-6 7.6 k
Installing for dependencies:
epel-relase noarch 6.8 extras 14k
Transaction Summary
===========================================================================================
Install 2 Package(s)
Total size: 22 k
Total dowonload size: 14 k
Installed size: 29 k
Is this ok [y/N]: y
... (생략)
Installed:
remi-release.noarch 0:6.8-2.el6.remi
Dependency Installed:
epel-release.noarch 0:6-8
Complete!
3. 설치 확인
[root@localhost /]# rpm -qa | grep remi-release
remi-release-6.8-2.el6.remi.noarch
[root@localhost /]# yum list remi-release
... (생략)
Installed Packages
remi-release.noarch 6.8-2.el6.remi @/remi-release-6
[root@localhost /]# yum repolist | grep remi
* remi-safe: mirror.mediatemple.net
remi-safe Safe Remi's RPM repository for Enterprise Linux 6 - x86_64 1,756
4. php 버전 확인
[root@localhost /]# rpm -qa | grep php
php5.3.3-48.el6_8.x86_64
[root@localhost /]# rpm -qa | grep remi-release
remi-release-6.8-2.el6.remi.noarch
5. php 5.5 설치
[root@localhost /]# yum --enablerepo=remi-php55 install php
... (생략)
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
php-mysqlnd x86_64 5.5.38-7.el6.remi remi-php55 272 k
replacing php-mysql.x86_64 5.3.3-48.el6_8
Updating:
php x86_64 5.5.38-7.el6.remi remi-php55 2.7 M
Installing for dependencies:
gd-last x86_64 2.2.4-1.el6.remi remi-safe 126 k
libwebp x86_64 0.4.3-3.el6 epel 210 k
libzip-last x86_64 1.1.3-1.el6.remi remi-safe 42 k
php-pecl-jsonc x86_64 1.3.10-2.el6.remi.5.5 remi-php55 52 k
php-pecl-zip x86_64 1.13.5-1.el6.remi.5.5 remi-php55 53 k
t1lib x86_64 5.1.2-6.el6_2.1 base 160 k
Updating for dependencies:
php-cli x86_64 5.5.38-7.el6.remi remi-php55 3.9 M
php-common x86_64 5.5.38-7.el6.remi remi-php55 1.0 M
php-gd x86_64 5.5.38-7.el6.remi remi-php55 78 k
php-mbstring x86_64 5.5.38-7.el6.remi remi-php55 968 k
php-pdo x86_64 5.5.38-7.el6.remi remi-php55 119 k
Transaction Summary
================================================================================
Install 7 Package(s)
Upgrade 6 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.38-7.el6.remi php-common.x86_64 0:5.5.38-7.el6.remi
php-gd.x86_64 0:5.5.38-7.el6.remi php-mbstring.x86_64 0:5.5.38-7.el6.remi
php-pdo.x86_64 0:5.5.38-7.el6.remi
Replaced:
php-mysql.x86_64 0:5.3.3-48.el6_8
Complete!
6. php 설치 확인
[root@localhost /]# rpm -qa | grep php
php-pear-1.9.4-5.el6.noarch
php-common-5.5.38-7.el6.remi.x86_64
php-5.5.38-7.el6.remi.x86_64
php-pecl-jsonc-1.3.10-2.el6.remi.5.5.x86_64
php-cli-5.5.38-7.el6.remi.x86_64
php-mysqlnd-5.5.38-7.el6.remi.x86_64
php-mbstring-5.5.38-7.el6.remi.x86_64
php-pecl-zip-1.13.5-1.el6.remi.5.5.x86_64
php-pdo-5.5.38-7.el6.remi.x86_64
php-gd-5.5.38-7.el6.remi.x86_64
7. php 버전 확인
[root@localhost /]# php -v
PHP 5.5.38 (cli) (built: Feb 18 2017 08:33:29)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
8. 아파치 재시작
[root@localhost /]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName
[ OK ]
관련자료
http://zetawiki.com/wiki/CentOS_6에_PHP_5.5_설치
[root@localhost /]# rpm -qa | grep remi-release
[root@localhost /]# rpm -qa | grep epel-release
2. remi-release 설치
[root@localhost /]# yum install http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
... (생략)
===========================================================================================
Package Arch Version Repository Size
===========================================================================================
Installing:
remi-release noarch 6.8-2.el6.remi /remi-release-6 7.6 k
Installing for dependencies:
epel-relase noarch 6.8 extras 14k
Transaction Summary
===========================================================================================
Install 2 Package(s)
Total size: 22 k
Total dowonload size: 14 k
Installed size: 29 k
Is this ok [y/N]: y
... (생략)
Installed:
remi-release.noarch 0:6.8-2.el6.remi
Dependency Installed:
epel-release.noarch 0:6-8
Complete!
3. 설치 확인
[root@localhost /]# rpm -qa | grep remi-release
remi-release-6.8-2.el6.remi.noarch
[root@localhost /]# yum list remi-release
... (생략)
Installed Packages
remi-release.noarch 6.8-2.el6.remi @/remi-release-6
[root@localhost /]# yum repolist | grep remi
* remi-safe: mirror.mediatemple.net
remi-safe Safe Remi's RPM repository for Enterprise Linux 6 - x86_64 1,756
4. php 버전 확인
[root@localhost /]# rpm -qa | grep php
php5.3.3-48.el6_8.x86_64
[root@localhost /]# rpm -qa | grep remi-release
remi-release-6.8-2.el6.remi.noarch
5. php 5.5 설치
[root@localhost /]# yum --enablerepo=remi-php55 install php
... (생략)
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
php-mysqlnd x86_64 5.5.38-7.el6.remi remi-php55 272 k
replacing php-mysql.x86_64 5.3.3-48.el6_8
Updating:
php x86_64 5.5.38-7.el6.remi remi-php55 2.7 M
Installing for dependencies:
gd-last x86_64 2.2.4-1.el6.remi remi-safe 126 k
libwebp x86_64 0.4.3-3.el6 epel 210 k
libzip-last x86_64 1.1.3-1.el6.remi remi-safe 42 k
php-pecl-jsonc x86_64 1.3.10-2.el6.remi.5.5 remi-php55 52 k
php-pecl-zip x86_64 1.13.5-1.el6.remi.5.5 remi-php55 53 k
t1lib x86_64 5.1.2-6.el6_2.1 base 160 k
Updating for dependencies:
php-cli x86_64 5.5.38-7.el6.remi remi-php55 3.9 M
php-common x86_64 5.5.38-7.el6.remi remi-php55 1.0 M
php-gd x86_64 5.5.38-7.el6.remi remi-php55 78 k
php-mbstring x86_64 5.5.38-7.el6.remi remi-php55 968 k
php-pdo x86_64 5.5.38-7.el6.remi remi-php55 119 k
Transaction Summary
================================================================================
Install 7 Package(s)
Upgrade 6 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.38-7.el6.remi php-common.x86_64 0:5.5.38-7.el6.remi
php-gd.x86_64 0:5.5.38-7.el6.remi php-mbstring.x86_64 0:5.5.38-7.el6.remi
php-pdo.x86_64 0:5.5.38-7.el6.remi
Replaced:
php-mysql.x86_64 0:5.3.3-48.el6_8
Complete!
6. php 설치 확인
[root@localhost /]# rpm -qa | grep php
php-pear-1.9.4-5.el6.noarch
php-common-5.5.38-7.el6.remi.x86_64
php-5.5.38-7.el6.remi.x86_64
php-pecl-jsonc-1.3.10-2.el6.remi.5.5.x86_64
php-cli-5.5.38-7.el6.remi.x86_64
php-mysqlnd-5.5.38-7.el6.remi.x86_64
php-mbstring-5.5.38-7.el6.remi.x86_64
php-pecl-zip-1.13.5-1.el6.remi.5.5.x86_64
php-pdo-5.5.38-7.el6.remi.x86_64
php-gd-5.5.38-7.el6.remi.x86_64
7. php 버전 확인
[root@localhost /]# php -v
PHP 5.5.38 (cli) (built: Feb 18 2017 08:33:29)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
8. 아파치 재시작
[root@localhost /]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName
[ OK ]
관련자료
http://zetawiki.com/wiki/CentOS_6에_PHP_5.5_설치
댓글목록
등록된 댓글이 없습니다.