Page 1 of 1

php_openssl.dll missing?

PostPosted: 28. October 2009 18:05
by gkalinec
Hello,
I've recently upgraded to xampp for windows 1.7.2 and noticed that the php extension php_openssl.dll is missing, along with an openssl folder in the extra folder. This was present in previous installation (with php 5.2). For some reason, this makes it so that I can't connect to an LDAP server (using the php_ldap extension) using the host name in the form ldaps://<hostname> (although the normal ldap://<hostname> works fine). I was wondering if anyone knows if this was taken out because it is no longer supported? I tried installing it manually but the server crashes saying that the library is not configured correctly.
Anyone knows a resolution to this?

Thank You.

German Kalinec

Re: php_openssl.dll missing?

PostPosted: 29. October 2009 00:47
by Izzy
OpenSSL is compiled and enabled in php 5.3 of XAMPP 1.7.2 and so no longer requires a separate extension dll.

Check http://localhost/xampp/phpinfo.php and look for OpenSSL section.

I was under the impression that ldaps:// is now deprecated and the use of STARTTLS using ldap:// is used as a replacement.
http://www.openldap.org/faq/data/cache/605.html
http://www.openldap.org/lists/openldap- ... 00343.html
http://en.wikipedia.org/wiki/Lightweigh ... s_Protocol


BTW did you uncomment this ;extension=php_ldap.dll in the php.ini file?

Re: php_openssl.dll missing?

PostPosted: 30. October 2009 16:30
by gkalinec
Thank you for the information. I was not aware that it was now compiled in. To answer your question, the line ;extension=php_ldap.dll is not in the php.ini section anymore. Neither is the dll in the ext folder. I downloaded a new copy of PHP 5.3 from the php site to verify that maybe that file was no longer available, but I found that the dll still existed in the php directory structure. I tried adding the line to the php.ini file and copying the dll from the downloaded php distro to the xampp distro, but that just crashed the whole ting.
I'm going to check on the STARTTLS directive in php (I've never seen it before) and I'll post results.

Thanks

German Kalinec

Re: php_openssl.dll missing?

PostPosted: 30. October 2009 20:32
by Izzy
...the line ;extension=php_ldap.dll is not in the php.ini section anymore. Neither is the dll in the ext folder.
I have 1.7.2 version of XAMPP installed and it has both the extension entry and the dll included in the ext folder.

If you still have the downloaded file xampp-win32-1.7.2.exe and WinRAR or 7zip on your PC then right click on the file and select to open the archive with one of the above apps. or simply select File>Open archive in your archive program then locate the downloaded file - xampp-win32-1.7.2.exe is simply a WinRAR compressed archive.

After opening the archive View the php.ini file and look in the ext folder for the dll file as it is definitely in the file I downloaded from Apache Friends.