Yii Framework Forum: Yiic Command Not Found - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yiic Command Not Found The yiic command used to create a application cannot be found. Rate Topic: -----

#1 User is offline   Corne Lombaard 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 27-February 13

Posted 05 March 2013 - 03:22 AM

I am a complete beginner.

I have installed XAMPP on my Linux system and it work. I then extracted the yii framework to the htdocs folder. I set up the PATH to include the location of the framework directory

When I try and create an application using the yiic script I get an error 'Command not found'

The server is running and I have done all the rest of the stuff like the book tells me but it does not work.

Like I said I am new so if someone can help me I will really appreciate it allot

Regards
0

#2 User is offline   PrplHaz4 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 108
  • Joined: 28-September 09
  • Location:Boston, MA

Posted 08 March 2013 - 02:01 PM

Two things to try for calling yiic:
.\yiic

or
php yiic.php


0

#3 User is offline   CPzee 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 59
  • Joined: 11-November 11
  • Location:Sri Lanka

Posted 20 March 2013 - 02:00 AM

create symlink in /usr/bin (UBUNTU) as yiic and set the path of framework/yiic. Then you can excecute the yiic command in anywhere.
Command (if framework path in /data/lib/php/yii)
go to /usr/bin and
ln -s /data/lib/php/yii/framework/yiic yiic
Found anything useful???? Pls click +
Ubuntu 12.04--PHP 5.3.10(Yii v1.1.13)
0

#4 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 20 March 2013 - 02:35 AM

I think it's better to add it to the PATH variable in .bashrc:



# add Yii framework dir to PATH
PATH="/var/www/yii/framework:$PATH"

"Less noise - more signal"
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users