Home  >  Article  >  PHP Framework  >  yii2 cannot access gii under linux

yii2 cannot access gii under linux

王林
王林Original
2020-02-27 11:22:161920browse

yii2 cannot access gii under linux

Cause:

Because the default Gii under Linux can only be accessed through 127.0.0.1, that is, local access;

Solution:

(Related tutorials recommended: yii framework)

Just add your own IP in conf/main-local.php, as follows:

yii2 cannot access gii under linux

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 yii2 cannot access gii under linux. 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