How to install LAMP stack web server on Ubuntu 20.04 Step 1: Preparing your Ubuntu server. To begin with, you need a cloud server to run the LAMP stack software. ... Step 2: Installing and testing Apache2. ... Step 3: Installing and testing PHP 7.4. ... Step 4: Installing and securing MariaDB. 22 May 2022