How to install yii2 on ubuntu system with xampp


Posted on 07 Feb 15 by Vickey

If you have ubuntu system and want to install yii2 then folllow these below process

First we need to install composer so we will install composer by this command

curl -sS | php

or if we did not install php globally

curl -sS | /opt/lampp/bin/php

when composer will be installed we need to make it globally so we will run this command

sudo mv composer.phar /usr/local/bin/composer

Now move to your local host root folder

cd /opt/lampp/htdocs/

when you will in root run this command

composer create-project --prefer-dist yiisoft/yii2-app-basic


/usr/local/bin/composer create-project --prefer-dist yiisoft/yii2-app-basic

now if can see basic filder in your web root folder

you can run it by url



If this post help you reduce time to develop, you can help me to maintain this website :)