2016-02-05 58 views
0

我想在遠程服務器中啓用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" 

添加,但仍然沒有奏效。

評論高度讚賞! :)

回答

0

首先你需要

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

你好! –

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