Home >Backend Development >PHP Tutorial >Yii application creation and error handling under Windows, windowsyii_PHP tutorial
Under Win7, run cmd.exe as administrator
This example is in the wamp environment:
Switch to the d drive, and then switch to the framework directory.............
1--C :windowssystem32>d:
2--D:>cd D:wampwwwyiiframework
Run the yiic command
3--D:wampwwwyiiframework>yiic
4---In the yii directory, Create an application with the directory name newstar
D:wampwwwyiiframework>yiic webapp ../newstar
---Error when executing yiic-------
1. Modify the yiic.bat file
Open the yii installation directory d:/www/yii/framework/yiic.bat. Open yiic.bat with Notepad and there is the following line:
if "%PHP_COMMAND%" == "" set PHP_COMMAND= php.exe
Because php.exe was not added to the Windows environment variables during WAMP installation, yiic could not find it. You need to assign the absolute path of php.exe to PHP_COMMAND.
(Your php installation path)
"%PHP_COMMAND%" == "" set PHP_COMMAND= D:wampbinphpphp5.3.10php.exe