Overview

LAMP is a term that stands for Linux, Apache, MySQL and PHP. LAMP provides the basic service for the web hosting. Most website application like WordPress requires those services. This guide will list the command you need to use for LAMP installation in CentOS 7. All commands should be run in the Terminal unless specific required

Steps

Step 1 - Install Apache Service

Apache is a service that runs under Linux system to provide web service through HTTP. To install Apache, we use this command to install:

sudo yum install httpd

After installation finish, use this command to start the Apache:

sudo systemctl start httpd.service

Now your Apache service is running. To check if it is running, accessing http://localhost or http://[IP address] by Firefox. If Apache is working, Firefox would display a page with "Testing 123..." If you would like to start Apache on boot, please input this command:


sudo 

...

[ Read More ]