之前搭建的实验室网站由于刚开始经验不足,没有实现代码分离,也就是没有使用MVC架构,导致后面对代码修改网站非常麻烦,所以打算学习yii(一种MVC架构)。但是在进行安装时,在安装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配置文件。
修改C:\wamp\bin\php\php5.4.12下的php.ini文件,并开启extension=php_openssl.dll。
修改C:\wamp\bin\apache\Apache2.4.4\bin下的php.ini文件,并开启extension=php_openssl.dll。
然后重新安装即可。