简体   繁体   中英

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. 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).

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

The only thing that changed was that I updated my laravel project (the framework for the site) from 4.0 to 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

chgrp -R www-data /var/www/laravel

Make storage folder writable so that laravel can write logs, cache & compiled views to it.

chmod -R 775 /var/www/laravel/app/storage

After you have done this, everything should be back online.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM