• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
geekremark.com

Geekremark

Technology Updates & More

  • Home
  • About Us
  • Contact Us
  • Privacy Policy

How to Install LAMP Stack on Ubuntu Server

01/22/2022 by Akash Kumar

How to Install LAMP Stack on Ubuntu Server

The LAMP stack is a set of open-source software and it is widely used to create a dynamic website or web application. The term LAMP is an acronym which refers to its components: Linux operating system, Apache Web/HTTP server, MySQL database management system, and PHP Programming Language.

In this step-by-step guide you will find out how to install LAMP stack on Ubuntu 20.04 server with PhpMyAdmin.

Before moving forward to the installation steps please check into the prerequisites:

  • Installed Ubuntu 20.04 on the server
  • Have sudo-privileges
  • SSH/ Terminal access

STEP 1: Installing Apache

Apace is yet very popular, reliable, well documented open-source web/HTTP server software and Apache2 is the latest version of Apache. To install it run the following command on the terminal/ssh:

$ Sudo apt install apache2

STEP 2: Installing MySQL

In this step you will understand how to install MariaDB which is a fork of MySQL. It is a fast, popular and most cloud platform offers it.

Run the following command in the terminal to install MariaDB:

$ sudo apt install mariadb-server mariadb-client

STEP 3: Installing PHP

PHP is a general-purpose scripting language, it is an open-source and very powerful language for web development.

To install PHP on your server run the following command in the terminal:

$ sudo apt install php libapache2-mod-php php-mysql

STEP 3: Installing PhpMyAdmin

PhpMyAdmin provides a graphical user interphase for database management.  

For installation of PhpMyAdmin you will need to run the following command in the terminal:

$ sudo apt install phpmyadmin

Outcome form this guide : Now you will be able to install the LAMP stack on Ubuntu 20.04.

Filed Under: How to, Tutorials

Primary Sidebar

  • Email
  • Facebook
  • GitHub
  • Pinterest
  • Twitter
  • YouTube

More to See

All Rights Reserved © 2019