I am looking to take a hosted DNN website with an assigned domain to a local PC to work on it locally. This is a prototype company website I have been working on and I am looking to hand it over to the company. Before I do, I want to finish it off on my local PC (the current host is far too slow) before I re-deploy it to a faster hosting provider.
This is the script I have so far (provided in part by Peter Donker - Thanks Peter), I have some further questions in uppercase:
1. Zip up the whole DNN directory. Name it something silly, put in the web root, and download to your PC
DONE :-)
2. Make backup of SQL database. Zip it, put in web root and download.
DONE... DOWNLOADED AS A .BAK FILE (IS THAT OK?)... IN FACT DOWNLOADED ALL FILES AND THE .BAK FILE USING FTP...ALL SEEMS OK I THINK...
3. Delete zips (from your live webserver).
I PRESUME YOU MEAN CLEAN UP AFTERWARDS SO I DON'T USE UP MORE SPACE THAN REQUIRED ON MY CURRENT HOSTING ACCOUNT? GOOD IDEA...
4. Unpack first zip to your HD. Open properties of root and set NETWORK SERVICE to have full access. Unify on all children.
AM I RIGHT IN THINKING THAT YOU DO THIS IN WINDOWS EXPLORER USING THE 'PROPERTIES' OPTION IN THE RIGHT-CLICK DROP DOWN MENU?
5. In IIS either add this as a new website or a new virtual dir under an existing one. The procedure will be slightly different, but both should work. If adding as a new website make sure to set host header and to announce it in the hosts file. I often use this to copy www.someclient.com to local.someclient.com. Make sure in IIS to set the application and set ASP.NET to be framework 2.0.
GOT IT :-)
6. Open SQL Manager and restore the database. You'll need to edit the location of files most likely.
IS THIS STORED IN A DNN SQL TABLE (WHICH ONE) OR IS THE EDIT FOR THE LOCATION OF FILES SOMEWHERE ELSE?
7. Open DB and add your local account through which you will access the database from DNN.
GOT IT :-)
8. Open PortalAlias and edit the alias for the portal you will be using. Make sure you get this correct.
IS THIS A SQL TABLE CALLED PORTALALIAS IN THE DNN DATABASE?
9. Edit the web.config to correct the SQL connection string (AND PRESUMABLY THE MACHINE ID).
GOT IT :-)
Thanks in advance for any input here DNN users to refine my script... cheers MARK.
Are there any considerations I shoud bear in mind when taking it down to my PC, e.g. aliases, database issues, web.config edits and so on to get it up and running on the PC.