Upgrading DotNetNuke is a process that comes as second nature to anyone that has been doing it a while, but we tend to forget that there are many new users who have never upgraded DotNetNuke. In an over-simplified summary, the upgrade process for DotNetNuke is done by using the upgrade download package, and unzipping it over the top of your existing DNN files, then navigating to your site. This will cause DNN to find the new code and it will automatically run any required SQL scripts to upgrade your Database. There are a few things that you should do to prepare for your upgrade, and a few more things that you will need to be aware of so that your upgrade will go smoothly: Step #1: Backup your current installation by making a copy of your DotNetNuke folder and a backup of your current Database. - TIP: What I like to do is to copy all of my DotNetNuke files to a different location for performing the upgrade, that way any live site will still be running, and if there are problems with the upgrade I can just start over. To upgrade this way you will need to create an alternate website and also restore the backup of your database to an alternate name. You will also need to add a Portal Alias for this new location which you can do before you make the backup of the DB, or if you wait until after you have restored the copy of the DB then you can add the PortalAlias entry directly to the PortalAlias table.
Step #2: Get the [u]upgrade[/u] download package for the version you are wanting to upgrade to and unzip this package over the top of your copy of the current DotNetNuke files. Step #3: You will need to copy any new items from this new version out of the release.config file into your current web.config file. - TIP: This process can be easier if you do it in the reverse. In other words, copy any specific information from your current web.config to the release.config file, then rename release.config to web.config.
The following items will need to be copied over at a minimum:
- Your connection strings (remember there are two places for these)
- MachineValidationKey
- MachineDecryptionKey
- InstallationDate
- codeSubdirectory
Step #4: Insure that your connection strings are pointing to the actual database that you want to upgrade. If you have followed the backup tip above, then you will want to make sure that you connect to the alternate copy of your DB. Step #5: Navigate to the url where you are upgrading your website, and DotNetNuke will automatically run any scripts needed to upgrade your DB. You should now have an upgraded copy of your site to test that everything is still working as expected. Or if you just backed up your live site and upgraded that one directly then you can test there. If you performed your upgrade on a copy of the website, then after you are satisfied that the upgrade is working as expected, you can easily upgrade your live site by shutting it down momentarily and then copying all the files from your upgraded folder back over to your live folder, and before turning your site back on make sure that your connection strings are pointing to your live DB. |