أهم النقاط
- WordPress creates a .maintenance file during updates and removes it afterwards.
- An interrupted update leaves the file behind and the site stuck.
- Delete the file, then re-run the update that failed.
During an update WordPress puts the site into maintenance mode by creating a file called .maintenance in the site’s root folder. If the update is interrupted — a closed tab, a timeout, a server hiccup — the file stays and visitors keep seeing Briefly unavailable for scheduled maintenance.
Fix it
- Log in to cPanel and open File Manager.
- Click Settings (top right) and enable Show Hidden Files (dotfiles).
- Open the WordPress folder (usually
public_html). - Delete the file named
.maintenance. - Reload your site — it should be back immediately.
Over SSH, the same thing is one command run from the site folder: rm .maintenance.
Finish the update
The interrupted update may have left a plugin half-installed.
- Log in to wp-admin → Dashboard → Updates.
- Re-run any updates still listed.
- If a plugin is broken, delete it and reinstall it from Plugins → Add New.
الأسئلة الشائعة
Why can't I see the .maintenance file?
Files starting with a dot are hidden. In cPanel File Manager, click Settings and tick 'Show Hidden Files (dotfiles)'.
How do I stop it happening again?
Update plugins in small batches, keep the browser tab open until updates finish, and make sure your hosting has enough memory and execution time.