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文件夹
后台初始化登录帐号

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

Apache服务器的伪静态规则

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

Nginx服务器的伪静态规则

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

Tengine服务器的伪静态规则

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

下载地址