Report this

What is the reason for this report?

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

Posted on February 4, 2017

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



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

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

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.