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

deathmetalgore's avatar

All necessary steps to deploy a Laravel 5.1 Project in a shared host?

So I finished coding my project in my local host and now it's time to deploy. My client owns a shared hosting account and demands me to put the script on there. Not having used Laravel before I don't know anything about the deployment process.

So what I need to know is:

  • How to create the database in the host? Do I go manually through phpMyAdmin? I doubt I can run migrations on a shared host.
  • I have used asset versioning for my javascript merge file and CSS merge file. I assume the elixir function in my views will determine those paths for me.
  • Do I simply grab all files and drop them in public_html? I read some articles that it's more complicated than that in Laravel plus I've done deployment of Rails apps and I know how it can get.
  • What are some other things to take care of that I forgot to mention?

Help would be highly appreciated.

0 likes
2 replies
handy_man's avatar

Make sure you get paid before turning the source code over to him by uploading it to his web server.

There are plenty of posts here about this question: https://laracasts.com/discuss/channels/general-discussion/l5-on-shared-hosting

I would generally suggest a dedicated host, $10 a month DigitalOcean server should run the application, maybe a $5 a month with a swapfile setup.

Talk to them about the benefits of dedicated hosting over shared hosting and how he might see performance issues on shared hosting which really isn't worth it when dedicated costs $10 a month.

Please or to participate in this conversation.