简体   繁体   English

如何在centos 7中启用Soap

[英]How to Enable Soap in centos 7

I want to enable soap in remote server. 我想在远程服务器上启用肥皂。 I'm using centos 7 and php 5.6.9(php56w). 我正在使用centos 7和php 5.6.9(php56w)。 I follow the instructions written in the web but still I can't enable the soap. 我遵循网络上写的说明,但仍然无法启用肥皂。

I already added in /usr/local/lib/php.ini 我已经在/usr/local/lib/php.ini中添加了

extension="soap.so"

or 要么

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

or 要么

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

but still didn't work. 但还是没用

Comments are highly appreciated! 评论高度赞赏! :) :)

Php was compiled from binary or installed from repo? PHP是从二进制编译的还是从回购安装? If compiled, then you need recompile it with --enable-soap 如果已编译,则需要使用--enable-soap重新编译

Firstly you need 首先你需要

make clean

To clean last compilation. 清理最后的编译。 Next compile php with: 接下来用以下命令编译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

And finaly: 最后:

make && make install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM