Giter VIP home page Giter VIP logo

webmis's Introduction

WebMIS简介

WEBMIS是免费开源PHP开发CMS系统,基于CI的MVC模式开发的多用户、多权限解决方案,可以后台添加管理菜单,整合了Jquery,TinyMCE编辑器等插件、实现简洁、美观的弹框效果!

官方网站:灵创网络
开源项目:WebMIS
在线体验:http://webmis.ksphp.com/admin
账户:webmis    密码:ksphp.com

安装和配置

一、下载

https://github.com/ksphp/webmis/releases

二、安装

文件解压到网站跟目录;

方法一:安装向导
访问“install”目录

方法二:手动安装
(1)创建数据库、导入“install”下的“webmis.sql”数据库文件;
(2)修改数据库配置文件;
管理后台:admin/app/config/database.php
网站前台:web/config/database.php
(3)修改 “/” 根目录和 “/admin” 下面的 .htaccess 文件(必须支持重写);

问题1、二级目录 或 多级目录
(1)编辑“/”下的“.htaccess”文件
RewriteBase /二级目录/
(2)编辑“/admin/”下的“.htaccess”文件
RewriteBase /二级目录/admin/
(3)编辑“/webmis/”下的“jquery.webmis.js”文件
$webmis_root = '/二级目录/webmis/';
(4)编辑“/admin/controllers/”下的“sys_filemanager.php”文件
$upload = '/二级目录/upload';

问题2、环境不支持重写
(1)编辑“/admin/config/”下的“config.php”文件
$config['index_url'] = 'index.php/';
(2)编辑“/web/config/”下的“config.php”文件
$config['index_url'] = 'index.php/';
注意:如果出现“403”错误,更改为“index.php?/”

三、测试

网站前台:http://localhost/web
管理员后台:http://localhost/admin (帐号:admin 密码:admin)

目录说明

admin-----------------------------后台管理
        backup------------------------数据备份目录
        config------------------------配置文件
        views--------------------------视图目录:包括视图、主题目录、后台JS动作
        .htaccess---------------------后台重写文件、屏蔽index.php
install---------------------------安装向导
system----------------------------CI框架目录
themes----------------------------前台样式目录
        css---------------------------样式目录
        images------------------------图片目录
upload----------------------------上传目录
web-------------------------------网站前台
webmis----------------------------前端样式插件
        plugin------------------------第三方插件
        src---------------------------JS插件
        themes------------------------样式目录
        jquery.webmis.js--------------webmis插件
index.php-------------------------接口文件
.htaccess-------------------------前台重写文件、屏蔽index.php

 

去除index.php的方法

一、Apache

开启重写
方法一:
[...]
    AllowOverride All #开启重写
    Require all granted
    Options Indexes FollowSymLinks #浏览目录
[...]

方法二:
> a2enmod rewrite

然后配置根目录和admin下的 .htaccess 文件

二、Nginx

location / {
    try_files $uri $uri/ /index.html;
    #Hide index.php
    if (!-e $request_filename) {
        rewrite ^/(.*) /index.php last;
    }
}

location /admin/ {
    try_files $uri $uri/ /index.html;
    #Hide index.php
    if (!-e $request_filename) {
        rewrite ^/admin/(.*) /admin/index.php last;
    }
}

注意:如果ci无法读取真实URL地址,需要配置 admin/config/config.php 文件,如:$config['base_url'] = 'http://www.ksphp.com/admin';

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.