WordPress Maintenance Mode
WordPress Maintenance Mode is a temporary state that displays a maintenance message to visitors while updates or changes are being applied to your site. In MyKinsta, you can enable Maintenance Mode during plugin or theme updates.
When Maintenance Mode is enabled, WordPress creates a .maintenance
file in your site’s root directory. Your visitors see a simple “Briefly unavailable for scheduled maintenance” message instead of your site. Once the updates are complete, the .maintenance
file is removed, and the site becomes accessible again.
Disable WordPress maintenance mode
When updates are complete, the maintenance message should be removed. However, there are occasions when an issue may arise and cause the maintenance page to get stuck, which requires some manual intervention to fix.
Clear the WordPress maintenance page
To clear this maintenance message, you must connect to your site with SFTP or SSH and delete the .maintenance
file in your site’s public directory (aka root directory or document root).
Once you’re connected to your site and viewing the public directory, you’ll see a list of your site’s files and subdirectories. Look for and delete the file named .maintenance
.
Prevent WordPress from getting stuck in maintenance mode
A few scenarios may cause the maintenance page to get stuck and not clear automatically. To prevent this, here are a few quick tips:
- Make sure plugins/themes are compatible with your version of WordPress before updating.
- Update plugins often so you don’t have to run a large number of updates at once. In MyKinsta, you can enable Kinsta Automatic Updates, so you don’t need to worry about manually updating your plugins and themes.
- Avoid updating a large number of plugins or themes at the same time. Depending on the plugins and the extent of the update needed, run 2-3 at a time, or even 1 at a time, to avoid potential conflicts or connection issues.