How to install LAMP Stack on CentOS 7.3

May 31, 2017 | By | Reply More

CentOS Tutorial – This tutorial will guide you how to install LAMP Stack on CentOS 7.3 server. As you know LAMP is a collaboration between Linux, Apache, MySQL and PHP that provide a reliable web server to host your websites and also web applications. We also provide a video on each steps to make it easier for you.

System Configuration:

  • CentOS 7.3
  • Kernel 3.10.0-514.16.1.el7.x86_64
  • Dual core CPU
  • 1 GHz RAM

Steps to install LAMP Stack on CentOS 7.3

Step 1. Update System

As always, make sure our system is up to date.

Step 2. Install Apache Web Server

Use this command to install Apache web server on CentOS 7.3.

Next, run the httpd service

Now open a web browser and type the server IP address and make sure it show something like in the video below.

Example:

At this point, our Apache web server is ready.

Step 3. Install MySQL (Mariadb Server)

Now we will install MySQL or Mariadb server. This tutorial will install Mariadb instead of MySQL. MariaDB is a fork of MySQL and has the same functionality as MySQL Server. Use this command to install it

Start Mariadb

Secure Mariadb

Example:

Step 4. Install PHP

Command to install PHP on CentOS 7.3

Check PHP Version

Output:

Done. Now we have all LAMP elements installed on CentOS 7.3 Server. We are now ready to deploy some web applications on our CentOS 7.3 Server.

Tags: , , ,

Category: CentOS

Leave a Reply