Preparation

  1. Typecho data export plug-in Byetyp

https://github.com/sunxiyuan/ByeTyp

  1. Pack and backup the data of /usr/uploads in Typecho

  2. Back up statistics code and ADsense code

steps

Note: Because this note was written after the migration was completed, there are no screenshots. The following content only contains text steps.

text steps

  1. Upload the Byetyp plug-in to the plug-in directory (Plug) in the Typecho blog, and remove the version number and modify the directory name (otherwise it cannot be activated normally)
  2. Pack and download the files uploaded by the /usr/uploads user in Typecho and backup them locally. They will be uploaded to the wp-content/uploads directory of WordPress later.
  3. Activate the Byetyp plug-in to export the data of the Typecho blog in the format xml
  4. Install WordPress and import the data in Typecho
  5. Execute the database command to replace the attachment path (picture path) in the post-content table with Wordpress

SQL command

UPDATE wp_posts SET post_content = REPLACE( post_content, '/usr/uploads/', '/wp-content/uploads/');

Note: wp_posts is the WordPress table name. Please choose it according to your actual situation.

1pannel

  • Permission issues on websites deployed in PHP container running environment

Problem symptoms:

  1. When uploading themes, files, or plug-ins to WordPress, you will be prompted with insufficient permissions or requiring you to fill in FTP information.

Solution:

  1. For websites deployed through the PHP container running environment, all files, folder owners and user groups under the index and subdirectories need to be set to 1000. The local PHP environment needs to refer to the local PHP-FPM user and user group settings.
  2. If there is no user or group with ID 1000 in the VPS, please create a new one and set its ID to 1000, then go to the website directory configuration interface of 1panel and set it to 1000.

Summary

I used Typecho for many years because I found WordPress troublesome. This year there were some plugins or functions I wanted that couldn’t be implemented in Typecho, so I switched back to WordPress. The current access speed is acceptable; because of the use of Cloudflare proxy, the image display may be slightly slower.

  • Editor: MarkupMarkdown is used.
  • Theme: Theme Kratos Made By Seaton Jiang

Reference:

Seamlessly migrate Typecho to WordPress https://www.csl88.top/archives/987/

Byetyp https://github.com/sunxiyuan/ByeTyp