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

February 4, 2017 2.7k views
LAMP Stack Ubuntu 16.04

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

1 Answer

@techsavy72

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.

https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04

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

https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-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:

https://getcomposer.org/download/

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:

https://laravel.com/docs/5.4/installation

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.

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.
Have another answer? Share your knowledge.