hometocprevnextglossaryfeedbacksearchhelp

Table of Contents

Apache Web Server

Apache Web Server

Step 3 of the CSRC installation process is to install a Web server. CSRC operates with most Web servers. The following sections describe the installation requirements and the installation procedures for installing the Apache Web server that is distributed on the CSRC distribution media.

Step 3---Install Apache Web Server

Step 3 of the CSRC installation process is to install a Web server.

What You Will Need

To install the Apache Web server, you need the unzip utility installed and in your search path. For more information about unzip, see http://www.cdrom.com/pub/infozip/. You can download the Windows NT unzip executable from ftp://ftp.cdrom.com/pub/infozip/WIN32/unz540xN.exe.

Apache Installation Procedure

The CSRC distribution media contains an installation kit for the Apache Web server. To install this Web server for Windows NT for CSRC, perform these steps in a DOS command shell.

Step 1 Enter mkdir "C:\Program Files\CSRC".

Step 2 Enter cd /d "C:\Program Files\CSRC".

Step 3 Enter unzip -q CDROM\apache\NT\apache-install.zip, where CDROM is the mapped drive letter of the CSRC CD-ROM.

Also, be sure to refer to the information on the "CSRC Installation Worksheet" (Table 2-1):

What to Do After You Install Apache

After you install Apache, you must perform these tasks:


Note This section does not attempt to comprehensively document how to configure Apache. For the complete documentation, consult <
http://www.apache.org/docs/>.

Editing the httpd.conf File

After you finish installing the Apache Web server, decide which directory you are going to be installing CSRC to (for example, C:\Program Files\CSRC). Then edit the httpd.conf file as follows:

Alias /csrc/images/ "C:/Program Files/CSRC/images/"
<Directory "C:/Program Files/CSRC/images">
    Options Indexes Multiviews AllowOverride None Order allow,deny Allow from all
</Directory>
 
Alias C:/Program Files/CSRC/ "/opt/csrc/html/"
<Directory "C:/Program Files/CSRC/html">
    Options Indexes Multiviews AllowOverride None Order allow,deny Allow from all
</Directory>
ErrorDocument 404 /csrc/ur-redirect.html

Note The unix forward slash (/) syntax used here is correct. Do not substitute DOS style backslashes (\).

Running the Windows NT Apache Web Server

This section provides instructions on starting the Apache Web server, installing it as a Windows NT service, and removing it as a service.


Note You can run Apache either as a Windows NT service or from the command line. It is helpful to test the installation by running it as a command line utility. However for deployment, install Apache as a Windows NT service and configure it to start automatically upon reboot.

Starting the Apache Web Server

To start the server from the DOS command line on Windows NT, enter this command from the DOS command line.

"C:\Program Files\CSRC\apache\apache" -s
 

The server runs in the foreground in the window in which you started it until you type Ctrl-C.


Note Starting Apache as a service may generate a registry warning. This does not affect CSRC.

If you have installed the server in a location other than the default, you must specify the -d serverroot option to the server when starting it. Be sure to enclose the server root in double quotes if it contains spaces.

Adding the Apache Service to the Services Control Panel

To cause the server to start or stop automatically when the host is rebooted or shut down, run the following commands as the administrator of the machine:

"C:\Program Files\CSRC\apache\apache" -i
 

This procedure adds an Apache service to your Services control panel. You can adjust the parameters of that service; for example, you can specify the user under which it runs.

Removing the Apache Service

To remove the Apache service, enter this command.

"C:\Program Files\CSRC\apache\apache" -u


hometocprevnextglossaryfeedbacksearchhelp
Posted: Tue Nov 2 12:54:22 PST 1999
Copyright 1989-1999©Cisco Systems Inc.