Page 1 of 1

PHP5 with XAMPP 1.6.6a - openssl extension not loading

PostPosted: 23. April 2008 10:34
by MindStar
Hi,

I am unable to load the PHP5 openssl extension with XAMPP 1.6.6a.

I have edited the php5.ini file to load the extension, but phpinfo() is reporting that the extension has not loaded.

The Apache OpenSSL extension has loaded and I can access https://localhost/ - but I cannot open an SSL connection from within my PHP application; I want to send email to a remote host via a secure SMTP connection.

I have searched the forums and read the documentation, but I can't figure out why the PHP5 openssl extension is not loading. There is nothing in the error log.

I have tried re-installing XAMPP 1.6.6a, but that didn't fix it either.

TIA,

Mark.

PostPosted: 23. April 2008 13:56
by Wiedmann
I have edited the php5.ini file to load the extension,

Look in the output of phpinfo() which is the correct "php.ini".

PostPosted: 23. April 2008 14:19
by MindStar
OK. PHP5 is using the php.ini file for it's configuration.

I've uncommented
Code: Select all
extension=php_openssl.dll
but the module still isn't loading :?

I've also tried enabling the eAccelerator.dll (which I use on my production server) and that isn't loading either :? :?

PostPosted: 23. April 2008 15:11
by Wiedmann
You have looked in phpinfo()? What can you read there regarding "php.ini"?

PostPosted: 23. April 2008 15:31
by MindStar
D'oh! I must have been editing the wrong php.ini file in UltraEdit :oops:

I checked
Code: Select all
C:\xampp\apache\bin\php.ini
using NotePad and my changes weren't there :shock:

Closed UltraEdit, reopened it, made the changes, saved, restarted Apache and voila; the openssl and eAccelerator modules are loaded!

Thanks for your patience :)