I am trying to disable the Put store on the maintenance mode while installing/upgrading/backup creation under Magento connect in Magento admin.But I am unable to do that?

Is it possible to disable this feature, if yes how?


4 Answers 4


All the "maintenance mode" does is creating empty semaphore file maintenance.flag to store root folder. You can create the file manually if you want to, however you can't get into backend interface after that. You can also delete it manually.

Maintenance flag behavior itself is simple and it can be found from index.php file:

$maintenanceFile = 'maintenance.flag';

if (file_exists($maintenanceFile)) {
    include_once dirname(__FILE__) . '/errors/503.php';
  • Can I disable this setting in admin?, It put store on maintenance mode while installing the extension.See the screen shot If I uncheck the checkbox, this setting is not saved.
    – Mukesh
    Jun 3, 2014 at 7:19
  • You cannot even open backend as index.php quits immediately before loading the "god" class (require_once $mageFilename;). You must delete the file manually. Personally, I consider this behavior a "misfeature" (frontend and backend maintenance should be separate). As of turning it off completely; there's no elegant way to do that. As you can see, the behavior is hard coded to index.php and nothing short of changing it helps you. It's core file however which means that whenever you upgrade the change gets wiped off.
    – Pronto
    Jun 3, 2014 at 10:41


Open the index.php file from your Root folder:

if (file_exists($maintenanceFile))
    // include_once dirname(__FILE__) . '/errors/503.php';
  • 1
    Do not modify core files , it is not a good practice
    – Mukesh
    Jul 28, 2016 at 10:05

Choose .htaccess file from the root directory And add the following code lines on the top: DirectoryIndex index.html index.php

Now create your custom HTML i.e.index.html file and you are done.

The other way you can add the following code : create > maintenance.flag And upload to the root folder of the website.


For Magento 2.0, the process has changed slightly. Now, the filename is .maintenance.flag and it goes into the var directory under your Magento root.

For example, if you're running a LAMP stack with Magento 2.0 installed to /var/www/public_html/ then you could use touch /var/www/public_html/.maintenance.flag to enable maintenance mode and rm /var/www/public_html/.maintenance.flag to disable it.

The documentation also provides instructions on how to exempt specific IP addresses from maintenance mode to allow that traffic continued to access the site for testing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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