scandir() symlink() has been disabled for security reasons解决方法!

laravel项目linux下要在public目录创建一个storage的软连接。报错如下:

ErrorException (E_WARNING)
symlink() has been disabled for security reasons

scandir() symlink() has been disabled for security reasons解决方法!_第1张图片
image.png
scandir() symlink() has been disabled for security reasons解决方法!_第2张图片
image.png
解决方法:
打开php.ini文件。搜索disable_functions,然后删除scandir、symlink,重启nginx
scandir() symlink() has been disabled for security reasons解决方法!_第3张图片
image.png
软连接创建成功。
scandir() symlink() has been disabled for security reasons解决方法!_第4张图片
image.png

你可能感兴趣的:(scandir() symlink() has been disabled for security reasons解决方法!)