As promised, here is the 2nd part of the A Noob’s Guide To Set Yii PHP Framework In Windows Environment. You can check the previous part here. In the part 2, we will cover the level 2 where the Yii Framework will be set and configured to run in server installed on local machine.
Its time to set the framework in your server.
1. Download the latest stable source file from here. You can also download the documentation if needed. It is an optional choice and the documentation is not required to run the framework.

2. After downloading the Yii Framework package, extract the zip archive and you should see a folder structure like below.

3. To run/test the framework, we will start by loading the Hello World demo application into the server on local machine. Navigate to the demos folder and copy the helloworld. Next go to the Xampp Server’s htdocs folder which is located inside the Xampp folders.

4. We have copied the helloworld folder and now we need to set the framework path. Since most of the time we will run our application in shared host, I suggest to move the framework folder within the application folder. Now, copy the framework folder into the helloworld folder.

5. After copying the framework folder, open the index.php that is located in the helloworld folder root and change the framework path. The path will be changed to point the framework folder that is located within the helloworld folder. Refer to the code below on how to change the path location. After changing the path, save and close the file.
Original index.php
<?php // include Yii bootstrap file require_once(dirname(__FILE__).'/../../framework/yii.php'); // create a Web application instance and run Yii::createWebApplication()->run();
Changed index.php
<?php // include Yii bootstrap file require_once(dirname(__FILE__).'/framework/yii.php'); // create a Web application instance and run Yii::createWebApplication()->run();
6. Now, start the server and point your browser to http://localhost/helloworld/. You should see the output as shown below.

The End !!! The server and the Yii Framework was setup successfully and now you can start playing and experimenting with the framework.