Code Monkey home page Code Monkey logo

yii2-advanced's Introduction

Yii2-advanced 高级版yii2.0的开发环境nginx配置

  1. 解压文件
$ tar zxvf 2.0.14.tar.gz

2.配置nginx文件

$ lnmp vhost add

a. 域名: backend.yii.net
   后台指向 /home/wwwroot/default/yii2-app-advanced-2.0.14/backend/web

b. 域名:frontend.yii.net
   前台指向  /home/wwwroot/default/yii2-app-advanced-2.0.14/frontend/web

3.初始化开发文件

#在目录文件夹下执行 init
$ ./init

#开发环境选择Dev

4.修改 .user.ini

#先给可修改的权限
chattr -i .user.ini

# 多加一级 /home/wwwroot/default/yii2-app-advanced-2.0.14/

# frontend/web下的 .user.ini
open_basedir=/home/wwwroot/default/yii2-app-advanced-2.0.14/frontend/web:/home/wwwroot/default/yii2-app-advanced-2.0.14/:/tmp/:/proc/

# backend/web下的 .user.ini
open_basedir=/home/wwwroot/default/yii2-app-advanced-2.0.14/backend/web:/home/wwwroot/default/yii2-app-advanced-2.0.14/:/tmp/:/proc/

5.本地配置 hosts

192.168.1.101 frontend.yii.net

192.168.1.101 backend.yii.net

6.浏览器 地址栏访问

 congration!!!

yii2-advanced's People

Watchers

yuton avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.