Apache is not automatically installed as a service for WindowsXP & Vista

to install the Apache service:

click on the "OSGeo4w" shortcut on your desktop

the OSGeo4W command window will open

type the following command:

apache-install.bat

you should see a message such as:

Installing the Apache OSGeo4W Web Server service
The Apache OSGeo4W Web Server service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
The Apache OSGeo4W Web Server service is starting.
The Apache OSGeo4W Web Server service was started successfully.

The apache-uninstall.bat and apache-restart.bat commands are also available to uninstall the service, or restart the server.

Administrative Privileges note

If you are using Vista or more recent, you may receive an error when trying to install the Apache service, such as:

>apache-install.bat
Installing the Apache OSGeo4W Web Server service
(OS 5)Access is denied. : Failed to open the WinNT service manager
The service name is invalid.
More help is available by typing NET HELPMSG 2185.

Starting with Vista, Windows made changes so that you must allow commands to run as administrator. To get around this, you should: