Saturday, October 27, 2007

Running Apache as a service on Windows

To install Apache as a service on Windows browse to the Apache Flder through the command line and enter the following command

apache -i -n "Service Name"

Service Name is the name of the service that you want to give it.

To name it Apache enter the following command

apache -i -n "Apache"

Quotes are required if the Service name that you want has blank space(s)

if it succeeds test it with the follwing command to start the service. from next time the Service will start when the windows starts.

apache -n "Apache" -k start


Have fun, no extra window opened all the time to annoy you and no pain of having to start the Apache web server each time you boot your system

For further documentation visit http://httpd.apache.org/docs/1.3/win_service.html

No comments: