Before we proceed with the LAMP server installation, I strongly advise that you download and install the updates for your Ubuntu. If you’re already done with this, then disregard my suggestion.
Also, make sure that you can connect to the internet.
Install LAMP server by typing this in your terminal:
Along the installation process, it will prompt you for your MySQL password. After that, it will finish the installation all by itself.
1) Verify that apache2 was successfully installed.
Using your favorite browser, type
and what should appear is something like this:
This is the default web page for this server.
The web server software is running but no content has been added, yet.
2) Verify that PHP5 was successfully installed.
Open your terminal, then type the following command:
Then in your browser, type
If the details of your PHP came up, then it is successfully installed.
1) Install PHPMyAdmin
Install it by typing this in your terminal
1) Enable rewrite apache module
Enable it by typing this in your terminal
That’s all I can think of as of the moment. If you have other optional things that you will do after installing your LAMP server and is not included here, feel free to comment below and I will gladly update my post to reflect your suggestion.