LAMP(Linux, Apache, MySQL, PHP or Perl) is one of the most essential servers needed by the web developers or web entrepreneurs around the globe. This tutorial explains one of the easiest ways to install LAMP on Ubuntu. Because Ubuntu uses Linux as it’s kernel we are done with the Linux part 😉 .
Install tasksel on your system:
$ sudo apt-get update && sudo apt-get install tasksel
Tasksel is a Debian/Ubuntu tool that installs multiple related packages as a co-ordinated “task” onto your system.
Start tasksel from the command line:
$ sudo tasksel
A terminal dialog is opened as shown above. Select “lamp-server”(use the Tab key to move around and hit Space to select). Finally navigate to <ok> using the Tab key again and press Enter.
Download and configuration process will be started for the lamp-server. And then Follow the steps to create your Mysql password. Wait to complete installation.
Finally, start apache2 server:
$ sudo service apache2 restart
Congratulations you have successfully installed LAMP server on your system. To test just visit your web browser and type in the following url,
To test the php installation,
$ sudo nano /var/www/phptest.php
<?php phpinfo(); ?>
and open the following url in your browser,