Home  >  Article  >  Backend Development  >  PHP中安装soap模块 扩展 方法

PHP中安装soap模块 扩展 方法

WBOY
WBOYOriginal
2016-06-23 13:31:561043browse

PHP中安装soap模块方法
一、Linux下安装soap模块
安装完php后最好保留当时安装的文件,比如usr/local/php-5.3.2
查看soap模块是否安装的办法:在php的安装目录下运行php -m来查看

如:/usr/local/php/bin/php -m |grep ‘soap’
如果没有安装,则进入php的安装源文件夹

cd php-5.3.2/ext/soap进入后在此运行phpize命令/usr/local/php/bin/phpize


查看信息是否有出错,没有出错的话运行如下命令:
./configure ?with-php-config=/usr/local/php/bin/php-config ?enable-soap

然后是安装编译
makemake install


安装好之后会提示soap.so文件的保存路径
编译后的soap.so文件保存在了/usr/local/php/lib/php/extensions/no-debug-non-zts-20111222目录下,接着修改php.ini文件
手工修改:查找/usr/local/php/etc/php.ini中的extension_dir = “./”,默认是注释掉的
修改为extension_dir = “/usr/local/php/lib/php/extensions/no-debug-non-zts-20111222/”
并在此行后增加如下,然后保存:
extension=soap.so

重新启动apache,在运行php -m就已经能看到扩展的soap模块了。
如果还要安装扩展别的模块可以以此类推。

版权声明:本文为博主原创文章,未经博主允许不得转载。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn