Monday, March 10, 2008

How to add and remove apache server as a WinNT service

I plan to deploy my new application in appache server,but I don't want setup as default (for all users) configuration.I just want to this service only for me .so when I finished setup.I do following setup.
open the directory of apache installed.then type following command.
>>httpd -k install
then apache server be installed as a windows service.And we also can saw it in apache monitor,it's easily to maintain now.In the other hand ,if we need remove it from windows service.type following command
>>httpd -k uninstall.
and start apache with command
>>httpd -k start.
and stop apache with command
>>httpd -k stop.
and restart apache with command
>>httpd -k restart.

No comments: