Create first yii application in linux question.

I am a bit new to yii so I need you guys help.

I am trying to create first application in this page.

However, I am using Kubuntu and my www is under root system 'var' folder which can’t be accessed from terminal service.

YiiRoot/framework/yiic webapp WebRoot/testdrive

php YiiRoot/framework/yiic.php webapp testdrive

so these two commands won’t work. I was wondering if anyone here can help me out. Thanks.

If your current user doesn’t have permissions, you’ll have to either:

  1. sudo or

  2. su - root

  3. login as a user with appropriate permissions

My guess is you’ll have to sudo (i.e. put sudo in front of your commands). This assumes your user has sudo rights to execute as root. The system will prompt you for your password.

Yes. My brain was dead this morning. I got it now. Thanks for the help.