APACHE.HTM   D.B.H  17/3/2003

 

 

APACHE SERVER RUNNING ON LINUX QUICK CONFIGURATION NOTES.

  

                

 

 

START READING HERE **************************************

 

 

 

VERY FIRST CHECK network configuration

                         & /etc/rc.d/rc.inet1  (put in ip number )

                         /etc/hosts

 

 THIS FILE IS VERY ENTRY CRITICAL   /etc/hosts !!!!!!

 

                   entry must be "SECOND" line after local 127.0.0.1

 

                   must be three fields long !!!!!!!

 

                  (ip no) XXX.XXX.XXX.XXX    net1.org.uk      net1

 

 

 

              /etc/HOSTNAME net1.org.uk

 

 

    IE YOUR HOME ADRESS IP NUMBER AND NAME NUST BE

    IN ABOVE 3 STRING FORMAT OTHERWISE APACHE / HTTPD / WONT

                   WORK !!!!!!!!!!!!!

 

 

 

     at boot rc.httpd   starts up http   deamon 

               this file should be OK !! dont edit

 

 

       /etc/apache/httpd.conf   this is the configuration for

        httpd  application and apache edit as required ...

 

         ServerAdmin 199.1.1.80     ( ip number here )

         ServerName net1.org.uk

 

 

 

      /usr/sbin/apachectL   (apache control file)

             should work OK !! but edit if required

 

               

 

     AT BOOT UP APACHE SHOULD RUN AND STARTUP SCREEN STRING BEFORE LOGON

     SHOWS THIS IS OK !!

      

      Command  dmesg

     

 

 

       to test  xwindows / netscape  set address in browser  

        window to http://127.0.0.1 (local port for http)

 

          apache manual page should show in browser !!!

 

 

 

 

 

 

 

 

 

 

 

 

 

    FIRST CHECK /etc/rc.d/rc.httpd   start up for apache!!

             

          /usr/sbin/apachectL   status    (to test config)

 

         /etc/apache/httpd.conf   edit !!!

     

 

 

  CONFIGURE APACHE .......

  MODIFY WITH EDITOR THE FILE   /etc/apache/httpd.conf

 

 

       #set the port for Apache to use

      

       port 80

    

      

 

       setup the Apache to display some files to browser clients like Linux HOWTO’s

      

       DocumentRoot "/usr/doc/Linux-mini-HOWTOs"

 

       <Directory "/usr/doc/Linux-mini-HOWTOs">

 

       #both the above must have the same file path name

 

       #controlling client access to readonly

       #comment out the following instructions

 

       <Directory "/path to directory of httpdocs">

          all the stuff below here !!!!!

 

 

       SHOULD RUN OUT OF THE BOX BUT MAY CLASH WITH SAMBA PORT!!

 

 

      

 

 

        reboot and connect from another machine using a web­        browser like Netscape ..

 

 

 

 

Hosted by www.Geocities.ws

1