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

运行项目报错  报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

相关文章:

  • 2021-08-22
  • 2021-06-17
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-14
  • 2021-04-01
  • 2021-07-25
  • 2021-09-23
  • 2022-12-23
  • 2021-11-08
相关资源
相似解决方案