Today I suddenly find the WordPress Admin dashboard is very very slow. It takes about 60s or more to access the post list, plugin list, etc. Or will just show an time-out error.
I try the following methods:
- Restart Apache service.
- Restart server.
- Change PHP.ini settings. Then restart the server.
But all not working. Finally I do the following steps:
- Rename .htaccess to .htaccess.backup.
- Then the dashboard is fast. But WP Rocket complains that it cannot access .htaccess. Note: Based on my test, after renaming .htaccess, I must access a page, then go to step 3 will solve the issue. If Skip step 2, then the speed will not change. It seems that by accessing the page, the .htaccess will be loaded to Apache.
- Rename .htaccess.backup to .htaccess.
Then the dashboard is still fast, though the contents of .htaccess has never been changed.
Why? I cannot understand why a rename of .htaccess temporarliy can solve the issue permanently, even if the .htaccess contents are actually not changed at all.
Update:
A follow-up update:
- The problem occurs since I try to install vBulletin in a subfolder of our website https://www.example.com/forums/
- When the problem occurs, all WordPress instances under the same domain, i.e., https://www.example.com, https://www.example.com/blogs/ and https://www.example.com/license/ are all very slow. However, WP instances under other domains(but in the same server) are NOT affected.
- After I backup and deleting the /forums/ subdirectory, the problem never occurs again.
Update2:
After one day of normal status, now the problem occurs again. And the only solution is to rename .htaccess to .htaccess.backup, access a page under the domain example.com, and then rename .htaccess back.
Update 3
I finally solve the problem. The detailed process is put at https://www.webmasterworld.com/apache/5088830.htm#msg5089206