How To Configure HTTP Server In Linux

In This Tutorial We Are Going To Learn How To Configure HTTP Server In Linux

HTTP Server Is Also Known As Apache Server

Firstly Go In Linux Terminal Means {Command prompt Of Linux}

Here Now We Have To Install The Package Of Http

Here Is The Coading Of HTTP Server

# yum install Http* -y
# cd/var/www/html/
# ls {For Check The File And Folder IS Created Or Not}
# vim index.html {After Writing This Command We Have To Do The Coading Of Html}

  hy How Are you
  I Am Fine 

 After Writing This Command We Have To Go Back So First Press The Esc key Then Press :wq {wq means Save And Quit}

# cd {To Come Out From The folder Or File }
# vim /etc/httpd/conf/httpd.conf  {After Write This Command Scroll Down And Go In Last And Type}

 DirectoryIndex index.html
 DocumentRoot /var/www/html

# Service HTTP restart {After doing All The Coadings We Have To Restart The Service}
# Chkconfig httpd on
# Service httpd status {For Know The Status Of Service}
# ifconfig
# httpd -t
# Service httpd restart

Now Go To The Chrome Browser Of Your Windows And Searh With The Ip And See The Output

This Is How We Configure HTTP Server Or You Can Say Apache Server In Linux

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s