首页 > 其他 > 详细

运行项目报错 报scandir() has been disabled for security reasons

时间:2020-05-30 11:13:39      阅读:40      评论:0      收藏:0      [点我收藏+]

从github下载三方扩展后直接拖拽至vendor目录
运行项目报错 报scandir() has been disabled for security reasons

技术分享图片

 

 

 

原因:
因为PHP里面的scandir函数被禁用了


打开php.ini

disable_functions = scandir,passthru,exec,system,chroot,chgrp,chown,shell_exec,proc_open,

proc_get_statu,ini_alter,ini_alter,ini_restore,dl,pfsockopen,openlog,syslog,

readlink,symlink,popepassthru,stream_socket_server,fsocket,fsockopen


解决:
去掉scandir保存并重起php-fpm即可。

很多函数问题,都有可能是php禁用了,大家需要的时候去掉就可以了,为了安全尽量少开启!

 

by:ph

运行项目报错 报scandir() has been disabled for security reasons

原文:https://www.cnblogs.com/widgetbox/p/12991009.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!