Home > Archive > PHP Installation > July 2004 > Failure to load php_openssl.dll
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Failure to load php_openssl.dll
|
|
| Angus Monro 2004-07-26, 9:00 am |
| Hello all,
I'm having difficulty getting off the ground with SSL in PHP. With my
script
| <%php
| $res = openssl_pkey_new();
| %>
I get this output:
| Fatal error: Call to undefined function: openssl_pkey_new() in
c:\inetpub\wwwroot\Scratchpad\test.php on line 3
| PHP Warning: Unknown(): Unable to load dynamic library
'./extensions/php_openssl.dll' - The operating system cannot run %1. in
Unknown on line 0
The latter message is clearly closer to the root problem, since I get it
even with the trivial script:
| <%php
| %>
Here are the details of my configuration:
(1) WindowsXP, IIS.
(2) I'm using the precompiled download of PHP 4.3.7.
(3) I've uncommented "extension=php_openssl.dll" in my php.ini (which is in
C:\Windows\System32).
(4) php_openssl.dll is in the right place (php/extensions). I know it's in
the right place, because it's in the same directory as php_xslt.dll, which
I'm also using, successfully.
(5) I've put openssl.cnf in c:/usr/local/ssl
What have I missed?
Thank-you very much in advance.
Angus Monro.
| |
| Edin Kadribasic 2004-07-26, 8:56 pm |
| 1. php.ini should be in c:\windows
2. have you copied dlls\*.dll to c:\windows\system32?
Edin
"Angus Monro" <angus.monro@s4b.com.au> wrote in message
news:20040726082312.47355.qmail@pb1.pair.com...
> Hello all,
>
> I'm having difficulty getting off the ground with SSL in PHP. With my
> script
> | <%php
> | $res = openssl_pkey_new();
> | %>
> I get this output:
> | Fatal error: Call to undefined function: openssl_pkey_new() in
> c:\inetpub\wwwroot\Scratchpad\test.php on line 3
> | PHP Warning: Unknown(): Unable to load dynamic library
> './extensions/php_openssl.dll' - The operating system cannot run %1. in
> Unknown on line 0
> The latter message is clearly closer to the root problem, since I get it
> even with the trivial script:
> | <%php
> | %>
>
> Here are the details of my configuration:
> (1) WindowsXP, IIS.
> (2) I'm using the precompiled download of PHP 4.3.7.
> (3) I've uncommented "extension=php_openssl.dll" in my php.ini (which is
in
> C:\Windows\System32).
> (4) php_openssl.dll is in the right place (php/extensions). I know it's
in
> the right place, because it's in the same directory as php_xslt.dll, which
> I'm also using, successfully.
> (5) I've put openssl.cnf in c:/usr/local/ssl
>
> What have I missed?
>
> Thank-you very much in advance.
>
> Angus Monro.
| |
| Angus Monro 2004-07-27, 8:56 pm |
| Thanks for the responses thus far.
- my apologies - I have indeed had php.ini in c:\windows, not
c:\windows\system32 as I'd previously posted. Slip of the brain.
- yes, those DLLs are all in the system32 folder already.
- at present, I'm running the script directly on the server as myself, so
there are no permission issues.
- I have tried resetting the server, but this doesn't help.
So the problem continues...
Angus.
"Edin Kadribasic" <edink@emini.dk> wrote in message
news:20040726210912.81912.qmail@pb1.pair.com...[color=darkred]
> 1. php.ini should be in c:\windows
> 2. have you copied dlls\*.dll to c:\windows\system32?
>
> Edin
>
> "Angus Monro" <angus.monro@s4b.com.au> wrote in message
> news:20040726082312.47355.qmail@pb1.pair.com...
> in
> in
which[color=darkred]
|
|
|
|
|