centos部署laravel项目报错权限拒绝访问,解决方式
报错信息
The stream or file "/home/www/startLaravel/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
解决方式,原文链接https://stackoverflow.com/questions/17954625/services-json-failed-to-open-stream-permission-denied-in-laravel-4
在项目根目录下,输入下面俩个命令行,ok
find storage -type d -exec chmod 777 {} \;
find storage -type f -exec chmod 777 {} \;
不能被域名解析,是防火墙的原因
service iptables stop