This brief tutorial shows students and new users how to install the LAMP stack on Ubuntu 20.04 | 18.04.
If you’re new to Linux or Ubuntu, one of the most popular acronyms in the Linux world that you should get used to is LAMP. It stands for Linux operating system, Apache webserver, MySQL database server and PHP processors.
LAMP is a stack of open source applications typically installed together to enable dynamic websites and blogs. WordPress and other content management systems depend on the LAMP stack to function.
This brief tutorial is going to show you how to install it on Ubuntu systems if you don’t already know how to.
Step 1 : Linux Ubuntu server
Assuming that Ubuntu server is the Linux machine we’re going to be using, your first step is to make sure you have root or administrative rights.
Then run the commands below to update the server.
sudo apt-get update
Step 2 : Install Apache2 Web Server
Your next task is to install Apache2 web server which is the most popular webserver in the world. We’ve covered it blog. The commands below shows you how to install Apache2 webserver on Ubuntu systems.
sudo apt-get -y install apache2
To learn more about Apache2, read the post below.
Step 3 : Install MySQL Database server
Next, install MySQL database server which is also the most popular database server used by most only websites and blogs. We’ve also covered installing MySQL on this blog. To install it on Ubuntu, run the commands below.
sudo apt-get -y install mysql-server mysql-client
To learn more about MySQL, read the post below.
Step 4 : Install PHP Modules
The final step is to install PHP and its’ modules. This completes the LAMP stack. The basic PHP packages can be installed using the commands below.
sudo apt-get -y install php libapache2-mod-php
However, some dynamic web applications require more PHP modules and must be installed. The post below shows you how to install PHP and other important modules.
The above steps are what required to install the LAMP stack on Ubuntu systems. After going through these steps, your Ubuntu systems will be ready to install and use WordPress and other popular CMS applications in used today.
Hope you like it!