Skip to content

Latest commit

 

History

History
executable file
·
93 lines (93 loc) · 4.55 KB

ReadMe.md

File metadata and controls

executable file
·
93 lines (93 loc) · 4.55 KB

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

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

一、下载
https://github.com/ksphp/webmis(点击右下角的“ZIP”图标下载)

二、安装
    文件解压到网站跟目录;

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

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

    注意:如果不是在根目录下安装,必须更改.htaccess 如:“/目录名/”与“/目录名/admin/”

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

四、目录说明
admin-----------------------------后台管理
        app---------------------------CI项目目录
        backup------------------------数据备份目录
        js----------------------------后台数据处理的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

然后配置根目录和amin下的 .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/app/config/config.php 文件,如:$config['base_url'] = 'http://www.ksphp.com/admin';