Home > PHP Framework > YII > body text

How to install yii with xampp

王林
Release: 2020-02-20 10:37:13
Original
2906 people have browsed it

How to install yii with xampp

Prerequisite: xampp has been installed

First download the Composer installation package

How to install yii with xampp

The installation is complete, open the cmd window , enter composer to display the following information, indicating that the installation is successful

How to install yii with xampp

(Recommended tutorial: yii framework)

Download the yii2 archive file, download It is best to unzip it to the web project directory. For demonstration, I put it in D:\xampp\htdocs\testyii

How to install yii with xampp

to install yii2 and modify the configuration under D:\xampp\php\ Remove the comment extension=php_openssl.dll from the file php.ini;

yii2 needs to enable extension=php_mysql.dll and extension=php_pdo_mysql.dll, and remove the comment together.

Install yii2 through composer, open the cmd window, switch to the directory where xampp stores the web project, and enter the command: composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced .. /test, after the installation is complete, enter the command: init initialization.

How to install yii with xampp

How to install yii with xampp

Open the xampp control panel, start Apache and mysql, test the installation results in the browser, the front page http://localhost/testyii /frontend/web/, backend page: http://localhost/testyii/backend/web/, if you see the following interface, it indicates that the installation environment is successfully established.

How to install yii with xampp

For more programming-related content, please pay attention to the Programming Introduction column on the php Chinese website!

The above is the detailed content of How to install yii with xampp. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template