Install LAMP Stack on Ubuntu 20.04 (Focal Fossa)

Step 1: Update Ubuntu 20.04 (Focal Fossa)

As always it is recommended to keep the repository and packages up to date. Run the commands below to update your system.

sudo apt update && sudo apt -y upgrade

Step 2: Install Apache, MariaDB, and PHP

sudo apt install apache2 apache2-utils software-properties-common mariadb-server mariadb-client php

Step 3: Run the command below to secure your database server.

sudo mysql_secure_installation

Step 4: Install standard php extensions which are commonly used.

sudo apt install libapache2-mod-php php-cli php-fpm php-json php-pdo php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath

0 Komentar