Skip to content
Advertisement

Installing Composer OpenSSL Issue

I am trying to install composer however when I go to install it I get this error:

Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:

The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl

I currently have php 5.4.31 and I am running WAMP2.2 I’ve checked my php.ini file in the bin/php/php5.4.31/ and ensured that the following line is uncommented:

extension=php_openssl.dll

The error still resolves and I’m at a loss as to how I can fix it. As I thought by uncommenting the line it would be enabled.

Also when I run this command in the terminal window php --ini I get the following message:

PHP Warning: PHP Startup: Unable to load dynamic library 'C:phpphp_openssl.dll' - The specified module could not be found

Advertisement

Answer

@Javacadabra, extensions like php_openssl.dll will be under php/ext/ directory, you could fix this path in the config file or you could copy that specific file from php/ext directory to php directory.

in your case it will be c:phpext

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement