ERIC BRUHN

Network Applications and Network Applications Lab

Setting up a Web Server

 

[Back to Procedures]

[Home]

Setting Up a Web Server

  • Step 1: Making sure Apache is Installed - Terminal

    type this at the prompt:
    rpm -qa | grep httpd

    If it is working you be returned something like this:
    redhat-config-httpd-1.0.1-14
    httpd-devel-2.0.40-16
    httpd-2.0.40-16
    httpd-manual-2.0.40-16

  • Step 2: Editing httpd.conf - gEdit

    Edit httpd.conf in the folowing directory(you need to be logged in as root to do this):
    /etc/httpd/conf/httpd.conf

    Change the following lines:
    #ServerName new.host.name:80 to ServerName new.host.name:80
    ServerAdmin root@localhost to ServerAdmin youemail@yourprovider

  • Step 3: Start the httpd server - Terminal

    Type the following: /etc/init.d/httpd start
    If all goes well, this message should appear: Starting httpd: [ok]

  • Step 4: Set httpd server to start every time you boot your system - Terminal

    Type the following: chkconfig httpd on

  • Step 5: Make sure the web server is working - Mozilla

    Open Mozilla, and type in http://localhost/ or type in http://youripaddress

[Home] [Procedures] [Reading Notes] [Back to Top]

Questions or Comments? Click here to email me.