The installation of YII consists of the following two steps:
- Download the YII framework from yiiframework.com.
- Unzip the Yii tarball into a Web-accessible directory (such as your Web root/www/wwwroot/).
Tip: Installing in a web directory is not required, and each YII app has a portal script that only has to be exposed to the Web user. Other PHP scripts (including Yii) should be protected from WEB access, as they may be exploited by hackers.
Demand:
After installing Yii you may want to verify that your server meets the requirements of Yii, just enter the following URL in the browser to access the requirements detection script:
http://hostname/path/to/yii/requirements/index.php
The above is the test results section.
The minimum requirement for YII is that your WEB server supports PHP 5.1.0 or later versions. Yii is tested through the Apache HTTP server on Windows and Linux systems. In theory, Yii works correctly on other WEB servers and platforms that support PHP 5.1.
It is important to note that not all extensions in the above test results must be installed, you only need to install those that are marked as mandatory by the YII framework, such as PDO, and others are installed on demand as needed.
Installation:
The installation of Yii is simple, just to copy the downloaded Framework folder to the appropriate path. For security reasons, it is best not to place the folder under the Web root directory. If you are creating multiple sites on the same server, it is a good idea to place the framework folder in a convenient location for each site to read, so that when you update the YII framework, you only need to update it in one place.
Yii Framework Official Tutorial Supplement 2--start: Install YII framework