1. Download the yii2 framework locally, and extract yii2 to the website root directory of the local server, which is the directory of WWW
2. Click to enter the directory of the decompressed yii2. The directory we want to access is the web directory
3. Then we open the local server. I use It is an apache server and uses the integrated software of phpstudy
4. After starting, we enter in the browser the web directory under the yii2 folder we just mentioned
Recommended tutorial: yii tutorial
The above is the detailed content of How to install yii2 framework. For more information, please follow other related articles on the PHP Chinese website!