前言
网上找的一份源码,几年之前的了。部署完之后功能挺全。记录一下部署过程。
源码地址
第三第四方聚合信达支付源码修复版
安装过程
lnmp环境
docker和docker-compose一键安装脚本
nginx配置
server {
listen 80;
server_name www.hnymwl.com;
root /www/web/xdzf;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
access_log /www/web_logs/www_access.log wwwlogs;
error_log /www/web_logs/www_error.log notice;
charset utf-8;
index index.html index.htm index.php;
location / {
try_files $uri $uri/ /index.php$uri?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /index.php;
location ~ \.php(.*)$ {
fastcgi_pass php:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
location ~ /\.(?!well-known).* {
deny all;
}
}
数据库配置
编辑:vim app/Config.php
namespace WY\app;
class Config{
static function db(){
return array(
'server'=>'mariadb',
'port'=>'3306',
'user'=>'wpuser',
'pass'=>'wpuserxxx',
'name'=>'wp',
'prefix'=>'wy_',
'driver'=>'pdo',
'debug'=>true,
'path'=>'dy', //设置后台目录名称
);
}
重置密码
admin/admin
update wy_admin set adminpass = 'd033e22ae348aeb5660fc2140aec35850c4da997' where id = 1;
页面
评论 (0)