logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Can't Load Module
Author
djameson



Joined: 18 Dec 2007
Posts: 2

PostPosted: Tue 18 Dec '07 4:49    Post subject: Can't Load Module Reply with quote

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

PostPosted: Tue 18 Dec '07 4:52    Post subject: Reply with quote

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

PostPosted: Tue 18 Dec '07 13:47    Post subject: Reply with quote

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

PostPosted: Tue 18 Dec '07 19:31    Post subject: Reply with quote

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

PostPosted: Tue 18 Dec '07 23:21    Post subject: Reply with quote

PCRE = Perl Compatible Regular Expressions

All that regex stuff Wink
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Wed 19 Dec '07 2:10    Post subject: Reply with quote

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


Reply to topic   Topic: Can't Load Module View previous topic :: View next topic
Post new topic   Forum Index -> Other Software