本文章记录源支付安装相关的教程,重点记录关键易错的步骤。
关于守护进程
用守护进程管理器添加监控 目录选择站点根目录 然后命令是这个:
php think order wxpay_cron php think order alipay_cron
群里有人说用下面的这个命令也行
php81 think order wxpay_cron php81 think order alipay_cron
要添加2个守护进程
关于禁用函数
源支付V8需要删除putenv,proc_open,popen,passthru这4个函数的禁用
源支付官方文档
源支付的官方文档相对来说比较全,可以算是本站教程的补充了
源支付V8官网的教程已经出来了,大家可以去官网查看,本站不再单独更新。
源支付V8官方文档:https://8go.cc/wendang
源支付V8伪静态
location ~* (runtime|application)/{
return 403;
}
# location / {
# if (!-e $request_filename){
# rewrite ^(.*)$ /index.php?s=$1 last; break;
# }
# }
location ~ ^/api/notify/ {
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
location ~ ^/api/OAuthLogin/notify {
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
location / {
if ($request_method ~* OPTIONS) {
add_header Access-Control-Max-Age '86400';
add_header Access-Control-Allow-Origin '*';
add_header Access-Control-Allow-Headers '*';
add_header Access-Control-Allow-Credentials 'true';
add_header Access-Control-Allow-Methods 'GET, POST, PATCH, PUT, DELETE, OPTIONS';
return 204;
}
# 将 index.html 放在第一位可以实现隐藏 index.html
index index.html index.php error/index.html;
# 这一段为 URL重写规则 请确保存在
set $server 0;
if ($request_uri ~* "server=1") {
set $server 1;
}
if ($http_server) {
set $server 1;
}
if ($server = 1) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
try_files $uri $uri/ /index.html;
# 结束
}







感谢大佬分享
非常好的教程,感谢大佬分享
感谢大佬分享
感谢大佬分享
感谢大佬分享1
非常好的教程,感谢感谢
非常好的教程感谢分享