In this tutorial I will teach you how to install LAMP (Linux, Apache, MySQL and PHP, Python or Perl) server over your Ubuntu desktop in 3 easy steps. This is handy if you’re only planning to use it for testing web applications because you already have the graphical user interface provided by the Ubuntu desktop environment.
Step 1: First we need to install the complete LAMP server package. There are other ways to do this, but this is my favorite. Open your Terminal by going to Applications → Accessories then type:
$ sudo apt-get install lamp-server^
NOTE: See the caret (^) symbol at the end of the command line? This is not a typo. It is required to make the command work.
The entire process is very straightforward and self-explanatory so I’m sure you will get the hang of it.