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

Posted widgetbox

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了运行项目报错 报scandir() has been disabled for security reasons相关的知识,希望对你有一定的参考价值。

从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的主要内容,如果未能解决你的问题,请参考以下文章

解决报错:scandir() has been disabled for security reasons

scandir() ,stream_socket_server() has been disabled for security reasons解决方法

uni-app运行到手机报错 Component constructors should be called while initialization. A constructor call has

vue项目报错

Qt编译报错:The kit Desktop Qt...has configuration issues which might be the root cause for this problem.

vue项目 老是报错 气的我就不行