Ad

AWS Elastic Beanstalks Shows "whoops! There Was An Error" On Its Url After Uploading Laravel Project

I need your help. I have created a website on Laravel and its working totally fine on my localhost but when I deploy it on AWS using Elastic Beanstalk it shows "Whoops There was an error" title page only without any error or text on the page except title.

I have tried many options like changing env file name, generating app key, changing root folder from / to /public but it just doesn't work. Below I am sharing you my folder structure that I am uploading to AWS beanstalk after zipping. Here is elastic beanstalk url. http://lessyes.us-east-1.elasticbeanstalk.com/

enter image description here

Ad

Answer

Probably because your file/folder permissions

How to set up file permissions for Laravel?

sudo find /path/to/your/laravel/root/directory -type f -exec chmod 664 {} \;
sudo find /path/to/your/laravel/root/directory -type d -exec chmod 775 {} \;

For your cache directory:

sudo chmod -R ug+rwx storage bootstrap/cache

Ad
source: stackoverflow.com
Ad