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

Sekhoane's avatar

Deploy Laravel 5 on shared hosting subdomain with mySQL database

Hi, I have a laravel application on my local enviroment and would like to deploy it on a shared host subdomain and the application runs a mySQL database. I am following the link below but its seems that it does not work for my situation. Please provide links or tips on how to tackle this.

http://novate.co.uk/deploy-laravel-5-on-shared-hosting-from-heart-internet/

Thanks

0 likes
4 replies
bunnypro's avatar
  1. Place your laravel in your shared hosting. don't place it in public_html.

  2. Create a symbolic link from your laravel public directory to public_html.

*edit

if you run it from subdomain, just point the subdomain to laravel public direcotory.

Sekhoane's avatar

Thanks bunnypro,

I have managed to deploy it successfully but now my laravel packages are not loading properly I get an ErrorException in TicketitServiceProvider.php line 191: include(C:\xampp\htdocs\wia2\vendor/kordy/ticketit/src/routes.php): failed to open stream: No such file or directory

bunnypro's avatar
bunnypro
Best Answer
Level 7

did you run composer install or composer update before ?

Sekhoane's avatar

I ran composer update to solve the error.

Please or to participate in this conversation.