YUM으로 pecl http 설치

YUM으로 pecl http 설치

1 확인[ | ]

[root@zetawiki ~]# php -r "http_head();"
PHP Fatal error:  Call to undefined function http_head() in Command line code on line 1
→ 함수인식불가. 설치안됨

2 사전작업[ | ]

3 설치[ | ]

[root@zetawiki ~]# yum install php-pecl-http1
Loaded plugins: fastestmirror, replace, security
Determining fastest mirrors
epel/metalink                                         | 2.1 kB     00:00     
... (생략)
=============================================================================
 Package              Arch         Version               Repository     Size
=============================================================================
Installing:
 php-pecl-http1       x86_64       1.7.6-4.el6           epel          140 k
Installing for dependencies:
 php-xmlrpc           x86_64       5.3.3-46.el6_6        updates        57 k
Updating for dependencies:
 php                  x86_64       5.3.3-46.el6_6        updates       1.1 M
 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
 php-devel            x86_64       5.3.3-46.el6_6        updates       512 k
 php-gd               x86_64       5.3.3-46.el6_6        updates       111 k
 php-intl             x86_64       5.3.3-46.el6_6        updates        75 k
 php-mbstring         x86_64       5.3.3-46.el6_6        updates       459 k
 php-mysql            x86_64       5.3.3-46.el6_6        updates        86 k
 php-pdo              x86_64       5.3.3-46.el6_6        updates        79 k
 php-process          x86_64       5.3.3-46.el6_6        updates        44 k
 php-xml              x86_64       5.3.3-46.el6_6        updates       107 k
 php-zts              x86_64       5.3.3-46.el6_6        updates       1.2 M

Transaction Summary
=============================================================================
Install       2 Package(s)
Upgrade      12 Package(s)

Total download size: 6.6 M
Is this ok [y/N]: y
... (생략)
Installed:
  php-pecl-http1.x86_64 0:1.7.6-4.el6                                        

Dependency Installed:
  php-xmlrpc.x86_64 0:5.3.3-46.el6_6                                         

Dependency Updated:
  php.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-mysql.x86_64 0:5.3.3-46.el6_6   
  php-pdo.x86_64 0:5.3.3-46.el6_6       php-process.x86_64 0:5.3.3-46.el6_6 
  php-xml.x86_64 0:5.3.3-46.el6_6       php-zts.x86_64 0:5.3.3-46.el6_6     

Complete!

4 확인 2[ | ]

[root@zetawiki ~]# php -r "http_head();"
PHP Warning:  http_head() expects at least 1 parameter, 0 given in Command line code on line 1
→ 함수인식가능. 설치됨

5 아파치 재시작[ | ]

  • 아파치 웹서버에 적용하기 위해 재시작
[root@zetawiki ~]# /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

6 같이 보기[ | ]

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