How to install LAMP in Ubuntu

LAMP stack is a popular open source web platform commonly used to run dynamic web sites and servers. It includes Linux, Apache, MySQL, and PHP/Python/Perl and is considered by many the platform of choice for development and deployment of high performance web applications which require a solid and reliable foundation.

This tutorial explains the detailed steps to configure LAMP in Ubuntu server.

Step1: Add Apache repository

#add-apt-repository ppa:ondrej/apache2

Step2: Update repositories

#apt-get update

Step3: Install Apache

#apt-get install apache2

Step4: Add Mysql repository

#add-apt-repository -y ppa:ondrej/mysql-5.6

Step5: Update repositories

#apt-get update

Step6: Install Mysql

#apt-get install mysql-server-5.6

Step7: Add Php repository

#add-apt-repository ppa:ondrej/php

Step8: Update repositories

#apt-get update

Step9: Install Php7

#apt-get install -y php7.0

Step10: Install Php modules

#apt-get install libapache2-mod-php7.0 php7.0-mysql php7.0-curl php7.0-json

That's all.......

Leave a Reply