Monday, February 8, 2016

Solution To: Unable to find the wrapper "https" - did you forget to enable it when configured PHP?



Error: Unable to find the wrapper "https" - did you forget to enable it when configured PHP?
.
Solution:

Well, since the solution doesn't seem to work for you for whatever reason, you can observe that all this command is doing is download the file and printing it into another php process. This is a rather simple problem that can be workarounded with minor adaptations.
You can for instance, drop https and use http:
php -r "readfile(http://getcomposer.org/installer);" | php -- --disable-tls
Or let some other tool fetch this file, such as:
wget -s -O - "https://getcomposer.org/installer" | php -- --disable-tls
Or even:
curl -sSk "https://getcomposer.org/installer" | php -- --disable-tls
The option --disable-tls is relevant to the installer script, it will tell it to use http instead of https in the furter downloads it will perform during the installation.
.

.
Source: http://stackoverflow.com/questions/29201815/installing-composer-for-windows-unable-to-find-wrapper-https

No comments:

Post a Comment

Labels