When applying a patch to your site, providing that you take the steps below, it is possible to revert a patch.
Why you may wish to revert the patch?
- Issues with applying patch
- Noticed changes in behavior
- You do not have a test site to try the patch out first before applying it to your production
- You do not have a Virtual server that had a previous snapshot prior to the patch being applied
It is only possible to revert a patch if you have taken the proper precautions.
Step 1) Backup the SQL Database – this stores all of your content and site settings. Click here for the process to backup your SQL Database using SQL Server Management Studio.
Step 2) Backup the Intranet folder – on your web server that hosts the intranet, you will have an Intranet folder that contains all of the code files, as well as any files that have been uploaded to your intranet.
- Open IIS (Internet Information Services Manager)
- Select your web site from the list on the left
- Click ‘Basic Settings’ from the right nav
- Locate the physical path as shown in the image below:
Now that you have the location, navigate to the folder level above your Intranet folder.
- Backup the entire Intranet folder
Note: Both of these backups should be of the same version of the software as restoring 2 different versions can lead to data discrepancies, or issues with restoring your site.
Reverting the patch
- Restore your SQL Database from the backup
- Right-click on the database within SQL Server Management Studios > select New Query
- Paste the following query into the box provided:
- exec sp_change_users_login 'auto_fix','intranetconnections';
- Stop the Railo Server service and the IIS Server
- Rename the Intranet folder
- Restore the backup copy of the Intranet folder (in the example above, you would restore this to the wwwroot folder).
- Start the Railo Server service and IIS server
- Re-launch your intranet