呆错文章管理系统通用安装配置

2022-06-03 23:02:31 使用文档 安装配置

环境要求

操作系统
Linux/Unix 或 Windows

软件环境
Apache/Nginx , PHP 5.4+ 或 PHP 7+(请将PHP的运行方式修改为PATH_INFO!

安装步骤

  1. 配置 apache/nginx 服务器,请将网站的根目录配置到 <网站目录>;
  2. 上传 源代码到您<网站目录>
  3. 给 <网站目录>/datas 文件夹及子文件夹加上写入权限

Nginx参考配置

server{
    listen 80;
    
    server_name demo.daicuo.org;
    
    index index.php index.html index.htm  default.html default.htm default.php;
    
    root  /home/wwwroot/demo.daicuo.org;
    
    location / { 
      if (!-e $request_filename) {
        rewrite  ^(.*)$  index.php?s=/$1 last;
        break;
      }
    }
    
    include enable-php-pathinfo.conf;
    
    location ~ .*\.(s3db|db|db3|tpl)$
    {
        deny all;
    }
    
    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
    {
        expires      30d;
    }
    
    location ~ .*\.(js|css)?$
    {
        expires      12h;
    }
    
    access_log  /home/wwwlogs/demo.daicuo.org.log;
}

Apache参考配置

<VirtualHost *:80>
ServerName www.example.com
DocumentRoot d:/wwwroot/example.com

</VirtualHost>

56

作者:admin

链接:https://demo.daicuo.cc/cms/detail/index?id=663

来源:呆错框架演示

著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

上一篇:使用青苹果影视系统3分钟搭建一个24小时免更新的电影网站

下一篇:呆错网址导航系统如何填写ICP备案号与公安网备案号?