Handling "The openssl extension is missing: in XAMPP

AliLotfi picture AliLotfi · Jul 17, 2014 · Viewed 8.6k times · Source

I tried to Install composer on my PC (Windows 8 Pro 64x and XAMPP 3.2.1), so I downloaded Windows Installer and run it But I got this error:

The openssl extension is missing, which means that secure HTTPS transfers are impossible.

I searched about this problem and I tried some solutions

extension=php_openssl.dll

was uncomment in php.ini file in C:\xampp\php\php.ini and there's no other php.ini file on my system (I searched for it)

Also when I run "php --ini" command in CMD, I get this:

Configuration File (php.ini) Path: C:\windows

Loaded Configuration File: (none)

Scan for additional .ini files in: (none)

Additional .ini files parsed: (none)

if it helps.

I hope someone helps me. Tnx

Answer

Compugasm picture Compugasm · Oct 29, 2014

";extension=php_openssl.dll" is commented out in the php.ini file. Simply remove the comment, save the file, rerun the Composer Install.