Apache Cheat Sheet
Installing the Apache HTTP Server on a Windows Server
The Apache HTTP server is always useful to have in a development environment, whether supporting Subversion or many other useful tools. Apache is distributed with and without the OpenSSL package bundled in. However, it is recommended that OpenSSL be installed separately so that it can be upgraded and otherwise maintained separately from Apache.
Windows Server 2008.
Apache HTTP Server 2.2.11.
Before installing Apache, gather the following information:
Network Domain: example.com
Server Name: winsrv.example.com
Administrator’s Email Address: email@example.com
Port Number: 81
Download the installer program and then run it.
At the welcome screen, click the Next button.
Accept the license terms, then click the Next button.
In the Read This First window, click the Next button.
In the Server Information window, enter the information collected above. Apache can be installed system-wide (as a service) or for the installing user only. Most likely, you will want to install Apache as a service. Click the Next button once you have entered the server particulars. Note: If you are using port 80 for another service (maybe for the IIS Web server) go ahead and choose the port 80 system-wide option and change the port being used once the installation completes.
In the Setup Type select the Custom option, then click the Next button.
In the Custom Setup window, select the components you wish to install (the defaults are probably fine), change the installation location if you want, then click the Next button.
Click the Install button.
The Apache configuration file is located in a directory similar to this:
C:\Program Files\Apache Software Foundation\Apache2.2\conf
Open the httpd.conf file with a text editor. Read through the file. You might want to make changes to some of the entries. For example, if you do not want to use port 80 for the Apache server then find the line that begins with Listen and change the port number from 80 to the port number you wish to use.
If you modified the file, save it and start Apache (Start → All Programs → Apache HTTP Server → Control Apache Server → Start).
Browse to the default page to make sure the server is working, for example:
The information displayed by this page can be changed by editing the index.html file in the directory similar to this:
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs
Read through the Apache documentation.
The Apache HTTP Server folder on the Start menu has some handy shortcuts for operating the server:
Monitor Apache Servers will place an icon in the system tray.
There are Start, Stop, and Restart commands in the Control Apache Server folder.
These three commands are also available by left-clicking the Apache icon in the system tray.
You can quickly get to the Apache Service Monitor by right-clicking the Apache icon in the system tray.
Now that you have Apache installed and configured, you might want to install some software that utilizes this Web server. For example:
CollabNet’s Subversion Server 1.5.5.