安装完laravel,启动完后报 ErrorException (E_WARNING) file_put_contents(/www/wwwroot/blog/storage…错误,是因为权限原因导致访问出错,
解决办法:
1.执行命令 php artisan cache:clear
2. 赋予 /storage 文件夹读写权限: chmod -R 777 storage;
时间:2022-08-02 05:49:34
安装完laravel,启动完后报 ErrorException (E_WARNING) file_put_contents(/www/wwwroot/blog/storage…错误,是因为权限原因导致访问出错,
解决办法:
1.执行命令 php artisan cache:clear
2. 赋予 /storage 文件夹读写权限: chmod -R 777 storage;