Facing issue with Laravel once uploaded in AWS using EC2

SAM WEB STUDIO posted 1 year ago

Hi Experts,

we have developed an application using Laravel version 5.6. It's working fine with our current VPS hosting. Now we have switched the site to AWS from VPS and site stopped working although same code working fine on our previous non-cloud server.

The issue I'm facing: This page isn’t working is currently unable to handle this request. HTTP ERROR 500

Friends, anyone can give good suggestion how I can fix this issue?

Juha Vehnia replied 1 year ago

There is million things that can go wrong... I would start by log in into your webserver instance and checking out some logs and see what’s written in there.

/var/log/https or Apache or Nginx

Next check the laravel logs

[app root]/storage/logs/laravel

Post your logs if you need more help. 500 error means your app is crashing this could be a configuration issue, permission issue or something wrong with your DB credentials.

Luis Terrero replied 1 year ago

Follow this TUTORIAL it should help you create the LEMP environment you need for Laravel

larafeed replied 1 year ago

This is why it is easier to host your Laravel website on aws using platform, like Cloudways Laravel hosting. Using this platform, you can host your Laravel application on aws in just one-click. Since the servers are managed, if you face any issues, like the one you mentioned, their support team is there to resolve it. Directly hosting with aws means you won't get that kind of support.

Sign in to participate in this thread!

We'd like to thank these amazing companies for supporting us