How to deploy a PHP Laravel source code in digitalocen

I am a bit of a noob when considering for servers, i want to deploy a finished project that i have developed over my local machine to over the cloud using cloud services like digitailocen

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there,

In addition to what KFSys already mentioned, I could add that you could try out the new DigitalOcean App Platform. You could take a look at this video here on how to deploy Laravel to the App Platform:

The main benefits of the new App Platform are that you would not have to do any server setup, and you could have out of the box automated deployments whenever you push code to your GitHub repository.

Regards, Bobby

Hi @ahmedadelmywork,

Don’t worry, everyone starts from somewhere!

What you’ll need to do is, create a droplet, install MySQL,PHP, Apache or Nginx and then deploy your laravel application. It’s not that hard but for someone, without experience in this area it might seem overwhelming. Having said that, DigitalOcean have a great tutorial for exactly such cases. You can check it out here:

It will basically, lead you through the whole process of installing and configuring a new Laravel installation alongside Nginx, MySQL and PHP. You can replace the new installation with your own

Now, there is an alternative, You can use the Marketplace Laravel Droplet which you can find here:

It will deploy a ready droplet with everything installed in it. You’ll just need to replace the Laravel there with your own code.

Regards, KFSys