Install Laravel PHP Framework on Debian

Laravel is a most popular PHP framework which is free and opensource. In a short time span Laravel has got a lot of popularity because of that today Laravel has become the most popular PHP framework. Laravel is basically used for web app development based on MVC architecture. By using Laravel you can build scalable and flexible web applications, eCommerce solutions, restful API’s. Laravel also comes with several tools which you can use to write maintainable, clean PHP code. Here in this tutorial you will learn to install Laravel PHP Framework With Nginx on Debian 9 (With LEMP stack ).

Prerequisites

Before you start to install Laravel on Debian 9. You must have the non-root user account on your server with sudo privileges.

Install Nginx

Now you will need to install Nginx. To install Nginx with the latest stable version type following command.

sudo apt install nginx -y

Confirm Nginx version and installation by typing following command.

systemctl status nginx

Install PHP

Before starting to install PHP on Debian update the package manager index & upgrade old packages by typing following in terminal.

sudo apt update && sudo apt upgrade

Now install PHP and some required extensions for Laravel by using the following command.