Sunday, November 15, 2009

Manually Installing DotNetNuke on GoDaddy

These steps detail the process of manually installing DotNetNuke to the root of an empty GoDaddy hosted domain.

  1. Acquire DotNetNuke

    • Go to http://www.dotnetnuke.com/ and login (note: if you're not registered, then you'll have to register before you can login)

    • Click the "DOWNLOAD" icon at the top of the page

    • Download the edition of your choice (I chose Community)

    • Unzip the file to the directory of your choice



  2. Virtual directory setup

    • Login to GoDaddy

    • Hover over "Hosting" on the menu bar and click the "My Hosting Account" link

    • Click "Manage Account" next to the site to which you want to install DNN. This will take you to GoDaddy's Hosting Control Center.

    • Hover over the "Content" tab and click the "File Manager" link

    • Select the "[Root]" row by clicking on it or checking the checkbox

    • Click the "Permissions" icon on the toolbar

    • Check the "Read", "Write", and "Reset all children to inherit" and click OK (this needs to occur because DotNetNuke writes to its directory and sub-directories for many reasons, the most common is module installation)



  3. Database setup

    • In GoDaddy's Hosting Control Center, hover over the "Databases" tab and click the "SQL Server" link

    • Click the "Create Database" button

    • In the description type something descriptive like "www.mydomain.com DotNetNuke Database"

    • Check the DSN and ASP Schema checkboxes (this tells GoDaddy's database creation script to create a Data Source Name for the database and to Create the tables for the ASP Schema - e.g. aspnet_Applications, aspnet_Roles, etc.)

    • (Optional) If you want remote admin access to the database, check the "Yes" radio button under "Allow Direct Database Access" (this allows external access to the database - e.g. you can connect to it using SQL Server Management Studio on your own PC)

    • Enter a name for the database in the "SQL Server Database/User Name" field - e.g. mydomaindnn (this will be the name of the database and the user name for used for DNN's access)

    • Pick a good password, but be mindful of GoDaddy's password requirements. Write down this password as you'll need it to edit the web.config in a future step.

    • (Optional) If you'd like to create an user with read-only access this database, fill out the remaining fields correlating to "Read-Only User"

    • Click OK (You'll be taken back to teh SQL Server databases page and the status of your database will be "Pending Setup" - this should only be the case for a few minutes)

    • Click the "Edit/View Details" icon for your database in the "Actions" column. This page contains the values you'll need for changing the web.config in the next step.



  4. Web.Config

    • On your PC, go to the directory where you unzipped the DNN installation files.

    • Rename web.config to original-web.config

    • Rename release.config to web.config

    • Open web.config in your favorite editor

    • In the conectionStrings section, fully comment out the SQLExpress connection string (it contains "Data Source=.\SQLExpress"), and uncomment the SQL Server connection string (it contains "Server=(local)"). Change the SQL Server connection string include the database values seen on GoDaddy (Server is Host Name; Database is Database Name; uid is User Name and pwd is the password you entered for this user when you set up the datbase).

    • Repeat the above step for the connections strings found in the appSettings section just a few lines below.



  5. Upload via FTP

    • Configure your FTP clint (FileZilla, or CuteFtp, or the like) to point to ftp.mydomain.com, with your GoDaddy username/passoword (or another FTP user for whom you've register FTP credentials through the GoDaddy Control Center).

    • Connect

    • Once connected, you can delete everything in the root except the _db_backups and _hcc_thumbs directories.

    • This upload the contents of the directory to which you unzipped the DNN installation files.



  6. You are ready to install

    • Navigate to the www.mydomain.com

    • Follow the steps to walk through creating your site (Note: choosing the Auto option is recommended.)

    • For SMTP settings, use

      server: relay-hosting.secureserver.net

      basic

      username: emailuser@mydomain.com

      password: [emailuser's email password]

      * Make sure to Test the settings before you move on!


15 comments:

Anonymous said...

Yeah DotNetNuke is a bit of a pain to install on GoDaddy, but it is possible. Nice article.

Anonymous said...

Hello. I'm doing a variation of this. I'm helping someone who has an existing DNN site with another hosting company, move it to GoDaddy. Here's what I did, which was probably backwards. I uploaded the files they had received from the site designer - who was also hosting. I created a database. When I preview the site it gets me the DNN Under Construction page. Since the site is working on the other server I assumed the web.config file was correct except for the database info, which I changed. How do I get the site to work at GoDaddy? Or, will I only see DNN Under Construction in GoDaddy's preview? Thank you for any help you can give me.

Roberto Viquez said...

Great post, I was looking someting like this, but what I found was 1 or 2 years old

godaddy dotnetnuke tutorials said...

If you need more excellent solution, please refer to www.mynetnuke.com,

I will also publish video tutorials.

Anonymous said...

Do not go to www.my net nuke.com as the commenter above me stated. I went there and he wanted $20 for this information.

Thanks for the FREE guide CodeRonin!

Anonymous said...

This has proven to be the most useful DNN install tutorial for godaddy on the entire internet.

Peace

Anonymous said...

Works perfectly when I followed your instruction. Installed DNN 5.2.3 without any problem in godaddy root. Thanks for your kind help.

Unknown said...

Great post! Do you have any hints as to why the optional modules, skins, containers, languages, providers and authsystems will not install? The screen shows the following, but doesn't show the success message.

Thanks.

GODADDY SHOWED THIS:
00:01:18.047 - Executing Additional Scripts:
00:01:18.047 - Installing Optional Modules:
00:01:18.063 - Installing Optional Skins:
00:01:18.188 - Installing Optional Containers:

SHOULD BE THIS:
00:00:19.290 - Executing Additional Scripts:
00:00:19.293 - Installing Optional Modules:
00:00:19.298 - Installing Package File HTML_Community_05.02.00_Install: Success
00:00:22.627 - Installing Optional Skins:
00:00:22.627 - Installing Package File DNN-MinimalExtropySkin_01.00.05_Install: Success
00:00:23.972 - Installing Optional Containers:
00:00:23.972 - Installing Package File DNN-MinimalExtropyContainer_01.00.05_Install: Success
00:00:25.077 - Installing Optional Languages:......

Unknown said...

Thought I would update my last comment - it seems that the Web Platform Installer version of DotNetNuke does not include the zip files for the modules, skins, containers ... To get these, the regular install version of DotNetNuke is needed.

Anonymous said...

Would it be possible to get more detail on the connectionStrings section? I am unfamiliar with any of this stuff in that section. Much thanks

travis heseman said...

What about the connectionStrings section are you not understanding? Do you understand how connectionStrings work? If you don't understand how connectionStrings work, check this out.

Unknown said...

I beleive that I followed your instructions to the letter. Unfortunately, when I browsed to the site and expected the DNN wizard to start, I received the following error.
Server Error in '/' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Anonymous said...

Isn't it dangerous to give read write permissions to all directories? When I first installed DNN on my GoDaddy site, I remember finding an article online that showed which directories needed the permissions set. I believe it was in mynetnuke.com, which does charge for subscriptions now, unfortunately....

Chris Leonard said...

Does it have to be installed on the root? Can it be installed in a folder or subdomain?

Anonymous said...

I have bumped into so many problems while trying to install DotNetNuke on Godaddy and finally made it. Wrote a step by step guide to install DotNetNuke, check out the link below:

How to setup DotNetNuke on Godaddy.

Hope it helps! Thanks.