How do I install soap extension?

前端 未结 9 532
故里飘歌
故里飘歌 2020-12-01 05:51

How do I install Soap?

I got this error:

Fatal error: Class \'SoapClient\' not found in /home/user/mysite.com/path/to/file.php on line 16

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-01 06:40

    Please follow the below steps :

     1) Locate php.ini in your apache bin folder, I.e Apache/bin/php.ini
     2) Remove the ; from the beginning of extension=php_soap.dll
     3) Restart your Apache server (by using : 
        # /etc/init.d/apache2 restart OR 
        $ sudo /etc/init.d/apache2 restart OR 
        $ sudo service apache2 restart)
     4) Look up your phpinfo();
    
     you may check here as well,if this does not solve your issue:  
     https://www.php.net/manual/en/soap.requirements.php
    

提交回复
热议问题