2008年12月25日 星期四

Apache: How to make an Installation-Free Apache? (Green Version Apache)

The original article is from http://blog.xuite.net/coke750101/networkprogramming/19554723

I just want to make my own knowledge base so I can read it later in case I forgot. It's mostly I'll forget. (>_<)

After you have install Apache on your system and you want o build another Apache web server on another system with the same or similar settings. Do the following step:

Copy the the Apache to your new system, better with the same path as the original system so you won't need to modify the http.conf. E.g. C:\Program Files\Apache Group\Apache2 <== This is the path of original sytem

copy the directory Apache Group from original system into new system.

In command mode:

Go to the bin directory of Apache

I.e. C:\Program Files\Apache Group\Apache2\bin>

Run Apache -k install <==This will install Apache as a service.

Then run Apache -k start <== This will start Apache web service

To stop, run Apache -k stop

To uninstall the service, run Apache -k uninstall

沒有留言: