网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 生活知识 知识问答

解决scandir() has been disabled

时间:2026-02-17 18:52:02

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

© 2026 智德知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com