Home  >  Article  >  PHP Framework  >  How to solve the problem that the yii2 virtual machine cannot open gii

How to solve the problem that the yii2 virtual machine cannot open gii

藏色散人
藏色散人Original
2020-07-20 11:09:182839browse

The yii2 virtual machine cannot open gii because the default Gii under Linux can only be accessed through "127.0.0.1". The solution is to add your own IP in "conf/main-local.php". Can.

How to solve the problem that the yii2 virtual machine cannot open gii

yii2 cannot enable gii under linux

Reason:

The default Gii under linux It can only be accessed through 127.0.0.1, which is local access, safe;

Solution:

Add your own ip in conf/main-local.php

How to solve the problem that the yii2 virtual machine cannot open gii

Recommended: "yii tutorial"

The above is the detailed content of How to solve the problem that the yii2 virtual machine cannot open gii. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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