Page 1 of 1

Having an Issue with PHP 5.1.4 Apache 2.2.2 and Windows XP

Posted: Wed Jun 28, 2006 9:21 pm
by irishmike2004
I have tried and tried to get the module to work. I downloaded the PHP (zip version) the Apache server and also there is MySQL 5 series on the box.

I unzipped PHP to a directory in Program Files (called php5) and basically tried to restart and apache and get the "request failed"... when I look at my event viewer (applications) log -- it says it can not load the module because it was not found?

Any ideas on what i am missing here?

My Apache config file has the following lines in it righ beneath the other LoadModule lines:

# Enable PHP5
LoadModule php5_module "C:/Program Files/php5/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/Program Files/php5"

And the files are installed to Program Files/php5 and the DLL does indeed exist there.

I am so lost as to why Apache can not see the file?

Just confirmed that indeed Apache is fine as long as those above lines are commented out. Add them back.. error.


Thanks,

Posted: Thu Jun 29, 2006 4:36 am
by timvw
AFAIK, You need apache2.0.X instead of apache2.2.X

solved this

Posted: Thu Jun 29, 2006 10:28 am
by irishmike2004
Found a package called XAMPP for Windows that has everything configured. This solved the problem and of course, I being of curious mind went into the config files to see what they did :-)

FYI: They used the Include function of Apache 2.2.2 and moved the handler (php5apache2.dll) into the Apache/Bin directory. I assume doing this on a regular install would also work, but why back off the install just to try it! I now know this for the future :-) Anyhow, I now have a working WAMP installation using Apache 2.2.2, PHP 5.1.4, and MySQL 5.0.x.

Posted: Thu Jun 29, 2006 3:35 pm
by timvw
That's odd... When i look at http://www.wampserver.com/en/:
Applications have also been updated (MySQL 5.0.22, Apache 2.0.58, phpmyadmin 2.8.1) as well as PHP4, MySQL administration and Zend Optimizer add-ons.
I might be mistaken, but i was pretty sure you would need php5apache2_2.dll if you were really using apache2.2... And i think that this dll is only distributed with the php5.2 branch for now...

that's odd

Posted: Thu Jun 29, 2006 3:39 pm
by irishmike2004
@timv

What you point out may be true, but all I know is that the XAMPP works.

http://www.apachefriends.org/en/xampp-windows.html

Installed and it works and my apache is most definitely 2.2.2 and the PHP is most definitely 5.1.4... so they tweaked it and made it work. This app installs everything for you though.

Posted: Thu Jun 29, 2006 3:45 pm
by timvw
You're right.. And i'm happily surprised that they already have this working :)