简体   繁体   English

作曲家下载错误。 在php.ini中找不到extension = php_openssl.dll

[英]Composer download error. extension=php_openssl.dll not found in php.ini

I tried to install composer with the composer installer and I got this error "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: 我尝试使用composer安装程序安装composer,但出现此错误“计算机上的某些设置使Composer无法正常工作。请确保您解决了以下所列问题,然后再次运行此脚本:

The openssl extension is missing, which means that secure HTTPS transfers are impossible. openssl扩展名丢失,这意味着无法进行安全的HTTPS传输。 If possible you should enable it or recompile php with --with-openssl " 如果可能的话,您应该启用它或使用--with-openssl重新编译php“

I googled it and I realised I have to enable openssl in my php.ini file, I have to remove the semi-colon in front of this line ;extension=php_openssl.dll. 我用谷歌搜索,意识到我必须在我的php.ini文件中启用openssl,我必须删除此行前面的分号; extension = php_openssl.dll。 The problem is that that line is not present in my php.ini file but it is present in my php.ini-development and php.ini-production files. 问题是该行不存在于我的php.ini文件中,但存在于我的php.ini-development和php.ini-production文件中。 I already edited the line in the two files but composer is still not installing. 我已经在两个文件中编辑了该行,但是composer仍未安装。 How do I get composer to install? 如何安装作曲家? Should I add the line to php.ini or what? 我应该将该行添加到php.ini还是什么? I use xampp btw. 我使用xampp btw。

请尝试将该行添加到您的php.ini文件中,它应该可以解决该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM