Skip to main content

Step-By-Step Tutorial: How To Turn On/Off Maintenance Mode In Magento 2?

Facing issues while turning on/off maintenance mode on your Magento 2 store?

Magento 2 maintenance mode is an exceptional feature that permits you to disable your online store’s access temporarily. When you enable this mode, your website visitors will observe a designated maintenance page instead of your store’s front end.

The maintenance page will reflect the ongoing maintenance message and the relevant downtime information. This option is highly useful when you wish to perform updates, upgrades, or other maintenance tasks on your website.


How To Check If The Maintenance Mode Is Active On Your Store?

Checking the status of maintenance mode on your Magento 2 store is super easy, all you need to do is follow these steps-

  • Search for ‘ var / .maintenance.flag ’ in your Magento. If you locate this file, it means the maintenance mode is enabled for your store. In contrast, the absence of this file reflects maintenance mode is disabled.

  • Another way to find out whether your website is in maintenance mode is to look for the file var/.maintenance.ip , if this file is present, maintenance mode will get turned off specifically for the authorized IP addresses listed in this file.

Prerequisites To Enable Maintenance Mode On Your Magento 2 Store

Maintenance mode will take down your website for a specific time and nobody wants to lose customers because of maintenance. Hence, you need to follow some guidelines to ensure a seamless user experience. Here are some prerequisites to follow while entering the maintenance mode-

  • Get full access to the Magento 2 admin panel along with administrator privileges.

  • Create a complete backup of your Magento 2 store, including all the files and database. It will be beneficial in recovering your website in case anything goes wrong.

  • Spend time designing the maintenance page that would display relevant information such as the reason, anticipated downtime, and contact information.

  • Don’t forget to put your Magento 2 store in developer mode as it prevents cached content from affecting the maintenance page display.

  • Plan your downtime during low-traffic periods to avoid major losses.

  • Pick a strategy to inform your customers about the downtime. This could include regular email, social media posting, push notifications, or a banner displaying the alert.

  • Brief your customers and team with the specific start and end time for the maintenance.

How To Enable/ Disable Maintenance Mode In Magento?

Let’s discuss how you can enable Maintenance mode on your Magento 2 store. All you need to do is enter the following command-

php bin/magento maintenance:enable [–ip=<ip address>]

For instance, if you use the below command, you will enable the maintenance mode with exceptions.

php bin/magento maintenance:enable –ip=192.168.1.38 –ip=192.170.2.90

The above code will disable the maintenance mode specifically for two IP addresses 192.168.1.38 and 192.170.2.90. Usually, the IP address of the developer debugging your website is included in this code.

Similarly, to disable maintenance mode on your Magento 2 store, type in the following command-

php bin/magento maintenance:disable [–ip=<ip address>]

Additionally, if you wish to know the current status of the maintenance mode, use the below command:

php bin/magento maintenance:status

Last Verdict

We hope that our comprehensive guide helped you understand the entire process of enabling/disabling maintenance mode on your Magento 2 store. Switching to this mode allows you to carry out important updates, upgrades, or other maintenance tasks on your website. It displays a designated maintenance page along with the ongoing maintenance message.

Need Assistance With Your Magento 2 Store Maintenance?

magePoint is a well-established Magento 2 development company with over 9 years of experience. Our dedicated team is known to deliver top-notch Magento maintenance services with minimal downtime. Opt for our services to overcome ongoing issues in your store and improve its performance. Contact us for more information.

Comments

Popular posts from this blog

How to choose the prime Magento Development Agency

The Magento Ecommerce development service providers that are spread around the world, are making the things troublesome for the business that need to fabricate an Ecommerce store. As it's hard to choose what Magento Development Company for your Online business, and a terrible decision can destroy their thought and the well deserved revenue too. Thus, how they will choose or consider what specification that will enable them to settle on a correct choice. Without assuming anything, you ought to consider these important points that we have gathered together to enable you to choose the dependable, proficient and solid Magento Development Agency . Have a look at these following Points: 1) At First, select the eCommerce development services you need  Different online eCommerce stores have distinctive urgency and depending upon the needs, the Magento Development Companies provide the services. The services could be Magento development, Designing, Magento Theme customization, PSD

Essential Points to remember for your eCommerce store

As we all know that Magento is world's most flexible eCommerce platform. Magento's upgraded availability highlights, extended community, and omni-channel encounters make it a big player in the eCommerce world. Despite the fact, 13% of online shoppers utilize Magento, one can't remark on its success rate without using it. Let's take a look at the important points that beginner developers should keep in mind while developing their eCommerce store on Magento : Use of Default Settings  Home Page  : A client would be less interested to browse through your online store if it's titled simply 'Home'. According to SEO algorithm, you should use a primary keyword and, if vital, an optional keyword for your home page title. Description  : If you're utilizing default descriptions, your web crawler rankings are profoundly influenced which, in the long run, prompts to poor user experience. Item description are a pivotal part of your website. If you are willing

6 most amazing features of Magento 2

If you are one of those business who still hasn't moved up to the new version of Magento, you may most likely ponder what really matters to the buildup. Magento 2 is getting fume reviews by tech insiders, programming critics and pretty much every business that has shifted to this new version of Magento. Let us investigate why organizations are mixed by Magento 2, and why you ought to likely move as well. It is also critical to realize that before the finish of 2018, all support for earlier versions of Magento will be ceased, and organizations should move regardless of the possibility that they had no arrangement for it. All things considered, you would prefer not to fall behind in the race with other online business stores and competitors, isn't that right? Have a look at those points why business and individuals would like to switch to Magento 2.  1. Simple to migrate On the off chance that you figured it is hard to move from your past form of Magento to the most rece