Composer Warning: openssl extension is missing. How to enable in WAMP

2,642 views
Skip to first unread message

sleeper

unread,
Dec 27, 2012, 6:47:56 PM12/27/12
to compose...@googlegroups.com

Trying to install Composer dependency management tool on Win7/64 + WampServer 2.2 via the Setup Installer and I am getting the following message:

The openssl extension is missing, which will reduce the security and stability of Composer. If possible you should enable it or recompile php with --with-openssl

So here is what I did...

  1. From my Wamp icon in Tray, clicked php > php extensions > php_openssl
  2. This showed that task was completed by placing a check mark beside the extension
  3. I then restarted WampServer
  4. Then from the Wamp icon in tray, I clicked php > php.ini and searched for openssl to verifiy it was NOT commented) out. It was not.
  5. I then went back to Composer-Setup.exe and tried again. Same Warning Message: "openssl extension is missing"
  6. Having never worked with OpenSSL, I'm not sure what is supposed to be set, so I tried to browse to one of my local sites using https. It Failed.

What am I missing?

Please advise.

sleeper

Valery Ipanga

unread,
Jan 10, 2013, 2:39:35 PM1/10/13
to compose...@googlegroups.com
WAMP uses different php.ini files in the CLI and for Apache.
When you enable php_openssl through the WAMP UI, you enable it for Apache, not for the CLI.
You need to modify C:\wamp\bin\php\php-5.4.3\php.ini to enable it for the CLI.

Hop this will be helpful

Neo Ighodaro

unread,
May 2, 2013, 12:07:48 AM5/2/13
to compose...@googlegroups.com, valer...@gmail.com
This was actually very useful.
Reply all
Reply to author
Forward
0 new messages