如何在centos 7中启用Soap

如何在centos 7中启用Soap,soap,centos7,Soap,Centos7,我想在远程服务器中启用soap。我使用的是centos 7和PHP56.9(php56w)。我按照web上的说明操作,但仍然无法启用soap 我已经添加了/usr/local/lib/php.ini extension="soap.so" 或 或 但还是不起作用 非常感谢您的评论!:) Php是从二进制编译的还是从repo安装的?如果已编译,则首先需要使用--enable soap重新编译 make clean 清理上一次编译。下一步,使用以下工具编译php: ./configure --

我想在远程服务器中启用soap。我使用的是centos 7和PHP56.9(php56w)。我按照web上的说明操作,但仍然无法启用soap

我已经添加了/usr/local/lib/php.ini

extension="soap.so"

但还是不起作用


非常感谢您的评论!:)

Php是从二进制编译的还是从repo安装的?如果已编译,则首先需要使用--enable soap重新编译

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
最后:

make && make install

谢谢你的回复。如何重新编译?我在中遵循此步骤,但没有起作用。当我运行这个命令php-I | grep-I soap时,它给出一个Configure命令=>'./配置“”--使用-apxs2=/usr/local/apache2/bin/apxs'--使用mcrypt'--使用zlib'--使用openssl'--启用mbstring'--启用mbregex'--使用pdo pgsql=/usr/local/pgsql'--使用pgsql=/usr/local/pgsql'--启用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 --enable-sockets --enable-calendar
make && make install