#勤道CMS构建文档
##项目简介
勤道CMS首先是一套基础开发框架,一套极简的内容管理系统CMS
勤道CMS基于Codeigniter开发。
##安装
勤道CMS作为一套基础开发框架,为技术人员设计,所以并未提供安装引导程序。
系统设计的初衷之一就是不增加系统功能实现以外的任何代码,保持勤道CMS的简洁,易用。
###导入数据库
####新建数据库:qdsay
CREATE DATABASE IF NOT EXISTS qdsay DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
为数据库:qdsay赋予增删改查权限,并设置密码:123456
GRANT SELECT,INSERT,UPDATE,DELETE
ON qdsay.*
TO qdmaster@localhost
IDENTIFIED BY '123456';
导入数据库表结构:
USE qdsay;
SOURCE ./database/qdsay.sql
####修改数据库配置
#vi application/config/database.php
#vi application/backend/config/database.php
#vi application/config/config.php
#vi application/backend/config/config.php
###文件权限
前台程序入口:qdsay/index.php
后台程序入口:qdsay/backend/index.php
####发布版本文件权限
#sudo chmod -R 755 qdsay
#sudo chmod -R 777 qdsay/uploads
#sudo chmod -R 777 qdsay/application/cache
#sudo chmod -R 777 qdsay/application/logs
#sudo chmod -R 777 qdsay/application/backend/cache
#sudo chmod -R 777 qdsay/application/backend/logs
####开发版本目录权限 勤道基础开发框架chu拥有一个高度自定义的代码生成器 #####前台目录权限
#sudo chmod -R 777 qdsay/application/controllers
#sudo chmod -R 777 qdsay/application/models
#sudo chmod -R 777 qdsay/application/views
#####后台目录权限
#sudo chmod -R 777 qdsay/application/backend/controllers
#sudo chmod -R 777 qdsay/application/backend/models
#sudo chmod -R 777 qdsay/application/backend/views
#sudo chmod -R 777 qdsay/application/backend/scaffold/compiled
#sudo chmod -R 777 qdsay/application/backend/scaffold/template
#sudo chmod -R 777 qdsay/application/backend/scaffold/setup
注:项目发布后,修改上述目录权限为755,如下:
#sudo chmod -R 755 qdsay/application/controllers
#sudo chmod -R 755 qdsay/application/models
#sudo chmod -R 755 qdsay/application/views
#sudo chmod -R 755 qdsay/application/backend/controllers
#sudo chmod -R 755 qdsay/application/backend/models
#sudo chmod -R 755 qdsay/application/backend/views
#sudo chmod -R 755 qdsay/application/backend/scaffold/template
#sudo chmod -R 755 qdsay/application/backend/scaffold/setup