Install LAMP on Ubuntu in one command

LAMP stands for Linux, Apache, MySQL and PHP. According to Wikipedia

LAMP is a solution stack of free, open source software. The acronymLAMP refers to the first letters of Linux (operating system), Apache HTTP Server, MySQL (database software, but now sometimes MariaDB) and originally PHP (but now sometimes Perl or Python), principal components to build a viable general purpose web server.[1]

If you want to have a web server running on your Linux box with Ubuntu installed, all you have to do is type the following command line in the terminal

sudo apt-get install lamp-server^

“sudo” is used here to get root privileges, as the installation process of LAMP solution stack requires root privileges (if you are executing this command while logging in as “root” then there is no need to add it to the command). “apt-get install” grabs & installs the software bundle of LAMP Server by the Advanced Packaging Tool (APT).

Don’t forget to add the “^” at the end of the command! As missing it out will result in the failure of the operation 😉

Complete the process, and you’ll have a web server running in a very short span of time!

Still having issues installing it? Check out the following video

Test your server by visiting to the following address your web browser


If you saw the following page


Then it works just well!!!

Great, one bonus command as you have completed the previous one!

Want to get PHPMyAdmin to create, configure, maintain and delete your MySQL databases? install phpmyadmin!

sudo apt-get install phpmyadmin

Moments and you’ll have your PHPMyAdmin up and running along with your server 🙂

Leave a Reply