怎么样在lnmp下安装php的soap扩展?非常感谢!
怎么样在lnmp下安装php的soap扩展?非常感谢!问题是://www/wdlinux/etc 下的php.ini
有
; Enables or disables WSDL caching feature.
soap.wsdl_cache_enabled=1
; Sets the directory name where SOAP extension will put cache files.
soap.wsdl_cache_dir="/tmp"
; (time to live) Sets the number of second while cached file will be used
; instead of original one.
soap.wsdl_cache_ttl=86400
是不是支持了。
然后网上搜索少:extension = php_soap.so
这些怎么增加啊。模块方面!本人菜鸟。谢谢!谢指点!
[ 本帖最后由 goodszg 于 2012-2-2 17:23 编辑 ] 本人网上找的安装资料,但好多地方不太明白!
2.centos下
通过yum安装yum install php-soap 然后重启apache。
切换到php5安装目录的soap目录
cd /soft/php-5.2.8/ext/soap
视php安装目录定
/usr/local/php5/bin/phpize
编译soap.so
./configure --with-php-config=/usr/local/php5/bin/php-config --enable-soap
make
make install
Installing shared extensions: /usr/local/php5/lib/php/extensions/no-debug-zts-20060613/
提示编译后的soap.so文件保存在了/usr/local/php5/lib/php/extensions/no-debug-zts-20060613/目录下。
修改php.ini
vi /usr/local/apache2.2.0/conf/php.ini
如果之前没有安装过extension,则需要将extension_dir = "./"改为extension_dir = "/usr/local/php5/lib/php/extensions/no-debug-zts-20060613/",如果已经装过,这步之前就已经改过了。
再其后面加一句:
extension = "soap.so"
重新启动apache,在phpinfo中就有soap的信息了。
Soap Clientenabled
Soap Serverenabled 主要是:
切换到php5安装目录的soap目录
cd /soft/php-5.2.8/ext/soap
这些在lnmp下都找不到啊。
我的目录是:/www/wdlinux/php 下ext没有 SOAP更没 谢高手指点! 这里是lnmp的论坛不是wd的lnmp
无法提供支持
页:
[1]