存档

文章标签 ‘函数’

LNMP0.9如何开启fsockopen函数支持问题

2013年4月26日 没有评论

VPS安装的是lnmp0.9的同学,在安装配置phpcms v9\discuz x的时候,可能会遇到下面的问题:

fsockopen() 不支持 该函数需要 php.ini 中 allow_url_fopen 选项开启。请联系空间商,确定开启了此项功能
pfsockopen() 不支持 该函数需要 php.ini 中 allow_url_fopen 选项开启。请联系空间商,确定开启了此项功能

这样的问题,解决方法如下:

编辑/usr/local/php/etc/php.ini 查找disable_functions ,将里面的fsockopen 去掉

然后再执行:

/etc/init.d/php-fpm restart

/etc/init.d/nginx restart

分类: WEB 标签: , ,