Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache Module Loading Problems

Status
Not open for further replies.

tobyheywood

IS-IT--Management
Apr 20, 2001
122
GB
I have a WinXP laptop with Apache and PHP installed, apache works fine but as soon as i alter the httpd.conf to make PHP work with Apache I get the following error message.

Syntax error on line 193 of c:/program files/apache group/apache/conf/httpd.conf

Cannot load c:/php/sapi/php4apache.dll into server: (126) The specified module could not be found:

The php4apache.dll file is in the above directory, but for some reason isn't being picked up by apache!

Can anyone make a suggestion as to how I can solve this!

I have so far tried copying the necessary dlls to %SYSTEMROOT% and %SYSTEMROOT%/system32, plus tried adding to my path variable, but still nothing!

I will be interested to see if anyone has had this same problem and how it was worked around!

Regards

Toby Heywood
 
It is possible but I have tried PHP version 4.3.2, 4.3.3 & and PHP 5 allow which seem to tell me exactly the same!

I have even gone as far as removing Apache 1 and replacing it with Apache 2.

To that end I have placed copies of the files

\php
\php\sapi
\apache\apache group\modules
\windows
\windows\system32

So it is certainly in the search path! I'm starting to wonder if it's something to do with an MS Patch, as I know in the past that new patches released by MS have screwed things up on my laptop. Last time it wouldn't read CDs properly. This time it could well be not reading the properly!

Don't suppose anyone has any good suggestions before I kill my machine and start again!

Cheers

Toby Heywood
 
After much messing around i decided to remove the httpd.conf file and replace it with a copy of the default configuration file.

I then set the appropriate configuration options and it decided to work!

So whether it was a typo or something else i will never know!

Thank you for your help anyway!

Regards


Toby Heywood
 
I'm using Apache 2.0.4.7 and PHP4.3.3 on a WinSvr2k3 Platform. I have no problems whatsoever. I'm also running 3 virtual sites.

I would suggest using Apache2Triad. It's very simple to use if you're a beginner and it make life easier if you're advanced.
Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top