如何在centos中启用soap 7

问题描述:

我想在远程服务器中启用soap。我使用的是centos 7和php 5.6.9(php56w)。我遵循网络上写的说明,但仍然无法启用肥皂。如何在centos中启用soap 7

我已经在/usr/local/lib/php.ini

extension="soap.so" 

extension="/usr/local/lib/php/extensions/no-debug-zts-20131226/soap.so" 

extension="/usr/lib64/php-zts/modules/soap.so" 

添加,但仍然没有奏效。

评论高度赞赏! :)

首先你需要

make clean 

要清除上次编译。接下来编译PHP:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mcrypt --with-zlib --with-openssl --enable-mbstring --enable-mbregex --with-pdo-pgsql=/usr/local/pgsql --with-pgsql=/usr/local/pgsql --enable-soap --enable-sockets --enable-calendar 

而且finaly:

make && make install 
+0

谢谢。现在,我已经启用了肥皂。 :)) – Shen

+0

你好! –

PHP是从二进制编译或从回购安装?如果编译,那么你需要用--enable-肥皂重新编译

+0

感谢答复。如何重新编译?我按照https://mediatemple.net/community/products/dv/204404004/configure-php-with-soap#4中的这些步骤操作,但无效。当我运行这个coomand ** php -i | grep -i soap **给出的结果为 配置命令=>'./configure''--with-apxs2 =/usr/local/apache2/bin/apxs'--with-mcrypt''--with -zlib''--with-openssl''--enable-mbstring''--enable-mbregex''--with-pdo-pgsql =/usr/local/pgsql''--with-pgsql =/usr/local/pgsql''--enable-soap = shared''--enable-sockets''--enable-calendar'。 – Shen