PTCMS4.2.8 program + construction tutorial + several collection rules

PTCMS4.2.8 program + construction tutorial + several collection rules

1. ptcms is a professional novel website program, which can collect and transcode other websites so that you can have multiple novels without a large data disk; the official is currently actively maintaining

2. There are also many versions circulating on the Internet, but most of the installation tutorial versions have some problems. This time I bring the ptcms4.2.8 version program and the construction tutorial + collection rules

Above:

PC front desk

PTCMS4.2.8 program + construction tutorial + several collection rules

PTCMS4.2.8 program + construction tutorial + several collection rules

Hmm~ o(  ̄▽ ̄ )o A few more mobile photos

PTCMS4.2.8 program + construction tutorial + several collection rules

PTCMS4.2.8 program + construction tutorial + several collection rules

PTCMS4.2.8 program + construction tutorial + several collection rules

PTCMS4.2.8 program + construction tutorial + several collection rules

PTCMS4.2.8 program + construction tutorial + several collection rules

PTCMS4.2.8 program + construction tutorial + several collection rules

Features

Version 4.0 is a brand-new development. The new version of UI is more flat and modernized. It adds original area, news release, book list release, collection log, Baidu push, Shenma push, and push log functions.

The front-end high imitation starting point novel network, self-adaptive template (of course the template can be replaced), you can set up a mobile domain name separately.

The backend is newly developed with LAYUI.

The installation steps have been tossing and tearing for most of the day, you deserve it.

1. Install the basic environment (the following is only a tutorial, without programs)

  • I use the pagoda program
  • Install Nginx1.16+
  • Install php version 7.3
  • Install the php extension fileinfo
  • Install php extension memcached
  • Install php extension memcache
  • Install php extension swoole or swoole4
  • Install php extension swoole_serialize optional
  • Cancel the php disabled function shell_exec, delete this parameter in the disabled function of PHP

PTCMS4.2.8 program + construction tutorial + several collection rules

PTCMS4.2.8 program + construction tutorial + several collection rules

2. Install Encryption Loader

2. Configure Swoole

1. Create a ptcms folder in the /www/server/ file, upload the License and loader73.so to ptcms (this can be ignored, explained later)

2. Open the configuration file of php7.3 (also called php.ini), pull it to the bottom, add the following two lines of code, save, restart php, if an error is reported, check whether there is any error in the above steps! For example: the code is misspelled or something... (turn over here o(  ̄▽ ̄ )o)
PTCMS4.2.8 program + construction tutorial + several collection rules

extension = /www/server/ptcms/loader73.soswoole_license_files = /www/server/ptcms/license如果忽略第一步建立ptcms文件夹,执行下面代码extension =/www/wwwroot/主程序所在文件夹(网站路径)/loader73.soswoole_license_files = /www/wwwroot/主程序所在文件夹(网站路径)/license

After the code is installed, restart PHP or reload the configuration

3. Configure the website

3.1 Set the website running directory

In the pagoda, the specified website operation directory is public, not the website directory! ! ! Don't make a mistake

PTCMS4.2.8 program + construction tutorial + several collection rules

3.2 Pseudo-static setting of pagoda

if (!-e $request_filename) {    rewrite ^/(.*)  /index.php?s=$1 last;}

If it is not set, there will be an error, and some things cannot be loaded.

4. Configure collection

Modify the host (you can do it or not, the bosses say it’s not necessary, do direct ssh and then enter vim /etc/hosts to add it later and press ESC to enter the command mode and enter: wq! You can force exit, and you can know a little linux)

vim /etc/hosts 106.13.47.93 api.kxcms.com api.ptcms.com

5. Install the program

First delete the install.lock in the directory (must be deleted if there is any) before installing again. Installation address: your domain name/install.php, and then enter the user name, database name, and database password.

PTCMS4.2.8 program + construction tutorial + several collection rules

After the installation is complete, if you don’t want your domain name to be officially discovered, it is best to change the background statistics code number and the statistics code number of the public/static/admin/index.js file, that is, replace the Baidu statistics id with your own.

PTCMS4.2.8 program + construction tutorial + several collection rules

The construction method of the mobile terminal, MIP, and AMP is the same as that of the main terminal. The domain name points to the running directory. After building the main terminal, you need to fill in the relative domain name in the background domain name setting of the website to access the corresponding website.

6. Configure cron

1. PT background-acquisition management-task management-task settings to turn on the task switch, otherwise it will report the main process shutdown error

2. Create a scheduled task to log in to the background of the pagoda - scheduled task, the task type is shell script, and the script content is

php /www/wwwroot/网站目录/kx cron:master >>/dev/null 2>&1时间自行填写,保存即可SSH输入:cd  /www/wwwroot/网站目录进入网站目录复制/www/server/php/73/bin/php kx cron:check进ssh,提示主进程开启则安装完成(73为PHP版本,自行修改)

Background preview:

PTCMS4.2.8 program + construction tutorial + several collection rules

PTCMS4.2.8 program + construction tutorial + several collection rules

There are only two pictures, let’s get familiar with it slowly!!!

7. Collection rules

How to use: collection management - rule management - rule import - upload file (new station, new rule)

PTCMS4.2.8 program + construction tutorial + several collection rules

Conclusion:

1. The tutorial is detailed enough and available for personal testing. If you cannot install, please check your own environment steps.

2. The resources are all found by myself (there is no guarantee that the source code has no back door, if you don’t worry, you can find it by yourself, but I have nothing to do with it), and I have tested it myself. Now share it for free, and if you like it, you can click to give a little support to Xiaozhan. If your economy is suffering like mine, you can also like it and bookmark the next small station

3. Because there is no charge for resources, there is no after-sales service.

Finally, I would like to remind you that at last, close the pagoda writing and access log, or clean it regularly, otherwise you will find a few G logs over time, um~ o( ̄▽̄ )o is scary to say

download link:

Main program:

Link: https://pan.baidu.com/s/1DNN_pQg7_MmZuTg_32nXjw
Extraction code: gpf2

Collection rules:

Link: https://pan.baidu.com/s/1nDmfmZrxeIUPIfzyr_BfkQ
Extraction code: 2os7

Welcome to pay attention to the official account: Affiliate Marketing family

Guess you like

Origin blog.csdn.net/wdsj_xh/article/details/130857865