dd

PHP便于二次开发的web内容管理系统

汉王 整站源码 收藏

安装

建议安装环境: Linux + Apache + PHP or Linux + Nginx + PHP
安装步骤:
1、建立一个utf-8编码的数据库
2、将 kiscms.sql 导入到新建立的库中
3、配置数据库连接文件 Application/Common/Conf/db.php
4、进入后台更改密码,后台地址:http://域名/admin/Sign/index.html
5、如果要保护后台地址,可以更改 Application/Common/Conf/config.php 中的 URL_MODULE_MAP 进行模块映射,配置完毕后,清空Runtime文件夹
后台初始化登录帐号

 帐号:admin@admin.com  密码:12345678 

Apache服务器的伪静态规则

 <IfModule expires_module>
        ExpiresActive On
        <FilesMatch "\.(gif|jpg|png|js|css)$">
            ExpiresDefault "access plus 30 days"
        </FilesMatch>
    </IfModule>
    <IfModule mod_rewrite.c>
         RewriteEngine on
         RewriteCond %{REQUEST_FILENAME} !-d
         RewriteCond %{REQUEST_FILENAME} !-f
         RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]
    </IfModule>

Nginx服务器的伪静态规则

#如果请求既不是一个文件,也不是一个目录,则执行一下重写规则
    if (!-e $request_filename)
    {
        #地址作为将参数rewrite到index.php上。
        rewrite ^/(.*)$ /index.php?s=$1;
    }
    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
    {
        access_log off;
        expires      30d;
    }
    location ~ .*\.(js|css)?$
    {
        access_log off;
        expires      12h;
    } 

Tengine服务器的伪静态规则

    ExpiresActive On
    <FilesMatch "\.(gif|jpg|png|js|css)$">
        ExpiresDefault "access plus 30 days"
    </FilesMatch>
     RewriteEngine on
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L] 

下载地址

dd