简体   繁体   English

Windows 10中安装作曲家失败OpenSSL扩展名丢失

[英]install composer fails in windows 10 The openssl extension is missing

openssl missing whene install composer 安装作曲家时缺少openssl

my windows: 10 我的窗户:10

local server: UwAmp 本地服务器:UwAmp

I've activated openssl in : 我已经在激活了openssl:

C:\\UwAmp\\bin\\apache\\php.ini C:\\ UwAmp \\ bin \\ apache \\ php.ini

C:\\UwAmp\\bin\\php\\php-5.4.31\\php.ini-development & php.ini-production (2 files) by delete - ; C:\\ UwAmp \\ bin \\ php \\ php-5.4.31 \\ php.ini-development和php.ini-production(2个文件),通过删除-; - --

As well as from UwAmp GUI 以及来自UwAmp GUI

But

This problem is not solved 这个问题没有解决

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

Thank you 谢谢

I ran into the same issue installing Composer with MAMP for Windows 10. My php.ini file was not in the same directory as php.exe . 我在Windows 10的MAMP中安装Composer时遇到了同样的问题。我的php.ini文件与php.exe不在同一目录中。 I'm guessing Composer doesn't know to look elsewhere for the ini. 我猜Composer不知道要在其他地方查找ini。

Try making a copy of your php.ini from C:\\UwAmp\\bin\\apache\\php.ini , pasting it into C:\\UwAmp\\bin\\php\\php-5.4.31 , and then try to run the Composer setup again. 尝试从C:\\UwAmp\\bin\\apache\\php.ini复制C:\\UwAmp\\bin\\apache\\php.ini ,然后将其粘贴到C:\\UwAmp\\bin\\php\\php-5.4.31 ,然后尝试再次运行Composer安装程序。 Confirm that extension=php_openssl.dll is not commented out with a ; 确认extension=php_openssl.dll没有用注释掉; .

Copy php.in from php dir to Apache24/bin works for me. 将php.in从php目录复制到Apache24 / bin对我有用。 Please make sure you enable the extension in there. 请确保您在其中启用了扩展程序。

Composer has nothing to do with apache, so C:\\UwAmp\\bin\\apache\\php.ini doesn't matter. Composer与apache无关,因此C:\\UwAmp\\bin\\apache\\php.ini无关紧要。

php.ini-development and php.ini-production are sort of examples to get started with. php.ini-developmentphp.ini-production是一些入门示例。 So you should choose one (probably development ) and rename it to php.ini for it to actually work. 因此,您应该选择一个(可能是development ),然后将其重命名为php.ini才能真正起作用。

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

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