Apache Windows Install

Running IIS and Apache on the same server

| | |

You can not have two services offered on the same ip and port numbers.
On the same server, different services (IIS and Apache) need a unique IP/Port combination.

1) IIS might be binding to all ips on port 80. This has been the standard behavior of IIS since many years. So to run Apache with IIS, you first need to make sure IIS does not bind (i.e. listen) on all ips. The following article will help you disable IIS 6 from automatically binding to all ips on the Windows 2003 Server.

Before IIS6 (i.e IIS5), you simply had to set the metabase property "DisableSocketPooling" to true (and that was it).
For details on doing this see: Disable socket pooling on IIS5

Manual upgrade of Apache 2

1) Download latest version of Apache (see Apache Binaries)

2) Install Apache on a development PC/Server.
We will then manual upload the Apache files to your production server with FTP or other protocol.

3) Uninstall old Apache service (for details see Install Apache as a Windows Service)
apache -k uninstall -n "MyServiceName"
or
httpd -k uninstall -n "MyServiceName"

Running Apache + PHP + Accelerators under Windows 2003

| | | |

I have been getting some instability running Apache with PHP + Accelerators under Windows 2003. I will log my finds in this article. Visit regularly for updates. I ended up running 7 Apaches on a Windows 2003 Server to test all different kinds of configurations. Recently because it was becoming complex, I started logging my finds. This page is probably for the hardcore debugging type...

Mitigating factors:
- Most crash seem to happen because of load (with very low traffic you might never experience problems).
- My PHP applications are very demanding. Especially Gallery2 which relies on external libraries for processing images. Again other PHP applications might not experience these problems.
-If you have issues with IIS, these finding might also be applicable.

Apache Binaries and other integrated distributions

|
To better understand your distribution of Apache, see: What modules was your distribution of Apache built with?

Apache Install on Windows: Overview


Apache.org official distributions of their latest versions Apache Windows Binaries.

Apache Install on Windows: Overview

1) Get a copy of the binaries for Windows.
Official Apache for Windows 2.2.2

To get other Windows compiled distribution of Apache 2.x.x see: Apache Binaries and other integrated distributions

Note: I was getting some memory errors when running the ApacheLounge 2.2.0 distribution. At this point, if relatively new to WAMP, I recommend using the official Apache.org distribution.

2) Copy those binaries in a folder like e:\Apache220

I prefer the manual installation, so I installed the Apache distribution on a "test" machine (following the installation wizard) and upload the "Apache" folder to the production server.

Install Apache as a Windows Service

From the "bin" folder of your Apache install folder run the command:
apache -k install -n "MyServiceName" -f "c:\YourPathTo\httpd.conf"

If you skip -n "MyServiceName" it will default to Apache2.
If you skip -f "c:\YourPathTo\http.conf" it will default to "conf\httpd.conf", relative to were apache.exe (or httpd.exe) is located.

Create a local account for running the service

You should first get Apache working running the service under "Local System" and then switch to this more restricted account. If you are trying to troubleshoot permission issues go back to running the service under "Local System" to see if it works.

Apache Links and Docs

Syndicate content