Posts

Showing posts from October, 2006

Installing PHP 5 with Apache 2.2 on Windows

You'll see in a previous blog that I got Apache 2 running with TomCat. Yesterday, I decided to intergrate PHP. Unfortunatley, I ran into pretty much the same issue as I ran into with associating TomCat with Apache: A DLL issue, which provides the error "The requested operation has failed" when attempting to start the Apache server. The trick to getting PHP working with Apache is that there are multiple DLL files provided with the 5.2 release of PHP. php5apache.dll php5apache2.dll php5apache2_2.dll The php5apache2_2.dll file is the DLL you want to use with Apache 2.2. Don't rename it, just point your httpd.conf file to it. You'll read in many places that these are the entries you need to add to your httpd.conf file: Put this line where you see a bunch of other LoadModule lines (leave the php5_module named just like this, even if you don't install PHP to a C:/php5 folder. The DLL file looks for the name.) LoadModule php5_module "C:/php/php5apache2_2.dll Put