I am trying to install Laravel in WAMP setup. I am getting a warning message for not enabling openssl which I had already done in WAMP.
Here is a screenshot of the message.
I am trying to install Laravel in WAMP setup. I am getting a warning message for not enabling openssl which I had already done in WAMP.
Here is a screenshot of the message.
you need to enable the openssl extension in
that is the php configuration file that has it type has "configuration settings" with a driver-notepad like icon.
there is a semi-colon before the openssl extension
remove the semi-colon and you'll have
C:\wamp\bin\php\php5.3.13
Browse to the line that reads:
and remove the semicolon preceding the line. Restart your WAMP server services (click in your icon tray > 'Restart All Services'
For WAMP server, comment given by "Enrique" solved my problem.
wamp is using this php.ini:
But composer is using PHP from CLI, and hence it's reading this file:
For composer you will have to enable extension in
Change:
to
This is an old question but I just had the same issue (with PHP7) and the solution was, in the end, pretty simple. Uncommenting the line in
php.ini
as per the other answers wasn't quite enough though. I needed to change it from:to:
Note the
ext
prefix. The dll already existed but was in a subfolder. After changing the config the composer installer was happy.After editting the "right" files (all php.ini's). i had still the issue. My solution was:
Adding a System variable: OPENSSL_CONF
the value of OPENSSL_CONF should be the openssl.cnf file of your current php version.
for me it was:
-> Restart WAMP -> should work now
Source: http://php.net/manual/en/openssl.installation.php
It is possible that WAMP and Composer are using different PHP installations. Composer will use the PHP set in the
PATH
environment variable.If you want to enable the openssl extension to install Composer, first you need to check the location of the PHP installation.
echo %PATH%
then check for the location of your PHP installation.php.ini
.extension=php_openssl.dll
by removing the semicolon at the beginning.Now you are good to install Composer.