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

gk's avatar
Level 1

laravel 5 not working on shared hosting

I have made a simple application in latest version of laravel for learning, it works perfectly on localhost , but when i uploaded all files into 'public_html/' folder, and access mywebsite.com/public it shows blank page. :/ i have tried almost all of the best tutorials which i found on google but nothing works for me. let me know if there is any changes need to be done to run it on server.

0 likes
4 replies
alenn's avatar

Just move everything from public directory to root directory and then update paths in index.php, I believe you also need to change some paths in bootstrap folder, can't remember.

1 like
alenn's avatar
alenn
Best Answer
Level 7

Check PHP version of your hosting, it should be at least 5.5.9 if you are using Laravel 5.1

1 like
gk's avatar
Level 1

@alenn Thank you very much, yes it was 5.4, i changed it to 5.5 now it is working absolutely fine.

Please or to participate in this conversation.