July 31, 2014

July 31, 2014
In this article, we are going to discuss about How to install YII PHP Framework on Ubuntu Linux systems. YII is widely used best PHP Framework. Yii helps Web developers build complex applications. Yii is pronounced as Yee or [ji:], and is an acroynym for "Yes It Is!". Yii is a free, open-source Web application development framework written in PHP5 that promotes clean, DRY design and encourages rapid development. It works to streamline your application development and helps to ensure an extremely efficient, extensible, and maintainable end product.

Steps to install YII PHP framework on ubuntu linux

Step 1:

Download the latest version of YII framework from http://www.yiiframework.com

Step 2:

Extract downloaded YII framework tar.gz file in same directory

cd Downloads/
tar -zxvf yii-1.1.14.f0fee9.tar.gz

Step 3:

Rename extracted folder as yii

mv yii-1.1.14.f0fee9 yii

Step 4:

Move the extracted YII folder to root directory of your webserver (opt/lampp/htdocs/yii)

mv yii /opt/lampp/htdocs

Step 5:

Create a new folder as name appyii in root directory (appyii will contain yii framework files)

Step 6:

Apply YII framework to your appyii folder by yiic.php webapp file using php cli

mkdir appyii
php yii/framework/yiic.yiic.bat yiic.php
php yii/framework/yiic.php webapp /opt/lampp/htdocs/appyii/
Create a web application under '/opt/lampp/htdocs/appyii'? (yes|no) [no] :

Step 7:

Test that the installation has been done (http://localhost/appyii)

Note: if php command line interpreter not installed

PHP command line installation on Ubuntu Linux

The PHP command-line interpreter runs PHP scripts from the command line.

copy and paste the following command to your terminal

sudo apt-get install php5-cli


Post a Comment