user983983
user983983

Reputation: 158

Yii new project cmd

I have been using xampp server. I'm trying to make a new project. I have been giving a command,

C:\xampp\htdocs\yii\framework\yiic

It says,

php.exe is not recognized as an internal or external command, operable program or batch file.

I have also set the system variable, path as

C:\xampp\htdocs\yii\framework\yiic

. Whats the problem here?

Upvotes: 1

Views: 1360

Answers (3)

Hamzeh Soboh
Hamzeh Soboh

Reputation: 7720

This what worked with me:

D:\ProgramFiles\xampp\php\php D:\ProgramFiles\xampp\htdocs\yii\f
ramework/yiic webapp D:\ProgramFiles\xampp\htdocs\ProjectName

Upvotes: 0

toby
toby

Reputation: 21

You need add PHP path to system environment or use the direct path of php.exe,just like:

    c:\xampp\php\php.exe yiic webapp c:\xampp\htdocs\yourappname 

Upvotes: 1

Nauphal
Nauphal

Reputation: 6192

You need to set the path to php also

check this

Upvotes: 1

Related Questions