Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

srikanthgopi's avatar

Error 500 on shared hosting

I have completed a project on laravel 5.6 and moved from localhost to hostgator shared hosting just like the way i uploaded other laravel 5.5 sites which are working fine. However the project on laravel 5.6 throws error 500. I'm confused why as everything seems to be ok

Here is the link to the site www.thehealthsearch.com

I'm storing images in the public folder and accessing them via asset()

I have uploaded all the files in thehealthsearch folder abobe public_html and public folder in thehealthsearch folder in public_html

http://drvineelpampati.com/ There seems to be no problem with another site i uploaded on the same shared hosting.

How to resolve this

0 likes
20 replies
srikanthgopi's avatar

@pordonez I haven't made any changes to the routes. The project works fine on the localhost. Could you be more specific, please? I'm a newbie and learning in laravel

pordonez's avatar
pordonez
Best Answer
Level 1

@srikanthgopi please check the php version of your shared hosting. Laravel 5.6 requires 7.1.3 while Laravel 5.5 requires 7.0

2 likes
srikanthgopi's avatar

@pordonez Ah! Maybe that should be the thing. I'm using php 7.0. I'll change that to 7.1

Thank you so much @pordonez You really saved my time. I'll let you know once the error is solved

Please or to participate in this conversation.