我正在使用带有WAMP 2.4 & PHP 5.4.16
我已在WAMP扩展程序中启用了openssl,并在此php.ini
C:\wamp\bin\php\php5.4.16
启用了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
当我尝试安装Composer时出现以下错误
{{1}}
我试图禁用Windows防火墙它仍然无法正常工作
答案 0 :(得分:3)
问题出在你的PHP软件包中,它没有启用SSL。为此,请修改php.ini
并确保添加:
extension=php_openssl.dll.
答案 1 :(得分:2)
转到C:\ wamp \ bin \ php \ php5.4.12 并打开php.ini文件 UnComment以下扩展名如“删除”;“形成行的开头
extension=php_openssl.dll
extension=php_curl.dll
并确保Windows防火墙已关闭
答案 2 :(得分:1)
如果您尝试通过WAMP接口启用open_ssl扩展,则可能无效。转到命令提示符并键入path
以查找PHP的路径。转到该文件夹并打开php.ini
并从;
extension=php_openssl.dll.
让我知道它是怎么回事......