How to install Apache web server on CentOS 7

February 10, 2016 | By | Reply More

I am a new fans of CentOS Linux. I am currently managing a CentOS 7 server on Digital Ocean cloud service. In order to improve the usability of my CentOS server, I want to add or use it as a web server. On this tutorial, I am going to show you how to install Apache web server on CentOS 7.

First, make sure you have root access to the system. Next, login using root locally or you can use program such as Putty (Windows) to connect to the remote CentOS system. Next we need to make sure the system is up to date.

yum update

Next, install Apache server with this command

yum install httpd

Next, start the httpd service

systemctl start httpd.service

At this point, your web server should be ready. Check if the httpd process is up and running

systemctl status httpd.service

You should see something like this

Screen Shot 2016-02-10 at 6.50.39 PM

Your website should be ready. Now open web browser and point to your CentOS IP address. You will see the default Apache page as follow:

Screen Shot 2016-02-10 at 7.48.54 PM

Tags: , ,

Category: CentOS

Leave a Reply