Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ jtbc5 Public
forked from 7hui-com/jtbc5

源自2006年的一款CMS

License

ewintec/jtbc5

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JTBC CMS(5.0)

官方网站:

https://www.jtbc.cn/

系统特点:

JTBC CMS(5.0) 是一款基于PHPMySQL的内容管理系统原生全栈开发框架,开源协议为AGPLv3,没有任何附加条款。系统可以通过命令行一键安装,源码方面不基于任何第三方框架,不使用任何脚手架,仅依赖一些常见的第三方类库如图表组件等,您只需要了解最基本的前端知识就能很敏捷的进行二次开发,同时我们对于常见的前端功能做了Web Component方式的封装,即便是您仅了解HTML/CSS也能在二次开发方面游刃有余。另外,对于常见的应用如企业网站等,则可通过后台的云端市场直接一键安装,哪怕是没有任何技术背景也可以轻松驾驭!

运行环境:

PHP(8.0+), MySQL(8.0+)

一键安装:

如果您有全新安装的服务器操作系统并且具备root权限,那么可以尝试一键安装。

1.ubuntu server [22.04 | 24.04]

curl https://download.jtbc.cn/php/5.0/ubuntu-jtbc-install.sh | sudo sh

2.debian server [11 | 12]

curl https://download.jtbc.cn/php/5.0/debian-jtbc-install.sh | sudo sh

手动配置:

  1. 需要将站点主目录设置为Public目录。
  2. 需要HTTP Server支持PATH_INFO并将所有请求转发至入口文件即可。

1.Nginx

需要在配置文件中的server下增加配置:

if (!-f $request_filename) {
  rewrite ^(.*)$ /index.php$1 last;
  break;
}

另外需要添加配置让Nginx支持PATH_INFO参考如下:

location ~ \.php {
  fastcgi_pass unix:/run/php/php8.4-fpm.sock;
  fastcgi_index index.php;
  include fastcgi_params;
  set $real_script_name $fastcgi_script_name;
  if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
    set $real_script_name $1;
    set $path_info $2;
  }
  fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
  fastcgi_param SCRIPT_NAME $real_script_name;
  fastcgi_param PATH_INFO $path_info;
}

2.Apache

安装完成之后,在Public目录下设置.htaccess文件:

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ /index.php/$1 [QSA,PT,L]
</IfModule>

3.IIS

需要安装地址重写模块,下载地址:https://www.iis.net/downloads/microsoft/url-rewrite 安装完成之后,在Public目录下设置web.config文件,内容为:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule name="index">
          <match url="(.*)" />
          <conditions>
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
          </conditions>
          <action type="Rewrite" url="index.php/{R:1}" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>

更多帮助:

https://help.jtbc.cn/php/5.0/

部分模板(整体应用包)预览:

© 2004~2025 上海七慧网络科技有限公司 All Rights Reserved.

About

源自2006年的一款CMS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 46.4%
  • PHP 30.9%
  • CSS 22.5%
  • HTML 0.2%