How to Setup Yii on your Environment Server
1. Make Sure your vhost is setup correctly, with debian/ubuntu that is /etc/apache2/sites-available/sitename
Options FollowSymLinks -Indexes Includes
AllowOverride All
2. Set your include path in php.ini that is etc/php/apache2/php.ini
; UNIX: "/path1:/path2"
include_path = ".:/usr/share/library"
3. Download, get url from Yii Download Page
wget https://github.com/yiisoft/yii/releases/download/1.1.14/yii-1.1.14.f0fee9.tar.gz
4. Unzip
tar -xzvf file.tar.gz
5. Change name, Set Permissions, Restart Apache:
mv yii-1.14e2938u123 yii
chown www-data:www-data yii/
chmod -R 755 yii/
service apache2 restart
6. Finally you still need to give the exact directory in index.php of the yii.php:
$yii=dirname(__FILE__).'/../../../usr/share/library/yii/framework/yii.php';