How To Install LAMP in Ubuntu

Step-by-step instructions on how to install LAMP (Linux Apache MySQL PHP) in Ubuntu.

Before we start, it’s best to do an update:


Install the webserver.


Install PHP5 along with it’s apache module.


Install MySQL along with it’s php and apache modules.

Then restart the server with:

Alternative, you can ignore everything above and just run the following commands:

Presumably, it just installs the same things, only with less typing copy pasting.