Laravel requirements

Apache MySQL/MariaDB PHP >= 7.1.3 OpenSSL PHP Extension PDO PHP Extension Mbstring PHP Extension Tokenizer PHP Extension XML PHP Extension

Step 1 – Prerequsiteis

You need to install the recommended PHP version with the required modules before starting the Laravel installation. The system has already running LAMP stack skip this step else use the following commands to set up the lamp on Debian 10 system. Install PHP 7 Install Apache2 Install MySQL Install PHP Composer The composer is required for installing Laravel dependencies. So use the below commands to download and use as a command in our system.

Step 2 – Installing Laravel on Debian

Clone the latest Laravel source code from its official git repository to your local system. Just execute the following command to do it. Navigate to the Laravel code directory and use the composer to install all dependencies required for the Laravel framework. The dependencies installation may take some time as per your network speed. After successfully installing all dependencies, set the proper permissions on all files.

Step 3 – Set Encryption Key

Now, rename the .evn.example file to .env in projects main directory. This will use to setup application environment for the project. Then, generate base64 random number encryption key, which used by the Illuminate encrypter service. Edit the .env configuration file and update the required settings. Also, make sure APP_KEY is properly set as generated in above command.

Step 4 – Setup MySQL Database

You may also require creating a database for your Laravel application. Login to your MySQL server and create MySQL database and user.

Edit the .env file and update database settings.

Step 5 – Apache Configuration

You can create a new Apache configuration file or edit Apache default virtual host configuration file 000-default.conf and update DocumentRoot to Laravel public directory as below. Update configuration as: Reload Apache configuration changes by restarting service using below command

Step 6 – Access Laravel Application

Finally, Laravel PHP framework has been successfully configured on your Debian 10 Buster Linux system. Access Laravel application in your favorite web browser as below:

Let’s start building an awesome application using Laravel PHP Framework. Happy coding!

How To Install Laravel on Debian 10   TecAdmin - 79