Install LAMP in Ubuntu


LAMP is acronym for Linux (operating system), Apache HTTP Server, MySQL (database software), and PHP, Perl or Python.

Its bit hard task to install right combination versions of all software’s, so would suggest to install LAMP with  tasksel which will take care of version compatibility all required software’s.

To install LAMP run following commands with sudo or as root user:

$ apt-get install tasksel

$ tasksel install lamp-server

While installing with above command in between it asks for mysql root password.

After completing installation add following test in /var/www/info.php file.


To test open url http://hostname/info.php which will show all dependent module details.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s