Difference between #4 and #10 of
How to setup yiic on WAMP (XP/Vista)

Changes

Title changed

Setting How to setup yiic on WAMP (XP/Vista)

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

This page assumes that you have installed [Wampserver](http://www.wampserver.com/en/ "Download wampserver") on your MS Windows computer. Start with downloading [Yii](http://www.yiiframework.com/download/ "Download Yii") and deploy the framework in your webroot/vhost (`C:\wamp\www\`). Open the Environment Variables window by going to: `Start -> My Computer (right click!) -> Advanced Tab -> Environment Variables -> Click Path in System variables -> Edit`.
 
 
In Windows 7, press the Win key and type "env". You should see a control panel section with a shortcut to "Edit the system environment variables". Select it and then click on "Environment Variables...".
 
 
Click on the variable called PATH and click "Edit...". Do not delete the paths already there! Separate each path with semicolons.
 
 
Now you have to add the following PATH:s in Windows: "`C:\wamp\bin\php\php5.2.8`" and "`C:\wamp\www\framework`". The former path should lead where your <i>php.exe</i> resides, and the latter where your <i>yiic.bat</i> resides. To do so, go to: `start -> My computer(right click!) -> Advanced Tab -> Environment Variables -> Click Path in System variables -> Edit`
 
 
After entering the paths, type `cmd` in your startmenus searchfield, and go to the webroot

 
 
After entering the paths, type `cmd` in your startmenus searchfield, and go to the webroot. You may have to restart the computer if this does not work for you so that Windows can register the new variables
.

`yiic webapp mywebsite`
[...]
This command will start the local yiic shell that gives you access to the CRUD commands and even the commands that you build into your webapp.

Don't forget to configure your [database settings](http://www.yiiframework.com/doc/guide/quickstart.first-app#connecting-to-database "Configure database settings") in `protected\config\console.php`.

 
2 0
5 followers
Viewed: 95 038 times
Version: 1.1
Category: Tutorials
Tags:
Written by: krillzip
Last updated by: Yang He
Created on: Feb 5, 2009
Last updated: 12 years ago
Update Article

Revisions

View all history