Magento2.1 安装检查失败 – php版本为空?
magento 2.1 安装检查时出错…
m2 出了有段时间了 最近准备入坑学习。刚开始m2 就给了我个见面礼,环境自检过不了,如下图:
连php版本都检查不出来,我就很纳闷了。心想难道是php版本不对? 随之查阅了 magento系统要求
然而并没这么简单,之后又检查了php扩展,也不是扩展问题。以下是所需的15个php扩展
- PHP Extension curl.
- PHP Extension dom.
- PHP Extension mcrypt.
- PHP Extension simplexml.
- PHP Extension spl.
- PHP Extension xsl.
- PHP Extension intl.
- PHP Extension mbstring.
- PHP Extension ctype.
- PHP Extension hash.
- PHP Extension openssl.
- PHP Extension zip.
- PHP Extension xmlwriter.
- PHP Extension gd.
- PHP Extension iconv.
最后,通过更改项目的composer.json文件解决了。更改如下:
"config": {
"use-include-path": true,
"disable-tls":true
},
即添加行"disable-tls":true
(并且不要忘记在前一行添加”,”)

原创文章,作者:calvin chan,如若转载,请注明出处:https://www.calvinyuki.com/221.html