Blog (or) Scribble Pad

Can't install Composer although openssl extension enabled in Wamp!

I tried installing Composer which irritated me at first by telling me to enable the openssl extension and recompile my PHP. I always use Wamp on my home computer, which told me that openssl was installed and active (wamp-> php -> php extensions).

I tried for a few times, disabling and enabling openssl and restarting all services every time. Still ended up with the same error, irritated me more. Then had a smoke and while doing so, my hand guided my computer to the directory where php.ini (in ../wamp/bin/php.phpx.x.xx/) file was located, opened it and searched for openssl. There I found a line 'extension=php_openssl.dll', as a comment.

I uncommented the line, saved the file and restarted all services on Wamp. Waited for a few seconds and ran the composer setup to witness it installing without any trouble. It was an emotional moment for me.

Now, why I installed Composer for! I don't know. I've got to go figure it out now. my ass!