I upgrade my server OS to CentOS 8.1, besides that the PHP, WordPress, and apache had been also upgraded to the latest version. All data had been back up by plugin UpdraftPlus, I planned to use it to restore my website. Here are some problems I met when I restored my website.

Can’t upgrade plugins due to files’ permission.

Change the permission group to apache.

chown -R apache:root plugins

How to import the folders ‘plugins’, ‘themes’, and ‘uploads’ which are generated by updraft to recover old website?

Copy these folders to the website wp-content directory.

eg: cp plugins /var/www/html/wp-content

Can’t find URL in the server. All other pages give a 404 error

When publish page on the site based on wordpress, we get the information:
“Publishing failed. The response is not a valid JSON response.”

Apache2 didn’t open rewrite mode. I gave ‘All’ to AllowOverride in /etc/httpd/conf/httpd.conf. (all values for AllowOverride changed)

Relevant article: WordPress – Apache2 配置文件和开启重写模式

Support https visiting way

(1) We can use cloudflare to setup https for your site.

Upload old files weiy.city.pem and weiy.city.key to the website root directory. Relevant article: WordPress – Wp-admin Https Redirect And Install SSL Certificate

(2) The second way: Install Let’s Encrypt SSL certificates.
The related post: https://www.weiy.city/2024/05/setup-https-on-centos-7/

Categories: Tool

0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments

Tex To PDF
: convert the Latex file which suffix is tex to a PDF file

Would love your thoughts, please comment.x