Author |
|
djameson
Joined: 18 Dec 2007 Posts: 2
|
Posted: Tue 18 Dec '07 4:49 Post subject: Can't Load Module |
|
|
Apache 2.0.61
PHP 5.2.5
Win XP Professional SP2
Sorry to beat a dead horse but.....
I have read for three days now.......must have tried 100 different things...no go on anything.
I followed the instruction in post 570 exactly. I have tried three different times with two different versions. At one point I actually had Apache and PHP working but could not get MYSQL working with PHP. Then, for some unknown reason....PHP stopped working with Apache. I re-imaged my workstation and now I keep getting the dreadful "Error in Line ### can't load module.....module not found". Any help would GREATLY appreciated!!!!
Yes to installing the C++ redistributed file.
Syntax in CONF file LoadModule php5_module "c:/PHP/php5apache2_2.dll"
C:\PHP in the path statement and verified.
Apache runs fine without the LoadModule statement.
I can manage to keep a Novell network of 1500 computers going but can't get little ole Apache, PHP, and MYSQL to work!!!
Thanks in advance. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Tue 18 Dec '07 4:52 Post subject: |
|
|
php5apache2_2.dll is for Apache 2.2.x
php5apache2.dll is for 2.0.x which is what you want to use based on your claim to be using 2.0.61 |
|
Back to top |
|
djameson
Joined: 18 Dec 2007 Posts: 2
|
Posted: Tue 18 Dec '07 13:47 Post subject: |
|
|
When reaching for straws...you try anything.....
I did have php5apache2.dll in the LoadModule statement. I tried the one that came with PHP. I tried the one from here at Apache downloads. Neither worked. On a whim, I stuck the 2.2 dll in there just to see. It was the last I tried and therefore what I copied.
If anyone would like to suggest a version of Apache that is best with a version of PHP, I'd be glad to try it! Only takes a few minutes to re-image and start from scratch.
Thanks though. It's got to be something silly and stupid that I am just over looking or missing. Thanks for your suggestion. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Tue 18 Dec '07 19:31 Post subject: |
|
|
I have my own vb6 compile of Apache 2.2.6 working with PHP 5.2.4.
I see others with problems with 5.2.5. PHP changed versions of PCRE and I am wondering if this is having something to do with these problems. I'm not sure exactly what PCRE is, but I know it has caused problems for me compiling mod_security before. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 18 Dec '07 23:21 Post subject: |
|
|
PCRE = Perl Compatible Regular Expressions
All that regex stuff |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 611 Location: Milford, MA, USA
|
Posted: Wed 19 Dec '07 2:10 Post subject: |
|
|
These httpd.conf directives work for me with Apache 2.0.61 (from apache.org) and PHP 5.2.5 on Windows XP SP2: Code: | LoadModule php5_module "C:/PHP/php5apache2.dll"
AddType application/x-httpd-php .php
AddHandler application/x-httpd-php .php
PHPIniDir "C:/PHP" | Maybe you can see what is different from the directives you are using.
No C++ redistributable is needed, and like glsmith said - you want php5apache2.dll for Apache 2.0.61.
php5apache2_2.dll is only for use with Apache version 2.2.0 or higher.
-tom- |
|
Back to top |
|