Here we will cover how to get a Magento site out of maintenance mode. This problem can be identified when Magento is showing Service Temporarily Unavailable and is stuck in Maintenance Mode.
Related Article
Disable Maintenance Mode
- Log into cPanel
- Locate the document root of the domain
- Right-click on the
index.php
file located at the root of the domain and select Edit - Locate
$maintenanceFile = FILENAME;
in the file to find the variable name for the file
EXAMPLE:$maintenanceFile = ‘maintenance.flag’;
- Once that line is found comment that line out by adding # in front of the line
EXAMPLE:#$maintenanceFile = ‘maintenance.flag’;
- Once the variable name is identified, locate the corresponding file in the Document Root of the domain and delete that file from file manager
EXAMPLE: In the above examples, the file would be called "maintenance.flag". You will need to find that file and delete it. - Refresh the website page, purge your browser cache, and the site should no longer be in maintenance mode