宝塔环境为Nginx、Mysql、PHP7.3(必须是7.3)
PTCMS 4.2.8本地下载(无限制版):PTCMS4.2.8 ,另github有一款优化版:ptcms-20191229
一、PHP相关配置
a、PHP需安装扩展fileinfo、memcached、swoole
b、PHP需删除禁用函数shell、exec
c、PHP配置文件最后加上(xxxx.com改为自己的域名)
extension= /www/wwwroot/xxxx.com/loader73.so swoole_license_files= /www/server/wwwroot/xxxx.com/license
二、网站及伪静态
a、网站运行目录为public
b、伪静态规则
if (!-e $request_filename) { rewrite ^/(.*) /index.php?s=$1 last; }
c、配置完之后,浏览器输入 xxxx.com/install.php 进行安装
d、手机版:需要设置单独域名
三、采集及规则分享
a、到你网站目录下运行
/www/server/php/73/bin/php kx cron:check
这样就可以后台采集了。
b、分享14条采集规则(部分需要自己稍微修改下)
规则下载:ptcms-caijiguize-14-20191217
含封面的采集规则:ptcms-caijiguize-fengmian-20191217
What an exquisite post you’ve got got written! It’d come to nice facilitate of the beginners like me! This could be very clear, precise and descriptive really! Thanks most Mr. Author. Keep writing for us like this.:)
Reliable dedicated server