20 | | * Apache is not automatically installed as a service |
21 | | * to install the Apache service, run the apache-install.bat script from the OSGeo4W commandline. |
22 | | * The apache-uninstall.bat and apache-restart.bat scripts are also available to uninstall the service, or restart the server. |
| 22 | * Apache is not automatically installed as a service for WindowsXP & Vista |
| 23 | * to install the Apache service: |
| 24 | * click on the "OSGeo4w" shortcut on your desktop |
| 25 | * the OSGeo4W command window will open |
| 26 | * type the following command: |
| 27 | {{{ |
| 28 | apache-install.bat |
| 29 | }}} |
| 30 | * you should see a message such as: |
| 31 | {{{ |
| 32 | Installing the Apache OSGeo4W Web Server service |
| 33 | The Apache OSGeo4W Web Server service is successfully installed. |
| 34 | Testing httpd.conf.... |
| 35 | Errors reported here must be corrected before the service can be started. |
| 36 | The Apache OSGeo4W Web Server service is starting. |
| 37 | The Apache OSGeo4W Web Server service was started successfully. |
| 38 | }}} |
| 39 | * The ''apache-uninstall.bat'' and ''apache-restart.bat'' commands are also available to uninstall the service, or restart the server. |
| 43 | If you are using Vista or more recent, you may receive an error when trying to install the Apache service, such as: |
| 44 | {{{ |
| 45 | >apache-install.bat |
| 46 | Installing the Apache OSGeo4W Web Server service |
| 47 | (OS 5)Access is denied. : Failed to open the WinNT service manager |
| 48 | The service name is invalid. |
| 49 | |
| 50 | More help is available by typing NET HELPMSG 2185. |
| 51 | }}} |
| 52 | |
| 53 | Starting with Vista, Windows made changes so that you must allow commands to run as administrator. To get around this, you should: |
| 54 | * right-click on the "OSGeo4W" shortcut on your desktop |
| 55 | * click on "Run as Administrator" |
| 56 | [[Image(ticket:145:runas.gif, nolink,title="")]] |
| 57 | |