Fix WordPress Stuck in Maintenance Mode
How to fix a WordPress site stuck on ‘Briefly unavailable for scheduled maintenance’ by removing the .maintenance file.
If your WordPress site shows “Briefly unavailable for scheduled maintenance. Check back in a minute.” and it’s been more than a few minutes, WordPress is stuck in maintenance mode.
This happens when an update (core, plugin, or theme) starts but doesn’t finish cleanly. WordPress creates a .maintenance file before updating and removes it when done. If the update crashes or times out, the file stays behind and locks the site.
The Fix (30 seconds)
Delete the .maintenance file from your WordPress root directory. That’s it.
Option 1: cPanel File Manager
- Log in to cPanel and open File Manager
- Navigate to your site’s root directory (usually
public_html/) - Look for a file named
.maintenance- If you don’t see it, click Settings in the top right and check “Show hidden files”
- Select the file and click Delete
- Visit your site – it should be back
Option 2: SSH
cd /home/username/public_html
ls -la .maintenance # confirm it exists
rm .maintenance # delete it
Replace username with your actual cPanel username.
Option 3: FTP/SFTP
- Connect with your FTP client (FileZilla, Cyberduck, etc.)
- Navigate to your site’s root folder
- Enable “Show hidden files” in your client’s settings
- Find and delete
.maintenance
Why Did This Happen?
Common causes:
- PHP timeout. The server ran out of time during a large update. This is common on shared hosting with strict resource limits.
- Memory limit. WordPress ran out of memory mid-update.
- Simultaneous updates. Updating multiple plugins at once increases the chance of a timeout.
- Lost connection. Your browser tab was closed or your internet dropped during an update.
Preventing It in the Future
- Update plugins one at a time instead of bulk-updating everything at once
- Make sure your PHP memory limit is at least 256MB (check in cPanel > PHP Configuration)
- Keep your hosting resources healthy. If you’re hitting CloudLinux limits regularly, consider upgrading your plan
- Don’t close the browser tab during updates – wait for the “Update successful” message
Still Not Working?
If removing .maintenance doesn’t fix the site, the update may have left files in a broken state:
- Check wp-content/plugins/ for any partially updated plugin folders
- Try renaming the
pluginsfolder temporarily:mv wp-content/plugins wp-content/plugins_backup - Visit the site – if it loads, one of the plugins is the problem
- Rename the folder back and reactivate plugins one by one to find the culprit
Related Articles
- Fix the WordPress White Screen of Death
- Fix “Error Establishing a Database Connection”
- Slow Website Performance
- Contact GoZen Support - if the maintenance file keeps reappearing
Last updated 19 Apr 2026, 23:46 +0300.