海口网站开发,绵阳网站建站,做HH网站,四川建设银行手机银行下载官方网站1#xff0c;上传项目文件后#xff0c;需要chmod -R 777 storage授予文件权限#xff0c;不然会报错file_put_contents(/): failed to open stream: Permission denied。
如果后面还是报错没有权限的话#xff0c;就执行ps -ef |grep php查询php运行用户。然后执行chown …1上传项目文件后需要chmod -R 777 storage授予文件权限不然会报错file_put_contents(/): failed to open stream: Permission denied。
如果后面还是报错没有权限的话就执行ps -ef |grep php查询php运行用户。然后执行chown -R www.www storage/ 2nginx的fastcgi.conf文件将其$document_root变量修改为项目目录不然会报错Warning: require(): open_basedir restriction in effect.
3nginx.conf还需要配置相关信息才能访问得到laravel网站具体配置查询laravel中文文档就有。
4设置storage软链接php artisan storage:link
如果报错symlink() has been disabled for security reasons
找到 php.ini /usr/local/php/etc文件在 disable_functions 配置中删掉 symlink及其前面或后面的任意一个逗号 。
再去项目根目录下执行php artisan storage:link