Could someone please advise how to put into Maintenance Mode? Or is this version not supported?? I found some instructions, however I don't have the option for Maintenance Mode for Ver under System>Configuration>General

Magento goes to maintenance mode when you create a file named maintenance.flag to your Magento home directory. This is how Magento handles it:

$maintenanceFile = 'maintenance.flag';

if (file_exists($maintenanceFile)) {
    include_once dirname(__FILE__) . '/errors/503.php';

You can create an empty file with name maintenance.flag and just upload to the magento root directory

Thats what I add to the index in order to be able to continue working from different IPs:

//EGS to show a maintenance page but be able to work

// these are the IP's that are  allowed to view the site:
$allowed = array('', '');

if (file_exists($maintenanceFile) && !in_array($ip, $allowed)) { 
    include_once dirname(__FILE__) . '/errors/503.php';

I followed this tutorial to enable maintenance mode page in Magento, you need to create and upload maintenance.flag file to Magento root folder, however there are some more step for a good Maintenance mode like.

Step 1: Add exception during maintenance (allow specific IP to visit your site during maintenance). In index.php, add these lines

$allowed = array('x.x.x.x','y.y.y.y');

Step 2: Edit maintenance mode page Edit maintenance mode page in /errors/default/503.phtml Remove wrap in /errors/default/page.phtml Hope this helps.

You can use Folio3: Maintenance Mode plugin to easily put your Magento Frontend in Maintenance Mode ... It has many more features that can help you during the development phase of the project.

  1. Customer Experience
    • Visitors will see a maintenance page with a friendly message letting them know that the site is temporarily unavailable for up-gradation.
    • Optionally the visiting uses will also see a countdown timer letting them know when the site will be back available.
    • The impact on user is good as oppose to a facing a downtime by the website being inaccessible.
  2. Admin Capabilities:
    • Admin can choose which static block to show on this page.
    • Selected IPs can also be provided that can still access the storefront.
    • Admin user can get full access front end if configured.
    • There's an option to show a countdown timer and expected up date/time.
    • Admin user can get full access front end if configured.
    • A very powerful tool for site admins.

If you are using Magento2, then you can download the Magento2 version of Folio3: Maintenance Mode.

  • I have used it on a site. Works like a charm, easy to use and configure. And the support guys are so helpful. – Irfan Khan Jan 23 '17 at 11:09

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.