Laravel is a flexible and lightweight open source PHP framework with Model-View Controller (MVC) design pattern. It can be a great alternative to CodeIgniter framework. Laravel is designed for ease of use to allow developers create beautiful code.
If you’re looking for a simple and straightforward PHP framework to design your next application, you’ll find Laravel to be useful. This brief tutorial is going to show students and new users how to install Laravel PHP framework on Ubuntu 17.04 / 17.10 with Nginx, MariaDB and PHP support.
To get started with installing Laravel, follow the steps below:
Step 1: Install Nginx
Laravel requires a webserver to function and the second most popular webserver in use today is Nginx. So, go and install Nginx on Ubuntu by running the commands below:
sudo apt install nginx
Next, run the commands below to stop, start and enable Nginx service to always start up with the server boots.
Change into Laravel directory and run the commands below to download and install Laravel for th e project you want to create… name the project whatever you want… for this post, we’re calling it MyProject..
sudo composer create-project laravel/laravel MyProject --prefer-dist
After running the commands above, a new project directory will be created… Run the commands below to set the correct permissions for that directory..