如何安装泛目录程序?

环境配置

系统:Linux+Centos7.x

环境:Php8.x+nginx1.x+Mysql8.x

如何安装

1、PHP先开启pdo、zip扩展

2、上传程序包fml.zip

3、/fml/register.php 初始化

4、初始化完成后/fml 登录后台

5、配置伪静态

location / {
    try_files $uri $uri/ /index.php?s=$uri&$args;
}
    location ~ \.(rar|zip|7z|tar.gz|cab|jar|ace|sqx|gzip|log|sql)$ {
        deny all;
}

6、配置反垃圾蜘蛛策略

#屏蔽垃圾扫描蜘蛛
if ($http_user_agent ~* (SemrushBot|python|MJ12bot|AhrefsBot|AhrefsBot|hubspot|opensiteexplorer|leiki|webmeup)) {
        return 403;
}

7、根目录 control.php 配置

<?php
$BaiduPush = 1 ;
// 百度推送
$Titletranscoding = 1 ;
// 老猫本地标题转码
$fullnametranscoding = 1 ;
// 老猫姓名转码
$Suffixtranscoding = 1 ;
// 老猫标题后缀转码
$Contacttranscoding = 1 ;
// 老猫联系方式转码
$Keywordtranscoding = 1 ;
// 老猫关键词转码
$Sentencetranscoding = 1 ;
// 老猫句子转码
$Prefixtranscoding = 1 ;
// 老猫标题前缀转码
$Pdctranscoding = 1 ;
// 老猫省区县转码
$Citytranscoding = 1 ;
// 老猫城市转码
$Countytranscodin = 1 ;
// 老猫县转码
$Provincetranscoding = 1 ;
// 老猫省份转码
$Businesstranscodin = 1 ;
// 老猫业务转码
$Slogantranscoding = 1 ;
// 老猫口号转码
$Gpttranscoding = 1 ;
// 老猫gtp统一转码 若使用gpt转码则下方的seo配置转码请关闭
$SeoTitle = 0 ;
// 老猫seo标题转码
$SeoKeyword = 0 ;
// 老猫seo关键词转码
$SeoDescription = 0 ;
// 老猫seo描述
$Cache = 0 ;
// 缓存
$Searchjump = 0 ;
// 搜索跳转

8、根目录 index.php 配置

<?php
header("Content-type: text/html; charset=utf-8");
error_reporting(0);
date_default_timezone_set('PRC');
//include 'secure/UArestrictions.php';
//include 'secure/UAIPrestrictions.php';
include 'method.php';
include 'control.php';
//include 'fml/spider.php';
if (isset($Cache) && $Cache == 1) {
	include 'cache.php';
} else {
	include 'nocache.php';
}

include ‘secure/UArestrictions.php’; 引入UA控制

include ‘secure/UAIPrestrictions.php’; 引入UA+IP控制

以上2选择1

include ‘fml/spider.php’; 引入蜘蛛统计模块,需安装MySQL数据库

9、其余都可以在后台进行配置

10、程序目录文件介绍

index.php首页全局
control.php总开关控制
label.php中文标签
method.php方法分离
reset.php重置数据
cache.php执行缓存
nocache.php不执行缓存
robots.txt都明白
suffix.txt后缀URL
根目录单文件
backups模板备份
bdimg索引背景图
cache自定义缓存存放目录
data所有文章、关键词、模板数据
fanerji友链使用
fml自定义后台访问目录
gather采集脚本
interface日月摘星gpt、百度翻译接口
js自动提交js
libraryip、pinyin库
resources可本地存储的css、js等模板资源
secureua、uaip控制,开启uaip自动记录新蜘蛛IP
tmp索引图
ttf字体库
ycimg远程图片URL
根目录文件夹

此程序只支持utf-8


评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

zh_CN简体中文