Apache Logo

Fast Track to Web Service

  1. Get the source code:

        ftp://www.apache.org/apache/dist/ 
        http://www.apache.org
    

  2. Extract the source:

        gunzip -dc apache_1.2b6.tar.gz | tar xvf -
    

  3. Move to working directory:

        cd apache_1.2b6
    

  4. Read fine documentation:

        more README
    

  5. Move to source code directory:

        cd src
    

  6. Read more fine documentation:

        more INSTALL
    

  7. Copy configuration template:

        cp Configuration.tmpl Configuration
    

  8. Run configuration script:

        ./Configure
    

  9. Build executable:

        make
    

  10. Create local configuration files:

        cd ../conf
        for i in `ls *-dist`
        do
            cp $i `basename $i -dist`
        done
        vi httpd.conf srm.conf access.conf
    

    At a minimum you will have to edit the following:

    httpd.conf
    ServerAdmin matthew@bluenote.local-linux.net
    ServerRoot /tmp/web
    srm.conf
    DocumentRoot /tmp/web/htdocs
    Alias /icons/ /tmp/web/icons/
    ScriptAlias /cgi-bin/ /tmp/web/cgi-bin/
    access.conf
    <Directory /tmp/web/htdocs>
    <Directory /tmp/web/cgi-bin>

  11. Create Web Server directories:

    mkdir -p /tmp/web/{bin,conf,logs,icons,cgi-bin}
    

  12. Copy core files to directories:

    cp *.conf mime.types /tmp/web/conf
    cp ../src/httpd /tmp/web/bin
    cp ../icons/* /tmp/web/icons
    

  13. Launch Web Server

    /tmp/web/bin/httpd -f /tmp/web/conf/httpd.conf
    

A Closer Look at Configuration


Last Modified: 17 February 1997

St. Louis Unix Users Group - Linux SIG