[英]You don't have permission to access / on this server. (AWS EC2 Ubuntu Laravel Project)
I have an EC2 Ubuntu instance running on AWS that I have my site on. 我的网站上有一个在AWS上运行的EC2 Ubuntu实例。 Previously, I was able to get my site up and running (everything was working fine with url.com, www.url.com, or http://url.com . Now none of these are working).
以前,我能够启动并运行我的网站(使用url.com,www.url.com或http://url.com进行的所有工作都正常,现在这些都不起作用)。
Now I get the message: 现在我收到消息:
You don't have permission to access / on this server. 您无权访问此服务器上的/。 Apache/2.4.7 (Ubuntu) Server at www.url.com Port 80
网址为www.url.com的Apache / 2.4.7(Ubuntu)服务器端口80
The only thing that changed was that I updated my laravel project (the framework for the site) from 4.0 to 4.1. 唯一发生变化的是,我将laravel项目(网站的框架)从4.0更新到了4.1。
I'm at a loss as to why this changed. 我无所适从,这为什么会改变。 Any ideas?
有任何想法吗? Thank you for your help.
谢谢您的帮助。
Delegate application's directory to apache's user 将应用程序目录委托给apache的用户
chgrp -R www-data /var/www/laravel
Make storage folder writable so that laravel can write logs, cache & compiled views to it. 使存储文件夹可写,以便laravel可以向其中写入日志,缓存和编译视图。
chmod -R 775 /var/www/laravel/app/storage
After you have done this, everything should be back online. 完成此操作后,所有内容都应重新联机。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.