Could someone make a tutorial on how to install Laravel on Ubuntu 16.04 using LAMP?

Posted February 4, 2017 15.1k views
LAMP StackUbuntu 16.04

I am trying to get laravel to work on the server but, I can’t seem to find the right tutorial.

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.

Submit an Answer
2 answers


The best place to start would be the following guide, which will cover the initial setup of you server. The guide that follows assumes that you’ve completed this guide, so it’s best to take a look at it now.

Once the above guide is complete, the next guide will cover how to go about setting up your LAMP Stack on Ubuntu 16.04.

As for Laravel, the recommended method of installation is using Composer, so once you’re done with both of the above guides, you’ll want to install composer using the following guide:

After downloading composer, you’ll be left with a composer.phar file which you can rename by running:

mv composer.phar composer

With composer ready to use, all you’d need to do is follow the quick-start guide for Laravel:

This is more of a crash course since there’s not an official tutorial for Apache or NGINX on 16.04 as of now. If you run in to any issues, however, feel free to reply and I’ll be more than happy to help.

by Mitchell Anicas
When you start a new server, there are a few steps that you should take every time to add some basic security and give you a solid foundation. In this guide, we'll walk you through the basic steps necessary to hit the ground running with Ubuntu 16.04.

I have written an article on How to Create a Laravel-Based LAMP Stack on Ubuntu However, I would suggest you to host your Laravel application on DigitalOcean using Cloudways. If you don’t have system admin knowledge.