You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Olaf Lautenschlaeger <ap...@anova.de> on 2007/03/01 10:39:39 UTC

Re: [users@httpd] PHP Load Module Error, Help Please

On Wednesday, February 28, 2007 4:29 PM [GMT+1=CET],
Stephen <st...@rogers.com> wrote:

> I am running Apache 2.2.3 on Windows XP and I get an error when it
> starts:
>
> PHP Startup: Unable to load dynamic library ‘C:\Program
> Files\PHP\ext\php_ssh2.dll’ – The specified module could not be found.
>
> But, the library file exists.

I am pretty sure the extension DLL misses either the msvcr80.dll or
the OpenSSL libraries (libeay32.dll, ssleay32.dll) and thus can't be
loaded (you can check it using DependencyWalker or DLLspy).

To cope with the first, have .NET framework installed (or simply
grab msvcr80.dll from dll-files.com, which might or might not
succeed. At least, PHP starts w/o complaining then, but: YMMV).

For the second, make sure OpenSSL's ".\bin" folder resides some-
where in your path or - as PHP docs suggest - make "C:\Program
Files\PHP" (not '.\ext' itself) your extension_dir in php.ini and put all
required extension DLLs from the ext folder there.

Alternatively, leave extension_dir setting as it is and add the PHP base
folder to your PATH variable; it contains a bunch of often required
libraries that do not belong generically to PHP itself - so the
OpenSSL DLLs (but these usually aren't the most recent ones).

> It is not a big deal since I am not using SSH in this environment,

Why don't you simply strip out php_ssh2.dll from your php.ini then?

> but I do like to correct errors.

Always a good idea.

Olaf Lautenschlaeger
ANOVA Multimedia Studios GmbH, Rostock, Germany


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org