How to Enable Maintenance Mode in Magento?

0
19

Here in this tutorial we will learn how to enable Maintenance mode in Magento. But before getting started you need to check your IP address in Google by searching “my IP address” in your browser. Once you get your IP address simply copy it.

Follow the steps to enable Maintenance mode in Magento:

Step::1 Login to your cPanel and go to File Manager section

How to Enable Maintenance Mode in Magento

Step::2 Now go inside the root directory i.e public_html and find the Magento installation directory

How to Enable Maintenance Mode in Magento

Step::3 Find the “var” directory and create a new file inside it

How to Enable Maintenance Mode in Magento

Step::4 Name the file as “.maintenance.flag

How to Enable Maintenance Mode in Magento

Step::5 Once the file is created, right click over the file and choose the Edit option

How to Enable Maintenance Mode in Magento

Step::6 In the editor section, add the code given below-

magento maintenance:enable-ip=163.112.98.13 

How to Enable Maintenance Mode in Magento

[Note: Make sure you replace the ip with your actual <ip address>]

Step::7 Once you have added the above code click on Save Changes button and close the editor.

How to Enable Maintenance Mode in Magento

This code will enable maintenance mode in Magento.

How to Enable Maintenance Mode in Magento

If you want to disable the maintenance mode you can simply replace the “enable” keyword with “disable” in the code.

Congratulations, you have successfully enabled Maintenance mode in Magento !!!

Thanks for Reading this article !!! We hope this was helpful to you all.

LEAVE A REPLY

Please enter your comment!
Please enter your name here