How to setup Laravel in Kali Linux 2 Step By Step

In this tutorial , I will tell you how you can install and configure your development environment for the php framework Laravel.

Step 1: If php is not installed , Install PHP

Step 2 : Install Composer

Step 3:  Once Composer is installed !

 Move composer

sudo mv composer.phar /usr/local/bin/composer

Step 4: Now you can run using the command


Step 5: So to install laravel

composer global require "laravel/installer"

$cd .composer/vendor/bin

$ ./laravel

$ This command runs laravel.

Step 6: To make this executable

sudo nano /etc/profile

Add to the end of the file

export PATH=$PATH:~$HOME/.composer/vendor/bin

Press Ctrl-O to save and Ctrl-X to exit.

source ~/.bashrc

To check if it works


Step 7: If it shows unhandled exception

sudo apt-get install php7.0-zip

This should install the new zip

Step 8:

Install these extensions

sudo apt-get install php-mbstring
sudo apt-get install php-dom

Step 9: Create new project using command

laravel new blog


composer create-project --prefer-dist laravel/laravel blog

Step 10 : Run the server

cd to your project dir , then run

php artisan serve

This will open the website in

Enjoy !