我正在尝试安装 Composer,但出现以下错误:
"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"
然后我进入我的 php.ini-production 并取消注释: “扩展名=php_openssl.dll”
这仍然不起作用,我还需要做些什么吗?
最佳答案
如果您在 Windows 上使用 MAMP,则需要将 php.ini-development
的扩展名更改为 php.ini
然后,粘贴此行 ; extension_dir = "ext"
到 php.ini 文件中,在第一个扩展名出现之前,取消注释另一行 ;extension=php_openssl.dll
删除前缀分号。
不要忘记重启apache
关于php - 安装 Composer 失败,出现 "The openssl extension is missing"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25070912/