PASSWORD RESET

Your destination for complete Tech news

How to enable and disable maintenance mode in Magento 2?

347 0
< 1 min read

To enable maintenance mode in Magento 2, you can use the following steps:

  1. Log in to your Magento 2 admin panel.
  2. Go to “System” > “Tools” > “Cache Management”.
  3. In the “Actions” column, click the “Enable” button for the “Maintenance Mode” cache type.
  4. Click the “Submit” button to apply the change.

To disable maintenance mode, you can use the following steps:

  1. Log in to your Magento 2 admin panel.
  2. Go to “System” > “Tools” > “Cache Management”.
  3. In the “Actions” column, click the “Disable” button for the “Maintenance Mode” cache type.
  4. Click the “Submit” button to apply the change.

Alternatively, you can also enable or disable maintenance mode using the command line. To do this, you can use the following commands:

To enable maintenance mode:

php bin/magento maintenance:enable

To disable maintenance mode:

php bin/magento maintenance:disable

When maintenance mode is enabled, visitors to your store will see a message indicating that the store is currently undergoing maintenance. This can be useful if you need to perform updates or maintenance on your store and do not want visitors to be able to access it during this time.

Leave A Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.