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

The LEMP (Linux, Nginx MySQL/MariaDB and PHP) is a combination of open source software that are mostly used for running websites which are written in PHP.

This article describes How to Install the LEMP (Linux, Nginx, MySQL/MariaDB and PHP) 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 Nginx: Follow the article Howto install Nginx web server in Centos 7 to install Nginx 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] ~]# nginx -v
nginx version: nginx/1.16.1
[[email protected] ~]# mysql –version
mysql  Ver 15.1 Distrib 5.5.64-MariaDB, for Linux (x86_64) using readline 5.1
[[email protected] ~]# php -v
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
Done!!! LEMP (Linux, Nginx, MySQL/MariaDB and PHP) Stack installation is done.

Leave a Reply