Tuesday, April 9, 2013

yii installation in windows

  • Download Yii Framework from yiiframework.com or here
  • Unpack the Yii release file to a Web-accessible directory.
  • Tip: Yii does not need to be installed under a Web-accessible directory. A Yii application has one entry script which is usually the only file that needs to be exposed to Web users. Other PHP scripts, including those from Yii, should be protected from Web access; otherwise they might be exploited by hackers.
    Yii Web Programming Framework
    =============================
    INSTALLATION
    Please make sure the release file is unpacked under a Web-accessible
    directory. You shall see the following files and directories:

          demos/               demos
          framework/           framework source files
          requirements/        requirement checker
          CHANGELOG            describing changes in every Yii release
          LICENSE              license of Yii
          README               this file
          UPGRADE              upgrading instructions


    REQUIREMENTS
    ------------

    The minimum requirement by Yii is that your Web server supports
    PHP 5.1.0 or above. Yii has been tested with Apache HTTP server
    on Windows and Linux operating systems.

    Please access the following URL to check if your Web server reaches
    the requirements by Yii, assuming "YiiPath" is where Yii is installed:

          http://hostname/YiiPath/requirements/index.php


    QUICK START
    -----------

    Yii comes with a command line tool called "yiic" that can create
    a skeleton Yii application for you to start with.

    On command line, type in the following commands:

            $ cd YiiPath/framework                (Linux)
            cd YiiPath\framework                  (Windows)

            $ ./yiic webapp ../testdrive          (Linux)
            yiic webapp ..\testdrive              (Windows)

    The new Yii application will be created at "YiiPath/testdrive".
    You can access it with the following URL:

            http://hostname/YiiPath/testdrive/index.php

No comments:

Post a Comment