How to Install LAMP Kali Linux Easy Guide

January 18, 2015 | By thelinuxevangelist | Filed in: Tutorial.

LAMP Kali Linux Installation Guide

Hello Kali User! This Linux Tutorial Shows You Step-by-Step How-to Install LAMP Kali Linux 2016+ Desktop.

And now the LAMP Stack for Kali Linux is composed by: Apache, MySQL & PHP 7.

Because LAMP is a de facto Web Development Standard. And, the products that make up the LAMP stack are included by default in nearly all Linux distributions.

Install LAMP Kali Linux - Featured
  1. First Open a Terminal Shell emulator window
    (Press “Enter” to Execute Commands)

    Install LAMP Kali Linux - Kali Open Terminal
  2. Then to Install the LAMP Stack

    sudo apt install apache2 php mysql-server php-mysql

    If Got “User is Not in Sudoers file” then Look: Solution

  3. How-to Enable Apache2 mod_rewrite Module on Linux Kali

    Enabling Apache2 Rewrite for Kali
  4. Finally Installing the PHP 7 Module for Apache

    sudo apt install libapache2-mod-php

    Please note that this package ONLY works with Apache’s prefork MPM, as it is not compiled thread-safe.

  5. Testing LAMP WebServer Installation

    cd /var/www/html

    Create a PHP Info file:

    sudo touch info.php
    sudo chown www-data:www-data info.php
    sudo nano info.php

    If Got “User is Not in Sudoers file” then Look: Solution


    Ctrl+x to Save & Exit from nano Editor ;)
    Open on Browser the URL:


    Install LAMP Kali Linux - PHP Info
    You should Successfully see the PHP Info notice :)

  6. How-to Create an Apache 2 Virtual Host on Linux Kali:

    Debian Apache2 Virtual-Host Quick-Start

Tags: , , , , , , , , , , , , , , , , , , , , ,