如何DISABLE SOAP呢?
如何在LN MP中 禁用掉SOAP呢? 出现这个报错是由于安装程序中定义的soapclient函数和PHP5中自带的函数重名了。关闭php.ini中开启的php_soap.dll扩展;
php.ini 中php_soap.dll 前边是有封号的,LNMP如何禁用??
回复 2# 的帖子
需要重新编译php,将--enable-soap去掉。回复 3# 的帖子
请问如何重新编译PHP呢? LNMP是一键安装啊。 cd $cur_dirtar 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需要卸载吗?
页:
[1]