How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu

LAMP this term is actually an acronym which represents the 

  • Linux operating system
  • Apache web server.
  • MySQL database to store the data.
  • PHP to process the dynamic data.

1. Install Apache

sudo apt-get update
sudo apt-get install apache2

We are using sudo command thats why it will ask you for password.
Set Firewall to Allow Web Traffic

sudo ufw allow in "Apache Full"

2. Install MySQL

sudo apt install mysql-server

3. Install PHP

sudo apt install php libapache2-mod-php php-mysql


Leave a Reply

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