Contents
How do I enable maintenance mode in Magento 1?
Put Magento 1 in Maintenance Mode Step 1: Using SSH to log in to your account. Step 2: Navigate to the file you get your Magento installed in. Step 3: Open the index. php file with editor and enter the following lines with the following order after “ $maintenanceFile = ‘maintenance.
How do I turn on Magento 2 maintenance mode?
Use the magento maintenance CLI command to enable or disable Magento maintenance mode. –ip= is an IP address to exempt from maintenance mode (for example, developers doing the maintenance). To exempt more than one IP address in the same command, use the option multiple times.
How to enable or disable maintenance mode in Magento?
Before you use this command to enable or disable maintenance mode, you must install the Magento software. Use the magento maintenance CLI command to enable or disable Magento maintenance mode. –ip= is an IP address to exempt from maintenance mode (for example, developers doing the maintenance).
How to exempt an IP address from Magento maintenance?
bin/magento maintenance:status –ip= is an IP address to exempt from maintenance mode (for example, developers doing the maintenance). To exempt more than one IP address in the same command, use the option multiple times. Using –ip= with magento maintenance:disable saves the list of IPs for later use.
How to stop message queue consumer processes in Magento?
After you place Magento in maintenance mode, you must stop all message queue consumer processes. One way to find these processes is to run the ps -ef | grep queue:consumers:start command, and then run the kill command for each consumer. In a multiple node environment, repeat this task on each node.
What to do if Magento does not allow logins?
If the Magento file system owner does not allow logins, you can do the following: To run Magento commands from any directory, add /bin to your system PATH. Because shells have differing syntax, consult a reference like unix.stackexchange.com.