Yii on Centos 6 Linux (64 bit) Installation1 min read

Yii Logo

yiilogoOne day I was looking on the Internet to find a good PHP framework, and I stumble upon the Yii framework. The Yii framework website defines itself as: “Yii is a high-performance PHP framework best for developing Web 2.0 applications.” However I looked around and found a lot of people talking how fast is this framework. So I decided to give it a try and install it on my own.
Here is my installation process…..
First of all update the OS by running yum update

[root@yii ~]# yum -y update

Now install PHP and Http packages

[root@yii ~]# yum -y install php* unzip

Activate httpd to start automatically

[root@yii ~]# chkconfig httpd on

Modify using a text editor, locate date.timezone in the file /etc/php.ini for the timezone that is appropriate for your server. I.e. date.timezone = “America/New_York”

[root@yii /]# vi /etc/php.ini

Start Httpd

[root@yii ~]# service httpd start
Starting httpd: [OK]

NOTE: Make sure your firewall is open for the selected http port (normally 80 or 443)
Check for the latest release of Yii under

[root@yii ~]# cd /var/www
[root@yii html]# wget

Unzip and change the mode to 755 for all files in the extracted directory

[root@yii www]# unzip -d /var/www
[root@yii www]# chmod -R 755 /var/www/yii-1.1.10.r3566

Create your test application

[root@yii www]# php /var/www/yii-1.1.10.r3566/framework/yiic.php webapp /var/www/html/test

Using a browser go to your newly created Yii web application “test”

Did you like this information? Share it with your colleagues:
Scroll to top