所以这是我遇到的问题:
我正在尝试安装 Composer
并在 Windows 上使用 MAMP
(它自一月初就已存在)。
和 Windows 上的许多 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
页面是否无法使用,确实如此!
我找不到任何帮助,因为 Windows 上的 MAMP
用户很少。
感谢您的帮助或建议
最佳答案
- 打开位于“
\MAMP\conf\
”文件夹中的 php.ini 或将 php.ini 复制到\MAMP\bin\php\php[您的 PHP 版本号]\
- 找到“
extension=php_openssl.dll
” ;extension=php_openssl.dll
- 删除“;
”- 重启你的 MAMP ,之后应该加载扩展。
关于php - 在 Windows 上的 MAMP 上安装 Composer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29489218/