Report this

What is the reason for this report?

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

Posted on February 7, 2017

Hello,

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?



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!

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 :)

Reference: https://www.digitalocean.com/community/tutorials/how-to-move-an-nginx-web-root-to-a-new-location-on-ubuntu-16-04

@jubiki

The overall gist of the guide here:

https://www.digitalocean.com/community/tutorials/how-to-install-laravel-with-an-nginx-web-server-on-ubuntu-14-04

… 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.

@jubiki

That didn’t help too :(

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.