php安装soap扩展

例:

1、编译安装

解压对应php版本安装包

进入解压后的ext目录

phpize --生成configure文件,报以下错误,可以忽略

------------------------------------------------------------------------------

Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "zh_CN.GB2312:en_US:en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "zh_CN.GB2312:en_US:en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

---------------------------------------------------------------------------

 

./configure --with-php-config=/usr/local/php5/bin/php-config --enable-soap

make

make install

注:

Installing shared extensions:     /usr/local/php5/lib/php/extensions/no-debug-zts-20060613/
提示编译后的soap.so文件保存在了/usr/local/php5/lib/php/extensions/no-debug-zts-20060613/目录下。

 

2、修改php.ini

2.1 如果之前没有安装过extension,则需要将extension_dir = "./"改为extension_dir = "/usr/local/php5/lib/php/extensions/no-debug-zts-20060613/",如果已经装过,这步之前应 该就已经改过了,也可以自定义到其它路径,一般使用默认路径。

2.2添加:

extension=soap.so

 

3、重启apache

phpinfo查看是否安装成功

你可能感兴趣的:(PHP,soap扩展)