VPS侦探论坛

 找回密码
 注册
查看: 6904|回复: 4

如何DISABLE SOAP呢?

[复制链接]
发表于 2011-3-6 11:37:08 | 显示全部楼层 |阅读模式

如何在LN MP中 禁用掉SOAP呢?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-3-6 11:59:14 | 显示全部楼层


出现这个报错是由于安装程序中定义的soapclient函数和PHP5中自带的函数重名了。
关闭php.ini中开启的php_soap.dll扩展;



php.ini 中php_soap.dll 前边是有封号的,LNMP如何禁用??
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-3-6 12:11:21 | 显示全部楼层

回复 2# 的帖子


需要重新编译php,将--enable-soap去掉。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-3-6 12:23:13 | 显示全部楼层

回复 3# 的帖子




请问如何重新编译PHP呢? LNMP是一键安装啊。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-3-6 12:27:32 | 显示全部楼层

cd $cur_dir
tar zxvf php-5.2.14.tar.gz
gzip -d ./suhosin-patch-5.2.14-0.9.7.patch.gz
gzip -cd php-5.2.14-fpm-0.5.14.diff.gz | patch -d php-5.2.14 -p1
cd php-5.2.14/
patch -p 1 -i ../suhosin-patch-5.2.14-0.9.7.patch
./buildconf --force
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-mime-magic --enable-suhosin
make ZEND_EXTRA_LIBS='-liconv'
make install
cp php.ini-dist /usr/local/php/etc/php.ini
cd ../

ln -s /usr/local/php/bin/php /usr/bin/php


官方CENTOS 里找了一段代码。。不知道是不是写成脚本就可以直接重新编译??
PHP需要卸载吗?

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-20 00:06 , Processed in 0.026600 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表