How to install yii2 on ubuntu system with xampp

Yii

Posted on 07 Feb 15 by Vickey
  1928



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 https://getcomposer.org/installer | php

or if we did not install php globally

curl -sS https://getcomposer.org/installer | /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

or

/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

localhost/basic/web/

Thanks


If this post help you reduce time to develop, you can help me to maintain this website :)
www.000webhost.com