Server Yii Framework

Setting up Yii Environment on your Server

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


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: