GithubHelp home page GithubHelp logo

yambug / ringblog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oonne/ringblog

0.0 1.0 0.0 530 KB

A simple blog. Base on Yii2.

Ruby 1.38% PHP 92.73% CSS 2.81% JavaScript 0.35% Batchfile 0.88% Shell 1.85%

ringblog's Introduction

ringBlog

A simple blog. Base on Yii2.

Yii2

REQUIREMENTS The minimum requirement by Yii is that your Web server supports PHP 5.4 .

一个基于Yii2的博客系统。Demo:http://blog.oonne.com

【准备工作】

  1. 确保你的服务器安装了PHP 5.4以上版本,推荐使用MySql数据库;
  2. 将域名解析到您的服务器,您需要准备两个二级域名:一个用于博客,一个用于后台管理。这能使博客更加安全;
  3. 确保服务器已经安装了composer(可以在Composer中文官网找到下载地址和安装方式);
  4. 运行 composer global require "fxp/composer-asset-plugin:*" 来安装Composer Asset插件,Yii2 通过这个插件来安前端开发所用到依赖包;
  5. 确保服务器安装了git。

【安装流程】

  1. 在您服务器的 Web 访问目录下克隆项目。运行:git clone https://github.com/oonne/ringBlog.git
  2. 打开 project目录下运行"composer install"。composer将帮您安装所需的插件和依赖;
  3. 运行 init 对系统进行初始化,在这一步您可以选择作为开发模式还是生产模式;
  4. 打开project/common/config目录,编辑main-local.php文件,填入您的数据库信息。您还可以通过修改params.php和params-local.php进一步修改您博客的设置;
  5. 在project目录下运行"php yii migrate/up",这个命令将帮您初始化数据库;
  6. 在project/frontend/web下有一个"uploads"的文件夹,已经有写入的权限了(777),这个是上传图片和附件的文件夹。如果想修改这个路径,可以编辑project/backend/config/UEditor.json的配置,但是要确保文件夹有写入的权限;
  7. 访问您的博客后台,初始的帐号和密码是"admin"。

ringblog's People

Contributors

oonne avatar victorruan avatar

Watchers

James Cloos 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.