windows安装Yii2 记录
2016-05-06 00:00
696 查看
摘要: 第一次安装Yii2,有些报错,记录下
下载Composer-setup.exe (https://getcomposer.org/Composer-Setup.exe)
composer self -update (如果composer命令无用则重启)
composer global require "fxp/composer-asset-plugin" (安装composer asset plugin ,用来管理bower和npm包)
如果提升ssl错误,就是php.ini 中extension=php_openssl.dll前的标记去掉
composer create-project --prefer-dist yiisoft/yii2-app-basic 你的yii安装目录
会让你输入github Token 在你github账号中生存一个复制过来
访问http://localhost/你的yii安装目录/web/index.php 看看是否完成
下载Composer-setup.exe (https://getcomposer.org/Composer-Setup.exe)
[code=language-bash]composer config -g repo.packagist composer https://packagist.phpcomposer.com
composer self -update (如果composer命令无用则重启)
composer global require "fxp/composer-asset-plugin" (安装composer asset plugin ,用来管理bower和npm包)
如果提升ssl错误,就是php.ini 中extension=php_openssl.dll前的标记去掉
composer create-project --prefer-dist yiisoft/yii2-app-basic 你的yii安装目录
会让你输入github Token 在你github账号中生存一个复制过来
访问http://localhost/你的yii安装目录/web/index.php 看看是否完成