BREAKING NEWS

CEH

Linux

RedHat

Saturday, 7 June 2014

HOW TO INSTALL HTTP SERVER ON REDHAT ?


The hypertext transfer protocol (HTTP) was originally designed for transferring word wide web (www) documents and has been extended to transfer other types of files as well. Its most common use is transferring web pages between a web browser and a web server.


HTTP uses TCP port 80 by default.




Installing HTTP

Note: You must install yum before performing HTTP installation.

  • HTTP installing command

               #yum install http*
               #yum install httpd*

  • Navigating to http root directory and create an index.html file

              #cd /var/www/html
              #Cat>index.html
                       Welcome to the world of redhat
                       From Digesh Acharya

  • Configuring the httpd.conf file

               #vim /etc/httpd/conf/httpd.conf
                     #<virtualhost * : 80>
                        #serveradmin 192.168.122.3
                        #DocumentRoot /var/www/html
                        #servername 192.168.122.3
        #<virtualhost >

Note: You can give your own ip, this is only for example.


  • Starting http services
             #chkconfig httpd on
             #service httpd restart

After doing all this open up your browser and open http server ip.

Post a Comment

 
Copyright © 2013 DigTuts
Powered byBlogger