WordPress migration and upgrade: solve problems such as white pages, 404, pseudo-static, plug-in installation failure, plug-in update failure and inaccessibility, etc.
In the past two days, I have migrated my blog and upgraded it to the latest wordpress 6.4.2. Many problems arose in the process and were solved one by one.
Record it.
white pages
Uninstalled several plug-ins and uninstalled the theme I developed: themoon. That solved the problem.
404 and pseudo-static
The new server is nginx. Need to be added to the configuration:
location / { try_files $uri $uri/ /index.php?$args; }
Plug-in installation failed and update also failed
1. Set the permissions of the plugins directory to 777, and by the way, set the permissions of the themes directory to 777.
2. Enable PHP functions in PHP.ini: chmod
Without enabling this function, WordPress cannot install and update plugins.
After the plug-in update failed, the entire site became inaccessible.
Tip: "Please wait one minute..."
In fact, that's how it's always been.
All you need to do is log in to the server via FTP, find the .maintenance file in the root directory, delete it, and that's it.