How to install LEMP stack and deploy your Laravel application in DigitalOcean (Ubuntu 18.04): Part 1

Arnolfo Federis
3 min readMar 3, 2019
How to install LEMP stack and deploy your Laravel application in DigitalOcean (Ubuntu 18.04)

In this story, I’m gonna show you step by step on how to set up your server in DigitalOcean using Ubuntu 18.04 and deploy your Laravel application.

First we need to Register in DigitalOcean. Use the link below to get a free credit $100, 60-days for new account.

After you set up your account, let’s set up a new project and create your first droplet.

First step:

Creating new project
  • Name your project: Name of your project you want
  • Add a Description: Add your description of your project that you set up
  • Tell us what it’s for: Select any option that you want for your project. On my case I selected Class project / Educational purpose just for this tutorial.
  • Click Create project if you are ready.

Second step Move Resources.

Move Resources

Click skip for now.

After you set up your new project, let’s proceed in creating your first droplet.

Click Get Started with a Droplet,

Get started with a Droplet

Select Ubuntu 18.04 and Select Standard plan

Create Droplet

If you want to add backups and block storage just click and select what you want, but in this tutorial I just selected the basic.

Selecting plan

Select your datacenter region

Select datacenter region

Choose your hostname, add tags if you want and choose how many droplets you want, In my case i just selected 1.

Finalize and create your first droplet.

Create first droplet

End of part 1.

Part 2: Set up our server

Part 3: Set up now the LEMP stack (Linux, Nginx, MySQL, PHP).

Part 4 (The last part): Deploy our Laravel application in our server.

--

--