Saturday, September 24, 2011

Installing yiiframework in ubuntu 10.04

download yiiframework in yii's web .
uncomprese it , for example
$tar -xvzf yii-1.1.8.r3324.tar.gz

rename directory yii-1.1.8.r3324 with yii
$mv yii-1.1.8.r3324 yii

move yii directory into your home
$mv yii /home/user

create directory ~/bin for accesing yii more simple in your home directory
~$mkdir bin

make sure that "bin" directory added in ~/.profile
add list
if [-d "$HOME/bin" ] ; then $PATH="$HOME/bin":$PATH fi

create link inside of bin with yii using
ln -s /home/user/yii/framework/yiic yiic

test with create project using
$yiic webapp nameofyourweb

if you got some error , try to do this
$chmod +x /home/user/yii/framewor/yiic
create project using
$./yiic webapp nameofyourweb
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0 Create a Web application under '/home/gelo/yii/framework/demo'? [Yes|No] yes

No comments:

Post a Comment