Apache for Windows, comes with an easy installation from Apache
The first time, I try'ed it, I was using in Windows 98. At that time, it was not a problem to set up my own server.
I have been using Apache 2.2 in win 98,win xp 32, and win 7, and they have all worked just fine.
Using Tomcat, with Apache Server in front, is somewhat more difficult. You have to download Tomcat from Apache Org, include their connectors.
In my case, the two path's look something like this:
C:\Program Files\Apache Software Foundation\Apache2.2 C:\Program Files\Apache Software Foundation\Tomcat 6.0
Furthermore, You have to download the "mod_jk" redirector, so called, because all request to Tomcat, in my case, goes throug the Apache Server port 80
Apache comes with a default configuration. Thath is , if You type "localhost" or "127.0.0.1" in the browser URL, You aught to se the default response: "Welcome", or some other response. But please notice, if port 80 has been hijacked by some other program, You wil get get error message containing "error code 01" That is if You have installed "Skype" or You have not stoped the MS ISS service. Skype is using port 80 unconditionally, of course. So You have to choose, which to use. But You wil get get error message containing "error code 01" for many other reason's too. It all depends on a correct setup. Windows could not start the "servicename" on local computer. For more information, review the System Event log. If this is non-Microsoft service, contact service vendor, and refer to service-specific error code 1/4 etc. There is not that very help to find out ther in order to find an explanation. A proper set-up comes first.
In command prompt, You can type "ipconfig -all" . or just "ipconfig"
Connection-specific DNS Suffix . : IP Address. . . . . . . . . . . . : 192.168.0.xx Subnet Mask . . . . . . . . . . . : 255.255.255. Default Gateway . . . . . . . . . : 192.168.0.1
Proto Local Address Foreign Address State PID TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 1608
The pin number aught to be found in the Task Manager -> Show all Processes from all users
To find port :80 You have to type "netstat -an | findstr 80" but without "" The result should be something like this:
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING PID <- Apache Http TCP 0.0.0.0:8009 0.0.0.0:0 LISTENING PID <- Tomcat redirector/worker TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING PID <- Tomcat listener TCP 127.0.0.1:8005 0.0.0.0:0 LISTENING PID <- Tomcat shutdown TCP 192.168.0.12:1605 22.214.171.124:80 ESTABLISHED
Another command is:
Result not shown here, but here.
A final solution to regain Apache port :80, is
netsh http add urlacl url=http://+:80/Apache2.2 user=Users.name listen=yes
C:\Windows\system32>tasklist /fi "pid eq 4756"
Image Name PID Session Name Session# Mem Usage ========================= ======== ================ =========== ============ httpd.exe 4756 Services 0 15.184 K C:\Windows\system32>
Explanation: Line 1) and 5) belong to Apache, line 2), 3) and 4) belong to Tomcat.
If You also want to install PHP with Apache as well, make sure that the installation
point to "Apache/bin", NOT JUST "Apache"
This wil ensure a correct modification in the "httpd.conf" file. This file, "httpd.conf", can be found in the "Apache/conf" directory.
The lines, which point to php, should look somthing like this
In adition You might need some files in the binary directory. You can find a bundle of these DLL here as a ZIP
The "mod_jk.so" file,
should be copyed to the "Apache/modules" directory.
You also need to modify the "httpd.conf" file. Copy the following lines to the "httpd.conf" file, where the modules are activated. The section begin with LoadModule etc.
In order to use Tomcat, You have to add the following lines to the end of "httpd.conf" file.
Pay attention to the lines where Tomcat connector's are defined.
The line begin with "JkMount" followed by "/examples|/*" and "worker_name".
|Apache "httpd.conf"||Tomcat "uriworkermap.PROPERTIES "|
|JkMount   /examples|/*            worker_name||/examples/* =            worker_name|