Apache and PHP not working together

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
munkifisht
Forum Newbie
Posts: 14
Joined: Wed Oct 11, 2006 9:15 am

Apache and PHP not working together

Post 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.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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?
munkifisht
Forum Newbie
Posts: 14
Joined: Wed Oct 11, 2006 9:15 am

Post by munkifisht »

thanks guys, that worked. Surprising that 2.2 isn't backward compatiable
Post Reply