How to Install the LAMP (Linux, Apache, MySQL/MariaDB and PHP)Stack on CentOS 7

The LAMP (Linux, Apache MySQL/MariaDB and PHP) is a combination of open source softwares that are mostly used for running websites which are written in PHP.
This article describes How to Install the LAMP Stack on CentOS7.

Step 1. Installing Linux OS: Following the article Howto Install Centos 7 Minimal Step by Step to install CentOS 7 minimal installation.

Step 2. Installing Apache: Follow the article Howto Install Apache/httpd Web Server on CentOS 7 to install Apache web server.

Step 3. Installing MariaDB: Follow the article Howto Install MariaDB Database on CentOS 7 to install MariaDB Database.

Step 4. Installing PHP: Follow the article Howto Install PHP 5.4 on CentOS 7 to install PHP on CentOS 7.

Step 5. Verification: Verify the installation as below:

[[email protected] ~]# cat /etc/centos-release

CentOS Linux release 7.7.1908 (Core)

[[email protected] ~]# httpd -v

Server version: Apache/2.4.6 (CentOS)

Server built:   Aug  8 2019 11:41:18

[[email protected] ~]# php –version

PHP 5.4.16 (cli) (built: Nov  1 2019 16:04:20)

Copyright (c) 1997-2013 The PHP Group

Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

[[email protected] ~]# mysql –version

mysql  Ver 15.1 Distrib 5.5.64-MariaDB, for Linux (x86_64) using readline 5.1

Done!!! LAMP Stack installation is done.

Leave a Reply