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

Robert-Broley's avatar

Deploying Laravel 5 on Cloud Hosting

Hello,

I am looking for some advice really. I have Cloud Hosting by Vidahost a UK Company. I am looking for help in uploading my project . I am currently using Xammp on Windows 7. So I am just looking for the steps involved.

Thanks

0 likes
15 replies
SCC's avatar

Is the hosting package you have windows or linux?

SCC's avatar

Well it should be fairly simple, set up your Linux box as a web server:

Apache or Nginx MySQL, MariaDB or whatever you are using And all you need to run Laravel (see docs)

Make sure you secure the box with a decent set of iptables rules, fail2ban and so on.

Wherever you point the virtual host file for the web server is where you simply copy the local Laravel directory to. You will need to setup up and configure MySQL.

Not absolutely detailed but you get the idea.

This stilll looks current. http://4b5.net/setting-up-a-vps-as-a-laravel-testing-site/

SCC's avatar

It's one of those processes that if you know what you are doing then it will take 5-10 minutes, otherwise it can take a couple of hours. But as said, secure the box, secure the box, secure the box! :)

Robert-Broley's avatar

I thought I may have been a simple process. Its my first project so I am a little new at deploying applications on my cloud hosting.

SCC's avatar

It's like most things, do it a few times and it's easy, the first time it's a pain. I have went through the process so many times it's almost second nature.

Focus on the Web Server first and get it up and running then get Laravel installed.

1 like
Robert-Broley's avatar

I am quite tempted to use Digital Ocean as its highly recommended on here.

SCC's avatar

Yeah, I use Digital Ocean, in fact from the first month and never looked back. It's good for beginners as amongst other things you can setup backups but also snapshot your Virtual Machine at any stage. So once you get one bit the way you want snapshot and you can revert back should something go wrong.

Use the code SSD10 or something like it, just search their facebook page if you have not signed up. It will give you some free time.

Robert-Broley's avatar

I've just added 5 dollars so I may try them. How easy is it to setup on their without Forge or similar please?

lukebro's avatar

Pretty easy they have tons and tons and tons of tutorials/guides to setup whatever you need on your node.

BENderIsGr8te's avatar

For the past 5 years I have used Amazon AWS with EC2 Instances and self built and managed them all. I used Dploy for code deployment and learned a lot about SSH and Terminal commands. However, I threw them all in the garbage once I started doing Laravel.

  • Server Hosting: Digital Ocean (It's actually cheaper than Amazon EC2 for most needs)
  • Server Management: Laravel Forge (worth $10 a month for a GUI to do many common tasks but still have SSH capabilities
  • Code Deployment: Enovyer.io. Again for my Laravel Apps worth the $10 a month for all the very cool features.

If you are in a position to make the decision I would encourage you to look at this Laravel Ecostystem setup, especially if you are building Laravel/Lumen specific apps.

Robert-Broley's avatar

I've decided I may try Digital Ocean and Forge. How easy is it to set up?

SCC's avatar

Again it depends on your skill level, I tried Forge once and dropped it within the first month, don't get me wrong it's good if you need what it offers but bloated and over complex if you are starting out and don't need or understand everything it has to offer.

1 like
Robert-Broley's avatar

Okay the hosting company have setup the SSH for me with

.composer folder .public_html folder - I have uploaded my entire Laravel 5 project to here .htaccess .composer.phar file .bashrc .bash_history

I am not too confident with servers you see. I am used to ftp up static websites and wordpress etc but I have never deployed an application before.

Please or to participate in this conversation.