Yii Framework Official Tutorial Supplement 2--start: Install YII framework

Source: Internet
Author: User

The installation of YII consists of the following two steps:

  1. Download the YII framework from yiiframework.com.
  2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.