PHP添加SOAP模块

1. 进入php的源码目录

cd /usr/src/php-5.3.27/ext/soap/

2. 运行phpize

/usr/local/php/bin/phpize

3. 配置、编译并安装soap

./configure --with-php-config=/usr/local/php/bin/php-config --enable-soap
make && make install

4. 修改php.ini,添加soap.so

vi /etc/php.ini
extension=soap.so

5. 重启nginx、php

kill -HUP `cat /usr/local/nginx/logs/nginx.pid`
kill -USR2 `cat /usr/local/php/var/run/php-fpm.pid`

你可能感兴趣的:(PHP,模块,SOAP)