Support

Site Restoration

#29589 Akeeba Unite Stealth Mode on IIS

Posted in ‘Site restoration’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
n/a
CMS Type
Other
CMS Version
n/a
Backup Tool Version
n/a
Kickstart version
n/a

Latest post by on Friday, 25 May 2018 17:17 CDT

dave.hook
As an update to ticket #29587 what I did to move my Joomla site that I am running on IIS offline during the Akeeba Unite restoration process. I am doing it this way because Akeeba Unite doesn't support writing a web.config file and even it it did, i would need to restart the production site for the new web.config to take effect. Also web.config isn't as friendly at the .htaccess so crafting a file that will allow only the localhost to access the site and force everyone else to a maintenance page isn't as simple as it is in .htaccess. What i am doing to get around this is as follows:


  • My Akeeba Unite is being triggered nightly by a Task Scheduler Script.

  • I created a new site on the IIS server called maintenance and added the same bindings as my production website. It will complain that only one site can be online at a time if they have the same bindings. Click OK.

  • The new maintenance website only has one page called index.html which states we are down for maintenance and will be back soon.

  • I added in new steps into the nightly Task scheduler script to take my production site offline and bring the maintenance site online, then run the restoration via UNiTE and then turn off the maintenance site and bring my production site back online. The commands are:


this code shuts down my production site
C:\Windows\System32\inetserv\appcmd.exe stop site production

this code starts up the maintenance site
C:\Windows\System32\inetserv\appcmd.exe start site maintenance

I then run the command to restore my site using Akeeba Unite

this code shuts the maintenance site down
C:\Windows\System32\inetserv\appcmd.exe stop site maintenance

this code starts the production site back up
C:\Windows\System32\inetserv\appcmd.exe start site production


I hope this helps others who are running IIS and want to hide the ANGIE site restoration pages from users while the site is being restored.

nicholas
Akeeba Staff
Manager
Thank you so much for your feedback! I am good at managing Linux servers but not Windows. The appcmd.exe is a great tip! Thank you!

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!