Installation

Installation of Yii mainly involves the following two steps:

  1. Download Yii Framework from yiiframework.com.
  2. 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.

1. Requirements

After installing Yii, you may want to verify that your server satisfies Yii's requirements. You can do so by accessing the requirement checker script via the following URL in a Web browser:

http://hostname/path/to/yii/requirements/index.php

Yii requires PHP 5.1, so the server must have PHP 5.1 or above installed and available to the web server. Yii has been tested with Apache HTTP server on Windows and Linux. It may also run on other Web servers and platforms, provided PHP 5.1 is supported.

$Id$

Total 6 comments

#15327 report it
aintgel at 2013/10/29 07:55am
Yii installation in windows
  1. Download the latest version / most stable
  2. Extract at your most comfortable path (e.g. c:\framework)
  3. Register the path were your php.exe reside at Window Environment Variables (e.g C:\Wamp2.4\bin\php\php5.4.16)
  4. Logoff windows to take effect
  5. Create application in windows click Start->Run then keyin cmd
  6. at the console environment type this based on the given example "c:\framework\yiic webapp wamp2.4\www\name_of_the_application"
#14359 report it
arun vivek at 2013/08/06 04:52am
Installation-YII-Windows

To install YII(in windows) plz follow the steps...

1.download zip file (rename it to yii)

2.Unzip it and place it into wamp/www

3.copy the php version path c\wamp\bin\php\php5.3.13

4.run the below code on command prompt

c\wamp\bin\php\php5.3.13>" c:\wamp\www\yii\framework\yiic.bat" webapp "c:\wamp\www\yii\newyii"

newyii is the folder name of your yii

#10839 report it
HelixNebula at 2012/11/27 04:36am
The download and where to place the folders

The Yii framework is downloaded as a .tar or .zip file, which contains 3 folders (demos, requirements, framework) and some instructions in plain text files. The demos and requirements folders will need to be placed into a Web-accessible directory so that they can be accessed in your browser. The framework folder can be placed securely elsewhere, so long as the application's entry script php file contains the correct path to yii.php

#6468 report it
Benjamin Bunse at 2012/01/12 08:23am
chmod syntax

Correct syntax would be:

chmod -R 755 [folder_name]

or

chmod -R u+rwx,go+rx,go-w [folder_name]
#4469 report it
killermonk at 2011/07/12 12:06am
Don't use 777

Using the permissions of 777 is a very bad idea. It means that anyone can write content to the files. This can lead very easily to arbitrary code getting written to the file and executed every time the script is accessed.

Do a chmod 755 instead. This gives the everyone read and execute permissions, but only the owner write permissions.

#1075 report it
Munich at 2009/12/17 04:24pm
failed to open stream: Permission denied in Unknown on line 0

If you get this error on OS X using MAMP then try the tar.gz version of the download instead of the zip.

Leave a comment

Please to leave your comment.