Download the Yii code from its official website or github.
Extract the code into your server root directory.
Open command line terminal and TYPE the FOLLOWING command. php path-to-yii-folder/framework/yiic webapp [webapp-name]
After execution of above command , it will ask you for the confirmation of creating your application , on selecting yes , this will create a defaut application.