PHP Fatal error: Class 'SoapClient' not found

(Fatal error: Class 'SoapClient' not found에서 넘어옴)
Fatal error: Class 'SoapClient' not found
php-soap 설치

1 확인[ | ]

[root@zetawiki ~]# php -r "new SoapClient();"
PHP Fatal error:  Class 'SoapClient' not found in Command line code on line 1
[root@zetawiki ~]# rpm -qa | grep php-soap
[root@zetawiki ~]#

2 설치[ | ]

[root@zetawiki ~]# yum install php-soap
... (생략)
===========================================================================================
 Package             Arch              Version                    Repository          Size
===========================================================================================
Installing:
 php-soap            x86_64            5.3.3-46.el6_6             updates            145 k

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

Total download size: 145 k
Installed size: 325 k
Is this ok [y/N]: y
... (생략)
Installed:
  php-soap.x86_64 0:5.3.3-46.el6_6                                                         

Complete!

3 확인 2[ | ]

[root@zetawiki ~]# rpm -qa | grep php-soap
php-soap-5.3.3-46.el6_6.x86_64
[root@zetawiki ~]# php -r "new SoapClient();"
PHP Fatal error:  SoapClient::SoapClient(): Invalid parameters in Command line code on line 1
PHP Fatal error:  Uncaught SoapFault exception: [Client] SoapClient::SoapClient(): Invalid parameters in Command line code:1
Stack trace:
#0 Command line code(1): SoapClient->SoapClient()
#1 {main}
  thrown in Command line code on line 1
→ SoapClient 클래스가 인식되었다.

4 아파치 재시작[ | ]

  • 웹에도 적용하려면 아파치를 재시작한다.
[root@zetawiki ~]# /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

5 같이 보기[ | ]

6 참고[ | ]

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