LNMP0.9如何开启fsockopen函数支持问题 – 与你同行·老实孩子·某知名博客

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

/ 0评 / 0

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

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注