Page 1 of 1

PHP5 not working with Apache2.2

Posted: Sun Jun 07, 2009 11:18 am
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

Re: PHP5 not working with Apache2.2

Posted: Sun Jun 07, 2009 6:22 pm
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