L
LeaUK
Guest
For those of you stumbling over here looking for help when you move DNN sites from dev to production aka mydomain/TestSite to customerdomain.com here's my-way:
Database management
• Login to development DNN site as ‘host’
• Add the new domain as an additional http alias (no 'http' prefix) to the current portal - DO NOT create a new portal alias!
• Using Plesk create a new db in the client’s domain (different db name and different db user name to the development DNN db)
• Using MSSQL Management Studio > Select DNN development db > Tasks > Backup (this will fail if the db wasn’t created by Plesk!)
• Highlight databases > Restore > ‘From database’ choose DNN dev db’. ’To database’ choose new db created in Plesk.
• Options > ‘Restore as’ ensure points to the new files. And ‘Overwrite the existing db’ is enabled.
• Select new db > Properties > files > change Logical name to new db name
• Recreate a new user in the new db which replicates the one Plesk originally created – otherwise Plesk won’t be able to delete it or backup
Connection string
• Copy the complete mydomain/TestSite root IIS folder from the dev domain to the new domain
• Change the connection string in web.config file in the root to new db name and new username. Best thing is to simply search for old db name and replace.
• Restart domain – this triggers the read of the new web.config settings
Update image links
If your original DNS test site was beneath a virtual directory i.e. mydomain/test and you move it to newdomain.com root, all pictures will fail. So update all image links by in the DNN site using the 'Engage F3' module.
Took me many hours to resolve this lot...
So hope it helps others.
Lea
Database management
• Login to development DNN site as ‘host’
• Add the new domain as an additional http alias (no 'http' prefix) to the current portal - DO NOT create a new portal alias!
• Using Plesk create a new db in the client’s domain (different db name and different db user name to the development DNN db)
• Using MSSQL Management Studio > Select DNN development db > Tasks > Backup (this will fail if the db wasn’t created by Plesk!)
• Highlight databases > Restore > ‘From database’ choose DNN dev db’. ’To database’ choose new db created in Plesk.
• Options > ‘Restore as’ ensure points to the new files. And ‘Overwrite the existing db’ is enabled.
• Select new db > Properties > files > change Logical name to new db name
• Recreate a new user in the new db which replicates the one Plesk originally created – otherwise Plesk won’t be able to delete it or backup
Connection string
• Copy the complete mydomain/TestSite root IIS folder from the dev domain to the new domain
• Change the connection string in web.config file in the root to new db name and new username. Best thing is to simply search for old db name and replace.
• Restart domain – this triggers the read of the new web.config settings
Update image links
If your original DNS test site was beneath a virtual directory i.e. mydomain/test and you move it to newdomain.com root, all pictures will fail. So update all image links by in the DNN site using the 'Engage F3' module.
Took me many hours to resolve this lot...
So hope it helps others.
Lea