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 ...

How To Choose an expert Magento Developer For Your eCommerce Store?

A site must be viewed as flawless when its structure and improvement coordinates well with the items and administrations offered by the site. This is perhaps the most ideal approaches to draw in the objective clients into the site and complete exchange. Hence, it is essential to give adequate thoughtfulness regarding the structure and improvement of the site. In addition, since the challenge of web based business locales is immense, it is additionally fundamental to contract specialists that can help in building an exceptional and novel website. In this sense, it is ideal to procure Magento internet business improvement. The magento developers are exceptionally experienced, and they have a group of specialists gifted in various administrations. An internet business site needs various administrations for its whole advancement in the best technique. One can generally employ Magento Online business improvement so as to get every one of the highlights and administrations that are basic...

Why Choose Magento for Mobile Commerce?

According to a recent market survey by Statista, online purchase via mobile phones was 52% in 2019. The day-to-day emerging use of online platforms and mobile phones, it’s no longer going down in 2020 and so on. Believe us, we have given years to E-commerce Development , and know the extreme importance of mobile-friendly websites for online store owners. Upper given statistics are enough to attract companies to invest in M-commerce . And if you are planning to enter the M-commerce market to make a remarkable position, choose a particular platform which suits you the best. You must invest in such a platform that can offer the utmost flexibility and reliability to your site. As per our experience, Magento 2 is one of the best e-commerce platforms to get the advantages of M-commerce. In this article, we will shed light on Magento 2 features and know-how it enhances m-commerce. Top 8 crucial reasons for you to consider Magento for Mobile Commerce – 1. Greater Flexibi...