Hi,
I have been working on a development site on my local machine. I am now trying to deploy it on an EC2 instance. I am facing issues with that. Here is what I have done till now.
Step 1: Cloned project on same level as www
so my project is in /var/my_project
Step 2: Next I copied content of my public folder to /var/www/html folder
Step 3: Next I modified the index.php file in my /var/www/html folder for the following
require DIR.’/../my_project/bootstrap/autoload.php’;
$app = require_once DIR.’/../my_project/bootstrap/app.php’;
Step 4: Changed access to storage folder
chmod -R o+w project/storage
Step 5: Modified .env folder
Step 6: Ran the following dependencies
$ php composer install
$ php composer dumpautoload -o
$ php artisan config:cache
$ php artisan route:cache
Ran all the migrations and everything. Everything is all set but when I hit the IP Address of the EC2 instance I get 500 Error. I have modified .env file and set
APP_ENV = local
APP_DEBUG = true but I am not seeing any errors.
Can someone please help me with what I can do to resolve this. Do I need to modify .htaccess folder or is it something totally wrong that I am doing.