enable SOAP on PHP

前端 未结 2 371
暖寄归人
暖寄归人 2021-01-04 18:35

I would like to enable SOAP on my PHP5/Centos/Apache server. I have full access to the server. My php.ini file includes the below. When I look at phpinfo(), it doesn\'t r

相关标签:
2条回答
  • 2021-01-04 19:24

    In case that you have Ubuntu in your machine try the following in your terminal:

    1. sudo apt-get install php-soap
    2. service apache2 restart

    To check use php test file inside it only the following function phpinfo(); and check results in the browser which contains the following module like that image:

    0 讨论(0)
  • 2021-01-04 19:31

    You may need to make sure the PHP SOAP package is installed. Try running yum install php-soap as root.

    Edit: Adapted from this excellent answer to a similar question:

    run this:

    yum --enablerepo=webtatic install php-soap
    

    this tells yum to get the packages from webtatic repository (in addition to system configured repositories). If you want webtatic among system enabled repositories, run:

    rpm --import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy
    yum --enablerepo=webtatic install  webtatic-release
    
    0 讨论(0)
提交回复
热议问题