Press "Enter" to skip to content

How to install httpd in linux/Centos

Rohit Bhurtel 0

CentOS

CentOS is a Linux distribution that provides a free, enterprise-class, community-supported computing platform functionally compatible with its upstream source, Red Hat Enterprise Linux. if you don’t have CentOS yet. Download Download latest CentOS.

Today,

We will learn how to install httpd or web proxy in the Centos.

Step-1:

To check either httpd installed or not, we will do as shown in fig 1.1:

yum -y list httpd

Step-2:

it says, ‘command not found’, this implies that httpd has not been installed in the centos. To install the httpd:

yum -y install httpd

it will install the httpd and shows the installed package.

Step-3:

To check the status of the httpd:

/etc/init.d/httpd status

It return the message – “ httpd is stopped”.

Step-4:

To start the service,

/etc/init.d/httpd start

Step-5:

To check the either web service and the webserver is currently running or not. We will use the Nmap.

nmap localhost

# it shows the all the service running such as http, my SQL and so on.

Note: port 80 and 440 should run during the service of http to run both web service and centos server i.e. 10.6.6.3 (McCool, 2014)

                                                                   Fig 2.1

 

 

 

 

 

Your Comments are highly appreciated !

%d bloggers like this:
Inline
Inline