Archive for June, 2008

Apache 1.3 to 2.2 With PHP 5

Sunday, June 29th, 2008

We are upgrading Apache to 2.2. We have been using 1.3 because our vendor doesn’t support 2.2 yet, but it no longer made sense to stay with 1.3 when we didn’t need to for some applications. And the Windows authentication support has been more or less abandoned for 1.3.

Note that if you do need to stay with 1.3 for some reason and you are running mod_ntlm, you really need to look at installing this patch. A former co-worker made the original changes, which include AD support and fixing a couple issues that result in the username/password dialog popping up multiple times.

Anyway, I installed 2.2 on my dev server. I had to make a couple minor changes to get PHP working:

  • I am using mod_alias to create an alias that points at a directory in Subversion. I had to explicitly add a new Directory element for that Subversion directory, along with “Allow from all” to be able to use my alias.
  • Changed my LoadModule from php5apache.dll to php5apache2_2.dll in httpd.conf.
  • Added “AddType application/x-httpd-php .php” in httpd.conf.