解决scandir() has been disabled

2025-11-27 07:25:10

1、查看phpinfo(),确认scandir()函数被禁用

解决scandir() has been disabled

2、进入到php的配置目录,编辑php.ini

cd /usr/local/php/etc

vi php.ini

解决scandir() has been disabled

3、搜索scandir

然后删掉,保存退出。

解决scandir() has been disabled

4、重启nginx和php-fpm。再刷新查看,OK啦!

解决scandir() has been disabled

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢