Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling the OpenSSL in XAMPP

Tags:

php

ssl

xampp

I spent three hours but I did not find anything; I'm unable to connect to a SSL enabled server. I want to list what i did:

First checked my PHP extensions directory was in order; extension wasn't there, php_openssl.dll

Then I opened my php.ini file but I could not see any extension=php_openssl.dll line to uncomment.

Also, I searched on Google and saw people with the same problem. http://www.apachefriends.org/f/viewtopic.php?p=162623

However, I also have

OPENSSL_CONF C:/xampp/apache/bin/openssl.cnf  ... openssl OpenSSL support enabled  OpenSSL Library Version OpenSSL 0.9.8l 5 Nov 2009  OpenSSL Header Version OpenSSL 0.9.8l 5 Nov 2009 

no lines . What should I do? Please share your suggestions.

like image 397
Mert METİN Avatar asked Feb 27 '12 13:02

Mert METİN


People also ask

Where is openssl in xampp?

Install Openssl If you have XAMPP on your machine then openssl already should come with it. If not, then go to https://github.com/openssl/openssl and download and install it. You should install it in such a was then openssl is available under C:\xampp\apache\bin folder.

How disable openssl in PHP?

If you can not enable the openssl extension, you can disable this error , at your own risk, by setting the 'disable-tls' option to true. Is your php installed manually or from package?


1 Answers

Yes, you must open php.ini and remove the semicolon to:

;extension=php_openssl.dll 

If you don't have that line, check that you have the file (In my PC is on D:\xampp\php\ext) and add this to php.ini in the "Dynamic Extensions" section:

extension=php_openssl.dll 
like image 188
Memochipan Avatar answered Oct 01 '22 03:10

Memochipan