简体   繁体   English

您无权访问此服务器上的/。 (AWS EC2 Ubuntu Laravel项目)

[英]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.

相关问题 我的Ubuntu Apache Conf文件出现问题。 (禁止您没有访问此服务器上的/的权限。) - Issue with my Ubuntu Apache Conf file. (Forbidden You don't have permission to access / on this server.) 您无权访问 / 在此服务器上 ubuntu 14.04 - You don't have permission to access / on this server ubuntu 14.04 为什么会出现错误“您无权访问/在此服务器上。”? - Why do I get the error “You don't have permission to access / on this server.”? AWS EC2 ubuntu服务器权限问题 - AWS EC2 ubuntu Server permission issue 禁止您无权访问此资源。 Apache/2.4.41 (Ubuntu) 服务器 - Forbidden You don't have permission to access this resource. Apache/2.4.41 (Ubuntu) Server Apache'您无权访问此服务器上的xx' - Apache 'You don't have permission to access xx on this server' 更改权限后,您无权访问此服务器上的/ - You don't have permission to access / on this server after changing permissions 您无权访问此服务器上的文件 - You don't have permission to access file on this server Amazon EC2上的权限被拒绝(公钥),并且无法访问服务器 - Permission denied (publickey) on Amazon EC2 and can't access server 403 Forbidden 您无权访问此服务器上的 /folder-name/ - 403 Forbidden You don't have permission to access /folder-name/ on this server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM