Zencart156c开启file类型缓存
1、define('SQL_CACHE_METHOD', 'none');改成define('SQL_CACHE_METHOD', 'file');2、增加一行define('DIR_FS_SQL_CACHE', DIR_FS_CATALOG . 'cache/');3、应用站 mate-doll
1、define('SQL_CACHE_METHOD', 'none');改成define('SQL_CACHE_METHOD', 'file');2、增加一行define('DIR_FS_SQL_CACHE', DIR_FS_CATALOG . 'cache/');3、应用站 mate-doll
如果导航条内容超过一行,顶部会有大片空白,修复此问题。将此段CSS内容追加到/includes/templates/marcus/css/style_user_customcss.css文件的末尾即可。header-wrap-fix.txt
本地开发的临时域名或者旧域名,直接在sql里批量替换可能出问题可以在服务器上安装wp cli然后使用以下脚本迁移命令.txt
1292 Incorrect datetime value: 'NULL' for column 'news_end_date' at row 1 in: [insert into box_news (news_start_date, news_end_date, news_added_date, news_status) values ('2026-10-12 00:00:00', 'NULL'
1、编辑/etc/sysctl.conf2、末尾加入net.ipv4.ip_forward = 1 net.ipv6.conf.all.forwarding = 1 3、执行sysctl -p 4、重启Tailscalesystemctl restart tailscaled 5、开启Exit Node模式tailscale up --advertise-exit-node 6、去 Tailsca
新建脚本nano /root/truncate_whos_online.sh给脚本执行权限chmod +x /root/truncate_whos_online.sh手动测试一次bash /root/truncate_whos_online.sh查看日志:cat /www/wwwlogs/truncate_whos_online.log 宝塔里设置定时任务计划任务 → 添加任务 → Shell脚本
本地->远程rsync -avzP /www/wwwroot/folder/ root@remote_ip:/www/wwwroot/folder/本地->远程加限速和端口号rsync -avzP --bwlimit=2000 -e 'ssh -p 123' root@remote_ip:/www/wwwroot/folder/ /www/wwwroot/folder/远程->本
1、/includes/languages/english/html_includes/marcus/define_xxx.php2、编辑,参考附件ez pages bak.txt3、设置文件权限555,防止客户在后台乱改
找不到管理员密码的时候,直接创建一个新超管INSERT INTO wp_users (user_login, user_pass, user_nicename, user_email, user_status, display_name) VALUES ('newadmin', MD5('Admin@123456'), 'newadmin', '[email protected]', 0, 'ne
server_hardening.zip根据碰到的实际情况,让gpt写了一份根据服务器配置和环境自动优化的脚本功能概览 1)自动优化(安全 + PHP + MySQL) 执行后脚本会一次性完成以下几类优化: 安全增强 关闭 UFW / firewalld 的过度日志输出,降低 journalctl 写入压力。 添加基础 iptables 防护规则,限制 SYN
1、安装Redis2、修改Mysql配置 (2C2G参考)innodb_buffer_pool_size = 512M #固定缓存max_connections = 100 #最大并发连接数上限query_cache_size = 0 #关闭老旧的查询缓存table_open_cache = 1024 #缓存已打开的表,减少频繁打开文件的开销tmp_table_size =
使用二开的PPOffline等支付接口时,提交订单出现WARNING: An Error occurred。环境Debian10+Mysql5.7,原因是MySQL 5.7 很常见的严格模式。在MySQL的cnf里找到sql-mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES把STRICT_TRANS_TABLES删除,然后重启MySql和PHP即可
修改/includes/templates/marcus/common/tpl_drop_menu_mobile.php把第二个<li>的内容也就是<span class="name"> <a href="#"><span class="act-underline"><?php ech
一、隐藏ID=1的超级用户1、adminpath/user.php2、在103行左右,找到$userList = zen_get_users();3、在下边加一行$userList = array_values(array_filter($userList, function($u) {return (int)$u['id'] !== 1;}));二、设置只有ID=1的Superuser才能添加用
1、覆盖原版的/includes/modules/marcus/attributes.php文件2、将/includes/templates/marcus/templates/tpl_modules_attributes.php里的46行的<ul class="options-swatch options-swatch--color options-swatch--lg"
Define页面默认不执行php,本主题的/includes/languages/english/html_includes/marcus/define_homepage_v*都是。所以首页想调用一些在后台自定义的HTML代码,只能通过如下方法:1、在/includes/languages/english/html_includes下新建define_home_content_1.php、defi
※ 官方英文教程 https://wpglozin.com/docs/#/※ Contact顶部的联系方式在page contact 里直接edit,拉到最底下,不在elementor里,不成功的话直接sql因为有2条记录。UPDATE wp_postmeta SET meta_value = 'Please fill out the form below and our team will re