Page 1 of 1

Apache and PHP not working together

Posted: Wed Oct 11, 2006 9:34 am
by munkifisht
I am having terriable trouble getting Apache to run with PHP. I am using Apache V2.2 and PHP V4.4.4 and as far as I can figure I have followed all the instructions to the letter and I still am getting errors.

So far I have done the following:

Installed PHP binary and Apache to c:\php and C:\Program Files\Apache Software Foundation\Apache2.2
I have taken all DLLs from the DLL folder and the SAPI folder in the PHP dir and dumped them into the main PHP Dir
I have added the lines::
LoadModule php4_module "c:/php/php4apache2.dll"
AddType application/x-httpd-php .php
to the Conf file. I added them to the section with Loadmodule entries and Addtype entries respectively.
I also added
PHPIniDir "C:/php"
and taken it out.

It seems that when I atempt to restart Apache the server locks up for a second and and error "The Requested operation has Failed!" is displayed

I have also tried many combinations to get this right. I have tried going at it from scrach many times also.

Posted: Wed Oct 11, 2006 10:48 am
by volka
Did you download a php version built for apache 2.2?
php4apache2.dll from php.net is suitable for apache 2.0, not apache 2.2

Posted: Wed Oct 11, 2006 10:49 am
by RobertGonzalez
I have heard all sorts of screams and cries about Apache 2.2's inabilities to play nice with PHP. Can you move down to Apache 2.0?

Posted: Wed Oct 11, 2006 9:25 pm
by munkifisht
thanks guys, that worked. Surprising that 2.2 isn't backward compatiable