Background:
It
is highly recommended to the administrator to take a back up of the
whole website and database along with web.config file before starting
upgrade process. It is also good practice to upgrade your DNN
version at your localhost and understood the process clearly before
you move to your live site. After you get upgrade with the latest
version, it is very essential to test the whole site along with all
third party modules you have used in your site and look if all the
modules are compatible and working fine with the latest version of
DNN you upgraded with. It is really good to keep updating your DNN
version once it is released by DotNetNuke group.
When
To Upgrade:
If
you are upgrade you site locally then you can upgrade it at any point
of time. But if you upgrade your live site then it is good practice
to upgrade your site when less number of user are access your site,
preferably at midnight. If you are using install “User Online”
module then you can easily track the user traffic of your site and do
the upgrade process when less number of user are using your site.
Upgrading
DotNetNuke:
I
am here discussing the process of upgrade from DNN 4.9.4 to DNN
05.01.04. you can follow the same steps for upgrading from your
current version to any latest DNN version.
~
Take a complete backup of your entire website.
~
Take a complete backup your database.
~
Take a back up your web.config file.
~
Rename the web.config file to backupweb.config
~
Take a back up your other files like custom error pages, fav.ico etc.
~
Download the DotNetNuke Install.zip (DNN 05.01.04) from the
DotNetNuke site.
~
Unzip the downloaded Installation folder.
~
Open the web.config file of the newly downloaded folder (DNN
05.01.04)
~
Open the backupweb.config file.
~
Modify the SQL connection strings in web.config file. There are two
places, you can get the string from your original backupweb.config
file
(A) Copy
the connection strings form backup file (backupweb.config) and paste
is in web.comfig file under ConnectionStrings.
<connectionStrings>
<!--
Connection String for SQL Server 2005 Express -->
<add
name="SiteSqlServer"
connectionString="Data
Source=458.236.25.29;Initial Catalog=MfsReport;User
ID=userid;Password=password"
providerName="System.Data.SqlClient"
/>
<!--
Connection String for SQL Server 2000/2005
<add name="SiteSqlServer"
connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;"
providerName="System.Data.SqlClient" />
-->
</connectionStrings>
(B) Copy
the connection strings form backup file (backupweb.config) and paste
is in web.comfig file under appsettings.
<!--
Connection String for SQL Server 2005 Express - kept for backwards
compatability - legacy modules -->
<add
key="SiteSqlServer"
value="Data
Source=458.236.25.29;Initial Catalog=MfsReport;User
ID=userid;Password=password"
/>
~
Copy the Machinekey ValidationKey and Decription key values from your
backupweb.config file to web.config file.
<machineKey
validationKey="8E04731852A7A16B1C70CE67CD4BE8B40A4B6A16"
decryptionKey="E5499A1ED3D9AC245BCA138E8FBDC4286A3839D0C8DEFA0F"
decryption="3DES"
validation="SHA1"
/>
~
If you have made any further changes to your web.config file for
third party modules, HTTP compression, or database object
qualifiers, copy these changes across to the new web.config file from
your backup.config file.
Note:
If you upgrade the DNN version at your live site then make the
<add
key="AutoUpgrade"
value="true
"
/>
to
<add
key="AutoUpgrade"
value="fakse"
/>
So
that user will not get any error message if they access your site at
the same time when you do the upgrade process.
~
Save the web.config file.
~
Now the first file to move from the lastest version of DNN folder to
the old version of DNN folder is dotnetnuke.dll file.
The
reason is to inform your user that you are upgrading the website and
it will now display an under construction page.
~
Now copy all the new file including web.config file and paste it at
the old DNN folder.
~
Now run the site at browser with URL like
http://www.mysite.com/Install/Install...
Note:
I asummed the site name as mysite.com
~
Now application will triger the installtion process and you will see
the message like “Upgrade Complete” and “Click Here To Access
Your Portal”
~
Click on the link “Click Here To Access Your Portal” to access
your portal.
~Login
with Host account and go to 'Host Settings' then you will see the
latest DNN vertion under “DotNetNuke Version” coloumn.
Thanks,
Debendra
Nandi
Mindfire
Solutions
www.mindfiresolutions.com