Download
and Install the Apache Web Server
on
your Windows® Server
About This Guide
This guide describes how to download the
Apache Web Server version 1.3.14 from the CyberTeams site, and install
it on your Windows® server.
Audience
The reader should have a reasonable familiarity
with web server terminology, and specific knowledge of Windows and the
Apache Server. The reader should also be familiar with directory
structures and the server's installation options.
Apache Installation Worksheet
|
Worksheet Item Description
|
Worksheet Item Data
(value used during Apache Web Server
Installation)
|
| 1. |
<temporary download
directory> name for storing downloaded Apache software |
|
| 2. |
Apache Web Server <destination directory>
where the Setup Wizard installs the Apache Web Server software |
|
Contents
The following outline provides links to all
sections in these instructions:
1.
Create a Temporary Download Directory
Before you download your Apache web server
software, create a <temporary download directory>, and write down the
directory name as Item 1 on the Worksheet above.
2. Download the Apache Web Server
Now that your <temporary download directory>
exists, you are ready to download your Apache web server software:
-
Click [Download Apache Web Server for Windows]
to download the Apache installation program.
-
When prompted by your browser, navigate to
the <temporary download directory> name entered as Item 1 on the Worksheet
above, or prepend the full pathname of that directory to the download filename
-
Ensure that the Apache program filename ends
with a .exe file extension.
-
Click Save to start the download.
The Apache installation program downloads
into the selected directory.
Note: The installation program is approximately 2.7Mb in size.
3.
Install the Apache Web Server
Complete the following steps to install
the downloaded Apache web server software. These instructions assume you
are familiar with the Windows environment. |
| Step |
Action |
Additional Information |
| a. |
Use Windows Explorer to navigate
to
the <temporary download directory>
- see Item 1 on the Worksheet above. |
|
| b. |
In the right panel, locate the Apache
installation file named
apache-install.exe |
|
| c. |
Double-click on apache-install.exe
to install the Apache web server |
The install Wizard will step you through
the installation steps.
Important: Write down the
Destination directory where the Apache web server is installed under Item
2 on the Worksheet above.
|
| d. |
After the installation finishes, you can
delete the <temporary download directory> |
|
| 4.
Create the CGI Applications Parent Directory (cgi-bin) |
| Step |
Action |
Additional Information |
| a. |
Use Windows Explorer to locate
to the Apache web server <destination directory> (see Item 2 on
the Worksheet above) in the left panel, and click on the directory name. |
|
| b. |
Create a new folder named cgi-bin under
the Apache Web Server destination directory |
-
In the Windows Menu, click File
-
Position the cursor over New
-
Click Folder at the top of the dropdown
list to display a new folder named "New Folder"
-
Click once within the "New Folder" text area
to highlight the text
-
Replace the words "New Folder" by typing:
cgi-bin
|
| 5.
Configure Server Root Directory |
| The Apache server requires
modification of the httpd.conf
file before you install a version
of WSD.
Note 1:
Older versions of
the Apache web server put some configuration commands in files called access.conf
and srm.conf. If you cannot find the configuration commands
mentioned below in the httpd.conf file, look for them and make the appropriate
changes to the access.conf or srm.conf files. See Step 3 and 4 below.
Note 2: All directory references
in these instructions should use "forward" slashes (UNIX style) as directory
separators.
Note 3: If a directory contains
spaces (such as "Program Files"), the entire directory path must be enclosed
within quotes. |
5.1
httpd.conf
This file must be modified to configure
the port number that the Apache web server is to 'listen' on, and to add
your server administrator's e-mail address. This file must also be modified
to add the server's name if you are installing the server under Windows.
To locate and open this file, complete
the following steps: |
| Step |
Action |
Additional Information |
| a. |
Use Windows Explorer to locate to the
Apache web server <destination directory> (see Item 2 on the Worksheet
above) in the left panel, and click on the directory name. |
|
| b. |
Locate and click on the [+] to the left
of Apache to expand the sub-folders, then click on conf in
the left panel |
|
| c. |
In the right panel, locate and double-click
on httpd.conf to bring it up in your text editor |
|
| d. |
Complete the applicable steps in 5.1.1
through 5.1.3 below, then
Save the file when finished. |
|
5.2 Configure the Port
If the newly-installed Apache web server
is the only web server running on the machine, then the default port will
be 80, and no changes are required. If the new Apache web server is an
additional web server on your machine, then you can assign another port
for the Apache -- usually 8080. However, any port greater than 1024 can
be used.
Note: If you assign a secondary
port, URLs directed to the Apache web server must be in the following format:
http://<domain name>:<port number>/<page name>
To change the port, complete the following
steps: |
| a. |
Locate the following line: Port
80 |
|
| b. |
Change the port number (80)
on the "Port 80" line to the new port |
For Example: Port
8080 |
| 5.3 Add the Server
Administrator E-Mail Address |
| a. |
Locate the line that begins with Server
Admin |
|
| b. |
Change the e-mail address on the "ServerAdmin
you@your.address"
line to your Server Administrator's e-mail address |
Note: This should be the
address where notifications about server errors and other administrative
messages should be sent. For example:
ServerAdmin webmaster@enterprise.com
|
| 5.4 Add Server Name
(for Windows® 95, 98 and Me) |
| a. |
Locate the line that contains the following:
#ServerName new.host.name
|
|
| b. |
Delete the # character |
|
| c. |
Replace new.host.name with a value
of your choice. |
For example:
ServerName website.director.server
|
| 5.5
Make these additional changes to httpd.conf |
| a. |
Find the lines that contain the ScriptAliased
CGI Directory information. The first line will be:
"<Directory /Apache/cgi-bin>"
|
|
| b. |
Replace "/Apache/cgi-bin" to point
to the cgi-bin directory. For example: |
Note that if a directory contains spaces
(such as "Program Files") you must use quotes as indicated. |
<Directory "C:/Program Files/Apache
Group/Apache/cgi-bin">
|
| c. |
On the next line, change "AllowOverride
None" to "AllowOverride All" |
|
| d. |
Find the line starting with "#ScriptAlias". |
The line contains three parts:
#ScriptAlias <alias> <real
directory>
|
| e. |
Remove the # character. |
|
| f. |
Change the <real directory>
to the <destination directory> (see Item 2 on the Worksheet above) followed
by /cgi-bin/. |
See the example below (note that if a
directory contains spaces (such as "Program Files") you must use quotes
as indicated) |
|
For example: ScriptAlias /cgi-bin/
"C:/Program Files/Apache Group/Apache/cgi-bin/"
|
6.
Set Up Apache to Run as a Windows Service
If you are installing the Apache
web server on a Windows server, we recommend that you run the apache web
server as an "Automatic" Windows service. If you choose NOT to do that,
you will have to manually start the apache web server each time you want
to use WebSite Director.
Note: You may already have a
Windows Service shortcut named "Install Apache as Service" on your desktop.
If so, double-click on the shortcut and proceed to step c. below.
|
| a. |
Using Windows Explorer, go to the Apache
<destination directory> (See Item 2 on the Worksheet
above) |
If you are installing the apache web server
under Windows 95, 98 or Me, you will have to manually start the Apache
web server each time you use WSD.
For instructions on Manually Starting the
Apache web server each time you use WSD, see Section 7 below. |
| b. |
Execute/run the DOS program named apache.exe
with the parameter
-i
Note: You may run apache.exe
in a DOS window, or you may execute apache.exe from within Windows
Explorer. |
When the installation completes, a message
confirms installation.
-
Depending on your system settings, the DOS
window may close immediately following execution (you may not see the message)
or you may have to manually close the DOS window.
|
| c. |
Click Start on the taskbar, then
go to Settings and click Control Panel |
|
| d. |
In the Control Panel, click
Services |
|
| e. |
In Services, highlight Apache
Service and click
[Startup...] |
|
| f. |
Set the Startup Type to Automatic
and click OK |
|
| g. |
Click Apache Service to highlight
it,
and click [Start] |
The Apache web server base starts. |
7.
Manually Start the Apache Web Server
If you choose this method, you must manually
start the Apache Web Server each time you want to use it.
Note: You may already have a
shortcut named "Apache Server" on your desktop. If so, double-click on
the shortcut to start your Apache Web Server.
If you do not already have a shortcut, you
can create a batch file and launch it from a shortcut on your desktop as
follows:
-
Use notepad or another text editor to create
a new file with the following lines:
cd <destination directory> (from
Worksheet Item 2 )
start Apache -s
-
Save the file you have created using a meaningful
name (like "StartApache.bat") in the Apache <destination directory (Worksheet
Item 2 above).
-
Create a shortcut on your desktop to manually
start your Apache Web Server.
How to do this
-
Use Windows Explorer to locate the Apache
destination folder (Worksheet Item 2) in the left panel,
and click once on the folder name
-
In the right panel, right-mouse click on StartApache.bat
and select "Create Shortcut"
-
Left-mouse click once on the shortcut and
type a new name for the shortcut (example: "Start Apache Web Server"),
then press [Enter]
-
Position the house pointer over the shortcut,
hold down the left mouse button and drag the shortcut onto your desktop
-
Each time you want to start the Apache Web
Server you must double-click the shortcut.
|
|