无法查看
我已经安装上了新的EC2实例laravel,我已确保我的PHP,MySQL和Apache2的全部运行无法查看
浏览器我laravel项目我Laravel的版本是45年2月5日
我的000-default.conf如下
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/testing/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
我的apache2.conf文件如下
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/html/testing/public>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
我的文件夹结构是/ var/www/html/testing
但是我试图打ip时遇到了500.任何帮助都将不胜感激。
从我的经验,授予权限,以你的日志文件:
sudo chmod 777 -R /var/www/html/testing/storage/
I我得到一个错误... file_put_contents(/var/www/html/testing/storage/framework/views/5b6b8c386effa98dcb94bc25d798a39157716c4b.php):faile d打开流:权限被拒绝 –
我从结尾删除日志,并chmod整个存储目录,并得到Laravel屏幕 –
抱歉,我写错了路径,已经更新它。 –
你运行'PHP工匠serve' – C2486
是的,但那么它不工作,我有我的EC2上的项目和服务给了我一个本地主机检查我的代码 –
您是否启用aws ec2设置中的安全组中的端口 – Jabaa