Preparation
- Typecho data export plug-in
Byetyp
https://github.com/sunxiyuan/ByeTyp
Pack and backup the data of
/usr/uploadsin TypechoBack 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
- 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)
- Pack and download the files uploaded by the
/usr/uploadsuser in Typecho and backup them locally. They will be uploaded to thewp-content/uploadsdirectory of WordPress later. - Activate the Byetyp plug-in to export the data of the Typecho blog in the format
xml - Install WordPress and import the data in Typecho
- Execute the database command to replace the attachment path (picture path) in the
post-contenttable withWordpress
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:
- 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:
- 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.
- 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/