Installing
First, download the Yii Framework to somewhere sensible. I prefer to use subversion to check out the code:
svn co http://yii.googlecode.com/svn/branches/1.0 /usr/share/php/Yii
This will take a few minutes. Once it’s done, you can use the Yii Command Runner (yiic) to set up your web application:
/usr/share/php/Yii/framework/yiic webapp /var/www/html/appname
If everything went well, you should be able to access your web app with:
http://hostname/appname/
You should see a screen like the following one:
Configuring
Set up the config script to be able to connect to your database.
/var/www/html/webapp/protected/config/main.php
Uncomment the DB section, and add in your database connection details:
'db'=>array(
'connectionString'=>'mysql:host=localhost;dbname=http_auth',
'username'=>'root',
'password'=>'d2x@1A1!aa!a!',
'emulatePrepare'=>true
),