# 狐书-基于webman高性能社区论坛系统 **Repository Path**: hff666/foxbook ## Basic Information - **Project Name**: 狐书-基于webman高性能社区论坛系统 - **Description**: 狐书社区,开源的社区论坛系统 - **Primary Language**: PHP - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://www.foxbook.cn - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 6 - **Created**: 2025-11-15 - **Last Updated**: 2025-11-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 功能预览 ### 小程序页面演示
### 管理后台截图
后台管理界面1 后台管理界面2
### 微信小程序体验 小程序二维码 ## 环境要求 - PHP >= 8.1 - PHP cURL扩展 - PHP OpenSSL扩展 - PHP SimpleXML扩展 - PHP fileinfo扩展 ## 从Gitee下载源码 地址:https://gitee.com/ym721/foxbook.git ## 目录说明 - `foxbook-admin` 管理后台前端目录 - `foxbook-php` 服务端接口目录 - `foxbook-uni` uniapp用户端目录 ## 服务端安装 #### 1、在宝塔面板新建网站 步骤:`网站`=>`添加站点` => `异步项目` ![alt text](image.png) 按照提示填写网站信息 ::: info 注意 宝塔会自动守护进程,请使用如下命令启动(不要添加 `-d` 参数,否则无法启动): ```bash php /www/wwwroot/<你的站点路径>/start.php start ``` 说明: - `start.php start` 为前台守护方式,由宝塔负责进程管理。 - 使用 `-d` 进入后台会与宝塔守护冲突,导致无法正常启动。 ::: #### 2、安装composer依赖 ![alt text](image-1.png) 在网站配置这里安装项目依赖,镜像源最好选择`腾讯云`,点击`执行`,完成项目依赖的安装 #### 3、启动项目 点击`启动`,运行项目 ![alt text](image-2.png) #### 4、配置SSL 由于微信小程序强制需要`https`,所以需要配置SSL #### 5、配置`.env` `foxbook-php`目录下有`.env.example`文件,复制一份改名为`.env`,在里面配置数据库信息。然后将`database.sql`导入到你的数据库中,完成数据表初始化 #### 6、配置nginx伪静态 ``` # 处理 admin 前端路由 location /admin { try_files $uri $uri/ /admin/index.html; } # /api/、/adminapi/、/common/ 的代理配置 location ~ ^/(api|adminapi|common)/ { proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_http_version 1.1; proxy_set_header Connection ""; # 若请求不是文件,则代理到后端服务 if (!-f $request_filename) { proxy_pass http://127.0.0.1:8000; } } ``` 到此,PHP服务端安装完成! ## uniapp端配置 在`foxbook-uni`目录中有`core/config.js`配置文件,修改成自己的域名 ``` export const baseUrl = "https://你的域名" //api接口根域名 export const fileUrl = "你的阿里云OSS域名" //oss根域名 ``` ## 管理后台 http://域名/admin ``` 默认账号:admin 默认密码:abcd@123 ```