Link to home
Create AccountLog in
Avatar of AlanKellogg
AlanKellogg

asked on

How do I get PHP dll to load into apache server running under Vista?

when launching Apache server, receive following in Vista error log:
Cannot load C:/PHP/SAPI/php5apache2.dll into server: The specified module could not be found.     dll is definitely there. If I try loading php5apache2_2.dll instead, it says (don't remember exactly) it can't find a SAPI structure inside the module.  Apache works without PHP but won't start if I try to load it. Have user account control turned off. Already copied php5ts.dll to system directory and set extension_dir in the php.ini file. Examples in Schafer's book about this showed dll files in an SAPI subdirectory but when I unzipped php win32 software, the dlls were together with most of the other files instead of in a sub-directory.
Avatar of Jason Watkins
Jason Watkins
Flag of United States of America image

Hi,

Have you tried this utility?

http://www.wampserver.com/en/

/F
ASKER CERTIFIED SOLUTION
Avatar of theevilworm
theevilworm

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of AlanKellogg
AlanKellogg

ASKER

Had already put the DLLs in the PHP directory at the top of the C drive. This is the line that didn't work:
LoadModule php_module c:\PHP\php5apache2.dll
and this is the line from the solution that DID:
LoadModule php5_module "c:/php/php5apache2_2.dll"
in the configuration file, of course.
These instructions really do not work. It wasted a lot of my time and frankly it did not explain what lines of code need to be added to the Apache httpd.conf file which I found to be:
located in the module definition section:

PHPIniDir "C:/PHP"
LoadFile "C:/PHP/php5ts.dll"
LoadModule php5_module "C:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php

But even that failed to work. I even tried to add  LoadFile "C:/PHP/php5apache2.dll as a LoadFile but
that failed too,, I am going to try Apache 1.3 we shall see if that works.
Someone needs to modify this question better This is an installation annoyance!
I think the only way to truly get this working is to re-compile and build but the above just makes you think you can get by with the Apache and PHP  msi  s available and that is just not true, unless I missed something here!