Can't get Yii Up and Running on XAMPP on Ubuntu

Hi I tried Yii about a year ago on windows and it worked just find… Got it setup on XAMPP but theres an issue with the yiic code generator. I can’t get it to generate a demo app, just wondering if something in the configuration needs to be changed to point to the htdocs instead of WebRoot.

Here’s the path running to my yii root folder including the error messages i’m getting.

lanesa@lanesa-mocha:~$ cd /opt/lampp/htdocs

lanesa@lanesa-mocha:/opt/lampp/htdocs$ yii/framework/yiic webapp htdocs/testdrive

/usr/bin/env: php: No such file or directory

as the error says it cannot find php… check that you have the php-cli installed… if it’s installed then you need to put his path in the PATH variable so that you can execute it from any folder