"CentOS 6에 PHP 5.4 설치"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source lang='cli'> +<source lang='console'>))
잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(같은 사용자의 중간 판 하나는 보이지 않습니다)
7번째 줄: 7번째 줄:


==확인==
==확인==
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# rpm -qa | grep php
[root@zetawiki ~]# rpm -qa | grep php
[root@zetawiki ~]# rpm -qa | grep remi-release
[root@zetawiki ~]# rpm -qa | grep remi-release
remi-release-6.4-1.el6.remi.noarch
remi-release-6.4-1.el6.remi.noarch
</source>
</syntaxhighlight>
:→php 는 설치 안됨. remi-release는 설치됨
:→php 는 설치 안됨. remi-release는 설치됨


==PHP 설치==
==PHP 설치==
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# yum --enablerepo=remi install php
[root@zetawiki ~]# yum --enablerepo=remi install php
... (생략)
... (생략)
34번째 줄: 34번째 줄:
Installed size: 24 M
Installed size: 24 M
Is this ok [y/N]: y
Is this ok [y/N]: y
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
... (생략)
... (생략)
WARNING : These php-* RPM are not official Fedora / Red Hat build and
WARNING : These php-* RPM are not official Fedora / Red Hat build and
overrides the official ones. Don't file bugs on Fedora Project nor Red Hat.
overrides the official ones. Don't file bugs on Fedora Project nor Red Hat.
</source>
</syntaxhighlight>
:→ 페도라/레드햇 공식 rpm이 아니라고 한다...
:→ 페도라/레드햇 공식 rpm이 아니라고 한다...
<source lang='console'>
<syntaxhighlight lang='console'>
... (생략)
... (생략)
Installed:
Installed:
50번째 줄: 50번째 줄:


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


==확인 2==
==확인 2==
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# rpm -qa | grep php
[root@zetawiki ~]# rpm -qa | grep php
php-cli-5.4.22-1.el6.remi.x86_64
php-cli-5.4.22-1.el6.remi.x86_64
php-5.4.22-1.el6.remi.x86_64
php-5.4.22-1.el6.remi.x86_64
php-common-5.4.22-1.el6.remi.x86_64
php-common-5.4.22-1.el6.remi.x86_64
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# php -v
[root@zetawiki ~]# php -v
PHP 5.4.22 (cli) (built: Nov 13 2013 09:28:56)  
PHP 5.4.22 (cli) (built: Nov 13 2013 09:28:56)  
Copyright (c) 1997-2013 The PHP Group
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==
70번째 줄: 70번째 줄:
*[[CentOS 6에 PHP 5.3 설치]]
*[[CentOS 6에 PHP 5.3 설치]]


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



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

1 개요[ | ]

CentOS 6에 PHP 5.4 설치
  • 공식 rpm이 아니라고 함. 문제 있어도 책임 못짐;;;

2 사전 작업[ | ]

3 확인[ | ]

[root@zetawiki ~]# rpm -qa | grep php
[root@zetawiki ~]# rpm -qa | grep remi-release
remi-release-6.4-1.el6.remi.noarch
→php 는 설치 안됨. remi-release는 설치됨

4 PHP 설치[ | ]

[root@zetawiki ~]# yum --enablerepo=remi install php
... (생략)
====================================================================================================
 Package                 Arch                Version                        Repository         Size
====================================================================================================
Installing:
 php                     x86_64              5.4.22-1.el6.remi              remi              2.7 M
Installing for dependencies:
 php-cli                 x86_64              5.4.22-1.el6.remi              remi              2.6 M
 php-common              x86_64              5.4.22-1.el6.remi              remi              926 k

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

Total download size: 6.2 M
Installed size: 24 M
Is this ok [y/N]: y
... (생략)
WARNING : These php-* RPM are not official Fedora / Red Hat build and
overrides the official ones. Don't file bugs on Fedora Project nor Red Hat.
→ 페도라/레드햇 공식 rpm이 아니라고 한다...
... (생략)
Installed:
  php.x86_64 0:5.4.22-1.el6.remi                                                                    

Dependency Installed:
  php-cli.x86_64 0:5.4.22-1.el6.remi              php-common.x86_64 0:5.4.22-1.el6.remi             

Complete!

5 확인 2[ | ]

[root@zetawiki ~]# rpm -qa | grep php
php-cli-5.4.22-1.el6.remi.x86_64
php-5.4.22-1.el6.remi.x86_64
php-common-5.4.22-1.el6.remi.x86_64
[root@zetawiki ~]# php -v
PHP 5.4.22 (cli) (built: Nov 13 2013 09:28:56) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

6 같이 보기[ | ]

7 참고[ | ]

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