How to install LAMP stack with phpMyAdmin in Ubuntu Server

LAMP stack is a set of open-source software which are used together to host a web application or website on the internet. The acronym of LAMP stands for LinuxApache, MySQL, and PHP.

  • Apache is a widely used and secured server it is well documented and easy to use, 
  • MySQL is an open-source relational database management system, 
  • and PHP is a widely-used general-purpose scripting language. 

Because we are using MySQL we will also install phpMyAdmin, with this we can handle administration tasks, including creating a database, running queries, and adding user accounts very easily. 

phpMyAdmin is a widely used, open-source administration tool for MySQL and MariaDB. With phpMyAdmin installed on your server, you can handle the database of your server very easily.

In this step-by-step tutorial, I will explain how to install the LAMP stack with phpMyAdmin on a Ubuntu Server.


In order to complete this tutorial, you will need a Ubuntu server(Minimum Ubuntu 18.04), Access to the server via SSH (if you don’t have direct access), and a sudo-enabled user account with a basic firewall.

STEP 1: Install Apache Web Server