How to install Yii Framework within 5 mins

Posted by in Yii

To install Yii in windows (Wamp Server) within 5 minutes, just follow these 5 simple steps.

  1. Download the latest stable version of Yii from this link http://www.yiiframework.com/download/ and unzip this downloaded file into C:\wamp\www (if it is wamp)
  2. Setup Environmental variable:
    1. Go to Control panel > System > Advanced System Settings (Left side Panel).
    2. A popup window will open. Under “Advanced” tab, click “Environment Variable”.

      Set Path variables to install yii framework

      Set Path variables to install yii framework

    3. A “Edit system Variable” Popup window will open. Then edit variable value here.
      Set environmental variables to install yii framework

      Set environmental variables to install yii framework

      Don’t delete the existing variable value, just add semicolon (;) and then path-to-php-engine-location/path-to-yii-framework.

  3. In my case C:\wamp\bin\php\php5.4.3;C:\wamp\www\yii\framework;Then finally it looks something like this,C:\Program Files\PC Connectivity Solution\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\wamp\bin\php\php5.4.3;C:\wamp\www\yii\framework; Then press OK.
  4. Then go to command prompt and follow the steps in image.
    Create Yii Web application in command prompt

    Create Yii Web application in command prompt

    possible errors :{ If framework folder not present in yii folder then it will show “The system cannot find path specified”.}At last it ask,Create a web application under C:\wamp\www\myapp? <yes | no> [no] :
    type y and press enter.

  5. Now myapp folder is created in c:\wamp\www. Then type http:\\localhost\myapp in your web browser.

Share your comments

comments