How do I install soap extension?

前端 未结 9 530
故里飘歌
故里飘歌 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:27

    In ubuntu to install php_soap on PHP7 use below commands. Reference

    sudo apt-get install php7.0-soap
    sudo systemctl restart apache2.service
    

    For older version of php use below command and restart apache.

    apt-get install php-soap
    

提交回复
热议问题