I have a basic website set up in magento 2 platform and it is on AWS server. I need to keep the site under construction. How can I achieve that using Admin panel?
There is no way to enable maintenance mode from the admin panel. You'll need to login to your server via SSH and do the following:
Login to your server using a terminal via SSH ex.
If necessary, switch to the user that has file ownership of your Magento project ex.
Change directories to your Magento project bin folder ex.
Run the following command to enable maintenance mode:
php magento maintenance:enable
Clear your cache using the following command:
php magento cache:flush
Try reloading your site and it should now display Magento's default maintenance page.
If you want to customize how the maintenance page looks, here is another answer explaining how to do that: What is the easy way to edit the maintenance / error 503 page?
You can set via ssh or
php bin/magento maintenance:enable
OR create empty
.maintenance.flag file in
It will enables maintenance mode