Installing LAMP stack on Ubuntu

Reading Time: < 1 minute

When we work on Ubuntu in case of need of LAMP stack we programmers always take the hard way to individually install, setup and configure components like Apache PHP MySQL. One of the greatest things with Ubuntu is that we are able to install LAMP stack with one command line!!! So let us get started towards the procedure/

First of all update your system

sudo apt-get update && sudo apt-get upgrade

Here is the command line comes, the below execute the command and lie back wait till all of necessary packages are downloaded installed and well configured

sudo apt-get install lamp-server^

During the installation you will be asked to set up the root password for MySQL, enter your credentials and let Ubuntu configure the rest for you. After all you will have Apache, MySQL and PHP installed and configured on your Ubuntu