PHP5 not working with Apache2.2

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
kimberly
Forum Commoner
Posts: 31
Joined: Tue Apr 21, 2009 12:48 pm

PHP5 not working with Apache2.2

Post by kimberly »

Hi all,

I am trying to get back to a working environment!
I've got Apache 2.2.11 and PHP 5.1.4
I used the installers for both.

but PHP is not working.
http://localhost/ says "It's working"
but http://localhost/hello.php says 404 page not found.
hello.php is my phpinfo() page, it sits here: C:\Program Files\Apache Group\Apache2.2\htdocs\

There is another file: C:\Program Files\Apache Group\Apache2.2\hello.php, which if I put in the address, it first just shows me the source of the file. F5 makes it processes the html but the php code is ignored.

My PHP install is in c:\php, and I've added that dir to my path.
I've added these lines to the end of httpd.conf:
LoadModule php5_module "C:/PHP/php5apache2.dll"
PHPIniDir "C:/PHP"

Please help?

thanks,
Kimberly
wyrdaebrithil
Forum Newbie
Posts: 2
Joined: Sun Jun 07, 2009 3:59 pm

Re: PHP5 not working with Apache2.2

Post by wyrdaebrithil »

use php5apache2_2.dll not php5apache2.dll
the _ is just like a dot, you arent loading it for the correct version of apache
Post Reply