首页 > php教程 > php手册 > 正文

PHP: 安装Soap扩展

WBOY
发布: 2016-06-06 19:51:02
原创
1156 人浏览过

Getting SOAP working usually does not require compiling PHP from source. I would recommend trying that only as a last option. For good measure, check to see what your phpinfo says, if anything, about SOAP extensions: $ php - i | grep - i s

Getting SOAP working usually does not require compiling PHP from source. I would recommend trying that only as a last option.

For good measure, check to see what your phpinfo says, if anything, about SOAP extensions:

<code><span>$ php </span><span>-</span><span>i </span><span>|</span><span> grep </span><span>-</span><span>i soap</span></code>
登录后复制

to ensure that it is the PHP extension that is missing.

Assuming you do not see anything about SOAP in the phpinfo, see what PHP SOAP packages might be available to you.

In Ubuntu/Debian you can search with:

<code><span>$ apt</span><span>-</span><span>cache search php </span><span>|</span><span> grep </span><span>-</span><span>i soap</span></code>
登录后复制

or in RHEL/Fedora you can search with:

<code><span>$ yum search php </span><span>|</span><span> grep </span><span>-</span><span>i soap</span></code>
登录后复制

There are usually two PHP SOAP packages available to you, usually php-soap and php-nusoap. php-soap is typically what you get with configuring PHP with --enable-soap.

In Ubuntu/Debian you can install with:

<code><span>$ sudo apt</span><span>-</span><span>get</span><span> install php</span><span>-</span><span>soap</span></code>
登录后复制

Or in RHEL/Fedora you can install with:

<code><span>$ sudo yum install php</span><span>-</span><span>soap</span></code>
登录后复制

After the installation, you might need to place an ini file and restart Apache.

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门推荐
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板