本教程仅供参考,具体请以实际情况为准!

ClassCms介绍:
ClassCMS是一款简洁灵活的开源内容管理系统,可以非常方便的通过它来快速开发各种网站应用。程序兼容PHP5。2–PHP8。0,在Apache、Nginx、IIS上都能使用,默认支持MySQL SQLite两种数据库,支持上百万数据量。
系统没有多余的功能,整体安装包不到1M(去掉编辑器与Layui后不到300KB),拥有完善与灵活的应用插件机制,常用功能均可制作成应用插件。
系统模板语言简单,只需要懂HTML+CSS即可制作简单的网站模板。
后台页面基于Layui制作,自适应页面,在手机端也有不错的使用体验,通过后台模型,可以快速增加栏目,支持无限级栏目,栏目网址支持中文。
拥有各类输入框类型,能快速扩展文章字段,栏目变量,用户属性,通过应用插件也可方便的扩展制作各类输入框。
后台有完善的权限体系,可自定义每个角色的权限,可自定义栏目与输入框与的查看修改权限。
安装步骤一:下载源码上传至网站根目录
下载源码,访问Classcms官网,下载源码,将源码上传到网站根目录
安装步骤二:配置伪静态
ClassCms需先配置伪静态才可进行下一步安装,系统自带apache环境伪静态,如果是Nginx环境,请在伪静态文件(nginx.htaccess)中输入:
location /
{
try_files $uri $uri/ /index.php?$args;
}
或者
location /{
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php/$1 last;
break;
}
}
Nginx子目录伪静态:
location /test/ {
if (!-e $request_filename) {
rewrite . /test/index.php last;
}
}
如果是IIS环境,请在伪静态文件(web.config)中输入:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="ClassCMS" stopProcessing="true">
<match url="^(.*)$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
IIS子目录伪静态(web.config存放于网站根目录)
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="ClassCMS" stopProcessing="true">
<match url="^xxxx/(.*)$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="xxxx/index.php" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
安装步骤三:执行安装程序
访问http://你的域名,系统会自动跳转到安装程序,按照步骤配置数据库信息和网站信息,执行安装即可。

原文链接:https://www.moxiaoseo.com/mx-736.html,转载请注明出处。
评论0