Installing a fresh DNN 5.6.2 wasn't that complicated.
1. map a domain to the IP address in your DNS. Create a ww.yoursite.com and assign it to an IP address on your server with an A record.
2. In SQL Server, create a new database and set the account as DBO.
3. In Windows Explorer, create a new folder for the files, i.e. c:/dnn560/ and populate it with the Fresh Install Zip, then give permissions to Network Service or the account that will run the website.
4. Edit the web.config file:
- Let the MachineKey alone. After checking all the other DNNs on the server, I found that each of them has a different machine key and they are all working. I read somewhere (
http://www.eukhost.com/forums/f15/fix...) where there should be a Registry Key with the server's MachineKey, but apparently that does not apply to DNN. Hrmf.
- THE DEFAULT CONNECTION STRING provided in the example web.config has an error. It says Database=DotNetNuke;uid=;pwd=;" --- and I found that the 2nd semi-colon (after the pwd) needs to be removed - otherwise installation will fail.
5. Since nobody knows about the URL of the website yet, there is no danger of anyone hitting it before you do. So next goto ww.yoursite.com ... and the installation will start. During the install, It will display your sql login & passwd that you entered in the Connection String (in the web.config file), and simply go through the installation. Piece of cake.
If an installation fails at this point, it is likely that your connection string doesn't match with the account in the sql server management studio.
Here is what the connection string should look like. Note where the - - > 's are.
<connectionStrings>
<!-- Connection String for SQL Server 2005/2008 Express -->
<add name="SiteSqlServer" connectionString="Data Source=QUADG47z0;Initial Catalog=drs562;User ID=ralph1;Password=notready22" providerName="System.Data.SqlClient" />
<!-- Connection String for SQL Server 2005/2008
<add name="SiteSqlServer" connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;" providerName="System.Data.SqlClient" />
-->
</connectionStrings>
If you want to be safe, remove what's in the orange if it's not being used.
BarryZ