How to install LAMP on Ubuntu (Linux/Kali Linux)?



LAMP -
  • Linux
  • Apache
  • Mysql
  • Php
Install Lamp

Open your  terminal  (ctlr +alt +t)
sudo apt-get update
sudo apt-get upgrade
After that

Install Apache2
sudo apt-get install apache2

Install Mysql Server
sudo apt-get install mysql-server
 During Mysql installation, you need to type mysql username and password.
Password not mandatory.

Install PHP5
sudo apt-get install php5 libapache2-mod-php5

lamp installation has been completed.
Restart the apache server

Restart Apache2
sudo /etc/init.d/apache2 restart
Now open your browser  and type in your browser address bar 
localhost 
Output will be like below (In most case)

It works!

This is the default web page for this server.
The web server software is running but no content has been added, yet.

Oldest

2 comments

Click here for comments
Anonymous
admin
July 27, 2015 at 10:43 AM ×

How to install phpmyadmin on Ubuntu?

Reply
avatar
Anonymous
admin
July 27, 2015 at 1:28 PM ×

Useful information...!

Reply
avatar