Before installing yii2 we need to install composer for install composer runthese commands
curl -s http://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
now for install yii first locate to your web root filder
cd /var/www
now run below commands
composer global require "fxp/composer-asset-plugin:1.0.0"
composer create-project --prefer-dist yiisoft/yii2-app-basic basic
now you can access this by url http://localhost/app-basic
0 Comment(s)