When I attempt to run composer install
in the CLI, I get this error:
You must enable the openssl extension to download files via https
The problem seems to be on line 5381 of my composer.phar
file:
if (!extension_loaded('openssl') && (0 === strpos($url, 'https:') || 0 === strpos($url, 'http://github.com'))) {
throw new \RuntimeException('You must enable the openssl extension to download files via https');
}
I have enabled the openssl extension in both my php.ini files. (Apache and PHP)
If I run openssl version
in the CLI it returns
OpenSSL 1.0.1c 10 May 2012
I ran the following PHP script through my WAMP server:
echo extension_loaded('openssl');
It printed 1
As far as I can tell, my openssl extension is working fine, but for some reason it is still causing this error for Composer.
Does anyone see any problems I may have overlooked?