N_Typecho与宝塔面板迁移相关
Typecho 1.2
typecho.zip
使用宝塔Nginx搭建WebDav时不显示隐藏文件
- 官方Pull,但是没合并:https://github.com/arut/nginx-dav-ext-module/pull/62/files

- 采用的更新:https://github.com/mid1221213/nginx-dav-ext-module/releases/tag/v4.0.1
- 备份:nginx-dav-ext-module-4.0.1.zip
- 宝塔更改:




修改右侧边栏最新文章为最新修改
/typecho/var/Widget/Contents/Post/Recent.php,table.contents.create 改为 table.contents.modified。

修改本地在线兼容的host获取
// config.inc.php
// ATY: user current host url, not localhost
define('__TYPECHO_DYNAMIC_SITE_URL__', 1);更改编辑文章插入附件时自动生成的连接为相对链接并去除http
// config.inc.php
// ATY: remove http://xxx:xxx in files url
define('__TYPECHO_UPLOAD_URL__', '');pagedown.js,修改 (t = 'http://' + t) 去除 http://。

更改环境时记得在config.inc.php修改DB文件目录

PHP打开或安装mbstring
宝塔设置typecho伪静态
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}
修改宝塔默认HTTP_HOST不返回Port
/www/server/nginx/conf/fastcgi.conf fastcgi_param HTTP_HOST $host:$server_port;。

修改nginx及PHP配置


账号备份
https://forum.typecho.org/ : AaronMZ
可道云基础配置
# php.ini
post_max_size = 512M;
upload_max_filesize = 512M;
memory_limit = 512M;
max_execution_time = 3600;
max_input_time = 3600;
# php-fpm
request_terminate_timeout = 3600
# PHP开启shell_exec、exec函数(解压等操作会用到),在‘禁用函数’中删除对应项即可。



可道云优化
https://doc.kodcloud.com/v2/#/help/options
配置优化 - 可道云KODBOX-OpenAPI及开发文档_企业网盘_企业云盘_网盘_云盘.pdf
评论已关闭