![图片[1]-PTCMS4.2.8/4.3.0版本详细安装教程-AA源码网 | 源码收藏](https://images.aaym.net/2024/05/20240523234411124-image-950x687.png!/format/webp/lossless/true)
安装基本环境
- 安装php版本
7.3
- 安装php扩展
fileinfo
- 安装php扩展
memcached
- 安装php扩展
memcache
- 安装php扩展
swoole
或者swoole4
- 安装php扩展
swoole_serialize
可选 - 取消php禁用函数
shell_exec
,在PHP里面删除这个参数
扩展安装
![图片[2]-PTCMS4.2.8/4.3.0版本详细安装教程-AA源码网 | 源码收藏](https://images.aaym.net/2024/05/20240523234516224-446bb4f4a001ead6b7cb203fa7dea5b2_2020060102511444.jpg!/format/webp/lossless/true)
删除禁用函数
![图片[3]-PTCMS4.2.8/4.3.0版本详细安装教程-AA源码网 | 源码收藏](https://images.aaym.net/2024/05/20240523234530356-dccb2aecc7bbca130b193f657779e4f5_2020060102512919.jpg!/format/webp/lossless/true)
安装加密Loader
- 在/www/server目录新建ptcms文件夹
- 将压缩包根目录里面的 loader73.so和 license复制到刚才新建的ptcms目录
进入php7.3设置,在配置文件里面添加代码,代码安装好后,重启PHP或者重载配置
extension=/www/server/ptcms/loader73.so
swoole_license_files=/www/server/ptcms/license
![图片[4]-PTCMS4.2.8/4.3.0版本详细安装教程-AA源码网 | 源码收藏](https://images.aaym.net/2024/05/20240523234643485-d1a772936063acbcfd9a156ad794472b_2020060102514231.jpg!/format/webp/lossless/true)
创建网站,上传源码以后,配置网站目录
![图片[5]-PTCMS4.2.8/4.3.0版本详细安装教程-AA源码网 | 源码收藏](https://images.aaym.net/2024/05/20240523234654545-8aa7461db4edc2a1607345a7030f5a93_2020060102515240.jpg!/format/webp/lossless/true)
伪静态设置
伪静态设置
if (!-e $request_filename) {
rewrite ^/(.*) /index.php?s=$1 last;}
配置采集
- 修改host
方法:
进入ssh,输入vim /etc/hosts,回车
(如果提示vim command not found,输入 yum -y install vim-enhanced
安装命令。安装好后,再次输入vim /etc/hosts)
输入i进入编辑模式,输入106.13.47.93 api.kxcms.com api.ptcms.com
i是插入模式,如果输错了,关掉再来。
修改好后,输入:wq回车保存
![图片[6]-PTCMS4.2.8/4.3.0版本详细安装教程-AA源码网 | 源码收藏](https://images.aaym.net/2024/05/20240523234748158-016feac92e33892c05ce8d07ae57d8fc_2020060102520219.jpg!/format/webp/lossless/true)
安装程序
安装地址:域名/install.php,然后输入用户名、数据库名、数据库密码。
![图片[7]-PTCMS4.2.8/4.3.0版本详细安装教程-AA源码网 | 源码收藏](https://images.aaym.net/2024/05/20240523234810790-4add5d9f5dbabe80dd374e86b425321b_2020060102521085-950x509.jpg!/format/webp/lossless/true)
配置cron
用命令进入网站的根目录:
cd /www/wwwroot/网站根目录名称/
再输入
/www/server/php/73/bin/php kx cron:check
这样就可以后台自动采集了。
![图片[8]-PTCMS4.2.8/4.3.0版本详细安装教程-AA源码网 | 源码收藏](https://images.aaym.net/2024/05/20240523234901842-91eb1faad5d0b1e0b9eda04741197dca_2020060102522020.jpg!/format/webp/lossless/true)
本文结束END

暂无评论内容