UNIX BLOG

Blog for NIX system based administrators

Install YII framework on XAMPP in windows 7

In tutorial it is said to use yyic webapp ../yourproject.

But php.exe is not working.

 

1. Download and unzip the Yii framework: http://www.yiiframework.com/download/

2. unzip it into the folder in your c:\xampp\httpdocs

3. go to cmd.exe (command promot)  and type:

cd c:\xampp\htdocs\framework\ or c:\xampp\htdocs\yii\framework

depending how the YII framework folder installed.

type yiic webapp ../yourfolderproject or yiic webapp ../../yourfolderpoject

Now This will not work.

4. Find this lines in yiic.bat ( set PHP_COMMAND=" ) add this lines C:\xampp\php\php.exe (or your path to the php.exe) just before "%PHP_COMMAND%"

Now yiic webapp ../yourfolderproject will work

That's is the trick to fix the problem with YII framework and xampp instalation on windows system.

Tags: , , , , ,

One Response to “Install YII framework on XAMPP in windows 7”


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>