ChatGPT创作付费系统文档解析配置教程,该功能3.0.6版本新增功能,具体对应后台位置,教程参照下方操作

一、放开PHP禁用函数:shell_exec
打开宝塔 -> 软件商店 -> PHP -> 禁用函数 -> 删除shell_exec,然后重启一下PHP服务

二、调整PHP脚本内存限制
调整成1280M(比这大也行),见下图

三、安装LibreOffice
为了在前端预览文件内容,也方便后续开发更多的功能,我们需要将用户上传的文档转换为PDF格式。LibreOffice是开源的办公软件套件,转换效果较好。

在服务器SSH终端执行以下命令即可全自动安装:
CentOS / OpenCloud / Alibaba 系统:

wget -N -O install.sh https://console.ttk.ink/static/libreoffice/install_centos.sh && bash install.sh

Ubuntu / Deepin 系统:
wget -N -O install.sh https://console.ttk.ink/static/libreoffice/install_ubuntu.sh && sudo bash install.sh

wget -N -O install.sh https://console.ttk.ink/static/libreoffice/install_debian.sh && bash install.sh

宝塔操作示意图:

计划任务
中问遇见这个提示,输入Y,回车

最后出现下图内容表示安装成功 ↓

四、安装完之后,重启php服务

常见问题1:遇到yum网络不通

解决方法:切换国内源
依次执行下面命令

sudo cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

sudo curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

yum clean all && yum makecache

常见问题2:遇到 Another app is currently holding the yum lock;

解决方法:

rm -f /var/run/yum.pid

源码下载地址:https://fx.xxqcy.cn/40135.html/

  • wechat_img
不要等待机会,而要创造机会
最后更新于 2024-10-03