How do I configure LEMP (Ubuntu 16.04) for Laravel 5.4?


I did a basic one-click app install for LEMP (ubuntu 16.04). I was wondering if there was a tutorial on how to set it up for Laravel 5.4? I’ve found it for Ubuntu LAMP 14.04, but not for 16.04. Does anyone know where I can find a reliable source to get this done?


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

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.

I figured it out, maybe LEMP 16.04 doesn’t use the /etc/nginx/sites-available/default anymore. So, I tried editing this file instead.

sudo nano /etc/nginx/sites-enabled/digitalocean

Then, whooah! It worked :)



That didn’t help too :(

@jubiki I have recently made a gist for configuring the latest laravel 5.4 on LEMP,follow the link here

I’ve tried that tutorial, and it didn’t help me. I still get the default blue screen.


The overall gist of the guide here:

… is pretty much the same for 16.04. The one section you would want to skip is the one regarding the creation of a swap file. This isn’t recommended now, so it’s safe to overlook that section.