windows下安装Composer提示缺少openssl的解决方法

在Windows环境下安装Composer(注:Composer要求PHP版本在5.3.2+),你可能会遇到这种安装失败的情况:出错信息是 "The openssl extension is missing, which will reduce the security and stability of Composer. If possible you should enable it or recompile php with --with-openssl" ,大意就是你的PHP缺少openssl扩展。

在php的安装目录比如说C:\wamp\bin\php\php5.3.3\中,找到找个目录下的php.ini文件,然后去掉 extension=php_openssl.dll 这一行开头的注释,之后就可以顺利安装Composer了。

posted @ 2016-12-05 15:40  dcrenl  阅读(1875)  评论(0编辑  收藏  举报