The article offers some of the methods to disable Maintenance mode in Magento 2. As part of our Magento Development Services, Bobcares provides answers to all of your questions.
Methods to Disable Maintenance Mode in Magento 2
To restart the website after making updates, changes, or maintenance, we must disable Magento 2’s maintenance mode. In order to minimize the chance of delays or mistakes during the updating process, this mode is usually used to prevent users from accessing the website. Normal traffic can resume after maintenance mode is disabled, showing that the site is ready for live traffic again after the changes are finished.
Method 1
1. Initially, log in to the server.
2. Then, find where the Magento site is located.
3. Then, find the domain or website.
i. For CentOS/RHEL, we use: httpd -S | grep domainname
ii. For Ubuntu/Debian, we use: apache2ctl -S | grep domainname
4. Now, find the document root using the code:
5. Also, look for a file named maintenance.flag.
6. In order to disable this mode in Magento 2, remove the file as follows:
Method 2
We can use the magento maintenance CLI code to enable or disable the mode. The code to disable is as follows:
Method 3
To disable the mode, use the command:
These commands help control maintenance mode in Magento 2. The mode is found by the presence of the var/.maintenance.flag file, with exceptions specified in var/.maintenance.ip.
[Need to know more? Get in touch with us if you have any further inquiries.]
Conclusion
Our Tech team went over the details of different methods to disable Maintenance mode in Magento 2, which is useful during any major updates.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
var google_conversion_label = "owonCMyG5nEQ0aD71QM";
0 Comments