PHP 4.2.1 and Apache 2.0.x

  • Post author:
  • Post category:Uncategorized

I had an adventure this morning to get these two programs to work together. I found documentation on the Internet that explained how to get PHP 4.2.0 to work with Apache 2.0, so I figured I’d try it out.
The problem I ran into was that I was supposed to add a line to apache’s loadmodule section in the httpd.conf file. I was supposed to point to c:\php\experimental\apache2filter.dll for the php4_module, but this file didn’t exist. I checked in the PHP zip file I downloaded to make sure it hadn’t somehow been missed in the unzip process, but it wasn’t there either.
To make a long story short, I downloaded the archive for PHP 4.2.0 (from php’s website, in the ‘archeological section’), and it had apache2filter.dll (along with a few other experimental dlls). After some more configuration, I finally had PHP up and running with Apache.