Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to enable the openssl extension in php.ini. I uncommented the extension=php_openssl.dll restarted apache service, but it still doesn't works. In the apache error log I've found

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:/Program Files (x86)/mypath/php/ext\\php_openssl.dll' - The operating system cannot run %1.\r\n in Unknown on line 0

I tried to follow some tutorials which said that I have to copy ssleay32.dll and libeay32.dll to the windows/system32 directory, but it still doesn't works.

Does anyone know how to install it properly?

share|improve this question
I think that the issue was solved by upgrading apache and/or php to a newer version. – Zsolti May 3 '11 at 12:16
up vote 0 down vote accepted

In your php_info() page please check where your "extension_dir" attribute points to .please point it to the c:\yourphpsrcfolder\ext\ .

Then uncomment the dll in php.ini file.Please look the same in the phpinfo() where your php.ini file is located.

restart your server .This should help

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.