Install Yii In Ubuntu

  1. Download Yii framework from


  1. Extract the downloaded and rename it as framework (i prefer ,choose name as u like) and copy this folder in to the project folder. I given project folder name as yii-new, so my path looks like var/www/yii-new . and i copy framework in to yii-new so its looks like var/www/yii-new/framework

  2. Yii comes with a command line tool called “yiic” that can create a skeleton Yii application for you to start with. To use it

Now open terminal and type.

cd /var/www/yii-new/framework/framework.

now type ./yiic webapp ../../

it will ask for “

Create a Web application under ‘/var/www/yii-new’? (yes|no) [no]: ” now type yes to create , thats it , The new Yii application will be created at, var/www/yii-new.

Now you can access it in browser by typing following URL localhost/yii-new.