====== Alternate yii2 setup ====== ===== Composer setup ===== Install ''php5-json'' as it is required for composer. As root: cd /tmp curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin ln -s /usr/bin/composer.phar /usr/bin/composer ===== Directory Setup ===== Choose and create a directory to install yii2. E.g. /data/yii2 YII2DIR=/data/yii2 mkdir -p $YII2DIR cd $YII2DIR export COMPOSER_HOME=`pwd` composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta2" composer.phar create-project yiisoft/yii2-app-advanced advanced 2.0.0-rc