Composer Warning: Openssl Extension Is Missing. How to Enable in Wamp

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

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.

Install Composer fails with The openssl extension is missing error

I suspect "php.ini-production" is a dummy configuration file suitable for live environments. Do a php -i at the console and find the 'php.ini' path, to see where it is expecting the ini file to be kept. This is normally expecting "php.ini", and may not actually exist - if it does not, copy php.ini-development (or similar) to the location required.

This is near the top of (a very long) output, so you may find redirecting it to a file helpful (php -i > C:\phpinfo.txt).

Install Composer fails openssl extension is missing error

After about another week of research and talking with a University professor about it, I ultimately found that the issue stemmed from my Bitnami installation path. Installing the wampstack as it defaulted by the installer (wampstack-version#) seems to cause problems in composers ability to install. Make sure to install it without the version on the end of the wampstack path.

Enabling OpenSSL in WAMP

Wampserver with apache 2.4.4 released with wrong openssl files. All the things to do is: download and install the 1.0.1e openssl from here: http://slproweb.com/products/Win32OpenSSL.html

Then find these files in the installed directory:

bin\openssl.cfg

bin\libeay32.dll

bin\ssleay32.dll

bin\openssl.exe

Stop the apache server.
at first, save a BACKUP of them. Then overright these files in your apache directory:

conf\openssl.cnf->rename the cfg here

bin\libeay32.dll

bin\ssleay32.dll

bin\openssl.exe

Restart the server. Solved.



Related Topics



Leave a reply



Submit