Magento 2 maintenance mode

Option FollowSymLinks not allowed here

Magento provides a maintenance mode, it’s used when taking database backup and others

We can apply maintenance mode using command-line interface in this case connect SSH and go to Magento root dir.

When uploading something on a live website then need to enable maintenance mode

Maintenance mode enable command:

bin/magento maintenance:enable

Maintenance mode enable white list IP command:

bin/magento maintenance:enable –ip

Directory var/.maintenance.ip can contain a list of IP addresses

Maintenance mode disable command:

bin/magento maintenance:disable

Maintenance mode in a file when the website in developer mode


Maintenance mode in a file when the website in production mode


Hope the above things are clear!

Related : Magento 2 speed optimization

Like us on Facebook and Linkedin for more updates.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top