Laravel Installation/Setup in Linux

In this article i a going to explain how to do Laravel Installation/Setup in Linux environment. Laravel is a very popular framework, used for developing Web applications and it’s the current trend.
So, Let’s start with some basic installations. Before, Installing/Set upping Laravel, we need a working/development php environment. If you are not set upped it yet, go through the basic installations.

Basic Installations

Apcahe Installation

For more detailed installation procedure and troubleshoot use the link : Install Apache MySQL PHP and PHPmyadmin
Mysql Installation

You can find detailed installation procedure in this link : Install Apache MySQL PHP and PHPmyadmin
PHP Installation

Other useful tools/Not necessary for Laravel setup

Git Installation

Curl Installation

Vim Installation

Laravel Installation

OK.Now we have done all the basic/necessary installations.
Let’s start with Laravel Installation

Composer Installation

Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.
To install Composer, open a terminal and type (curl should be installed,if you are not installed curl, i have explained it above)

Laravel project can be created in two ways via Laravel Installer and Via Composer

To install Via Laravel Installer use this

Now, setup the project and give permissions

To install Via Composer Create-Project use this :

Also, you can give the folder name as this

Now, give permissions to the storage folder

Note:If you don’t give permissions, you can’t see the default Laravel home page,Also, do this always when you checkout a project from Git/anywhere.

To Setup Virtual host to your Laravel project

Create a Apache configuration file and edit it with the Virtual host configurations

Add the Lines to configuration file, with appropriate changes

Now, edit he host file and add the new local domain

Add the Lines to configuration file, with appropriate changes

Now, enable the configuration and restart apache web server.

Now, type the in your web browser to see the default Lavarel home page.

Leave a Comment

Your email address will not be published. Required fields are marked *