views:

43

answers:

3

Hi guys I'm running a tweaked webmail application - however for some reason the openssl extension isn't loading - I've enabled it in the php.ini but when I run my application and check for loaded extensions using get_loaded_extensions - the openssl is not in the array of loaded extensions? Whats wrong here? The php_openssl.dll is physically there - I'm running a wampserver and it looks ok but on the execution end its not working..

HAAAALP!!!!

A: 

Try restarting your apache server

is the dll in the right place?

(shoot me if I'm talking shit)

Robert Cabri
Done that a hundred times but no help I even tried a tweak I found here http://php.net/manual/en/ref.openssl.php#79441 but even that didnt work
Ali
A: 

Depending on how php_openssl.dll was built/linked it depends on libeay32.dll and/or ssleay32.dll. Windows must be able to (also) load those two .dlls into the process running php in order to make the php_openssl.dll available/functional.
Since windows searches for .dlls (amongst other places) in the directory of the executable try placing libeay32.dll and ssleay32.dll in the apache/bin directory (where the httpd.exe resides) and restart the webserver.

see also: Dynamic-Link Library Search Order
and How to use Dependency Walker

VolkerK
As mysteriously as it started the problem just vanished :\ - thanks anyway
Ali
A: 

This may help you. Copy dll files in windows and windows/system32 folders and then restart Apache server.

Acharya