Windows Yii creation app and error handling

Source: Internet
Author: User

Win7, run as Administrator cmd.exe

This example is in the WAMP environment:
Switch to the D drive, and then switch to the framework directory ....
1--c:\windows\system32> D:

2--d:\>CD D:\wamp\www\yii\framework

  Run YIIC command
3--d:\wamp\www\yii\framework yiic

4--- Under the Yii directory, create an application with the directory named Newstar
d:\wamp\www\yii\ Framework> yiic      webapp . /newstar


---Error executing YIIC -------
1. Modify the Yiic.bat file
Open the Yii installation directory D:/www/yii/framework/yiic.bat,yiic.bat with Notepad open with the following line:
If "%php_command%" = = "" Set php_command= php.exe
The YIIC was not found because Wamp was installed without adding php.exe to the Windows environment variable. You need to assign the absolute path of the Php.exe to the Php_command.
(Your PHP installation path)
"%php_command%" = "" "Set php_command= D:\wamp\bin\php\php5.3.10\php.exe

Windows Yii creation app and error handling

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.