In this post I will be showing you how to install a LAMP stack (Linux, Apache, MySQL, and PHP) server on Ubuntu.
Step 1: Update Repositories:
Step 2: Install LAMP Package Group
If you are running the desktop edition of Ubuntu then you can test your LAMP stack by visiting 127.0.0.1 in Firefox or if you are running Ubuntu Server edition by running the following command:
To start, restart, and stop the Apache service enter one of these lines, by default it will start.
Start Apache Service:
Restart Apache Service:
Stop Apache Service:
If you want to install phpMyAdmin then just run the following command:
You can test your new install by running:
Ubuntu’s web directory and default index.html file is located in /var/www/html/.
I hope you all enjoyed this short and easy tutorial, more are always on the way so please don’t forget to share and like! Thanks!