Forum Moderators: coopster

Message Too Old, No Replies

WAMP installation problems.

         

mamba777

10:40 pm on May 30, 2006 (gmt 0)

10+ Year Member



I am trying to install WAMP and after reading:

"Installing a new web server: Apache2, PHP5, MySQL4 and PHPmyAdmin"
by henryO from this forum. I followed all steps and successfully started Apache 2.2

I then installed and successfully unzipped PHP into c:\php
After unzipping the PHP5 zip files, I followed every step and changed all the
apache conf files and the php.ini as directed. Then the problem occurred!

When I restart Apache, I get an error:

Cannot load C:/PHP/php5apache2.dll - the specified module
cannot be found, although I have the httpd.conf correctly configured

(shown here)
=============
LoadModule php5_module C:/php/php5apache2.dll
AddType application/x-httpd-php .php
==============

I've tried everything including changing / to \ (unix mode?)
and still wasn't getting very far... Please help.

Please know that I followed EVERY LINE of the install and am still having problems.

Thanx in advance.

eelixduppy

10:44 pm on May 30, 2006 (gmt 0)



Welcome to WebmasterWorld!

Obviously it cannot find the .dll file. Try changing the LoadModule line to the following:


LoadModule php5_module C:/php/sapi/php5apache2.dll

If this doesn't work, you are going to have to locate this .dll file and specify the correct location of it.

mamba777

10:56 pm on May 30, 2006 (gmt 0)

10+ Year Member



Thanx for your reply.

Believe me, I've located it with absolute, relative and all the paths I can think of. I made sure the file was where it was everytime I restarted. It always gave the right path (from the config file) whenever it showed the error that it cannot find my dll file!

Cheers.

coopster

11:02 pm on May 30, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Seems to be a common issue as of late. I ran into this once, and only once, before and ended up reinstalling Apache. I have no idea what the issue was except for possibly a corrupt binary.

Related thread in the Apache Forum:
Setting up PHP5 with Apache2 on Windows XP -- httpd.conf error [webmasterworld.com]

FalseDawn

11:03 pm on May 30, 2006 (gmt 0)

10+ Year Member



The file is there, but IIRC I had the same problem - it is due to the fact that the DLL shipped with PHP 5 is not compatible with apache 2

Go here:
[bugs.php.net...]

And for reference, the line in httpd.conf should be:
LoadModule php5_module "C:/PHP5/php5apache2.dll"

Obviously with your path there. This directory should also contain all the other DLLs (I have 16 in mine)

[edited by: coopster at 12:02 am (utc) on May 31, 2006]
[edit reason] linked up to PHP Bug page link [/edit]

coopster

12:08 am on May 31, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Thanks for that heads up, FalseDawn. You know, we have seen this problem pop up a couple times now. mamba777, are you running Apache 2.2?