Thursday, April 02, 2009

Installing Dotnetnuke 4.9.2

I would like to give you a brief introduction to the way to install DotNetNuke_Community_04.09.02 in a Windows XP PC with SQL Server 2005 Enterprise Edition.

you can download all the dotnetnuke resources from, but to access that page you have to register with dotnetnuke.

you can find following modules to be downloaded from the URL mentioned above :

DotNetNuke 4.9.2 Install : this package is used to install dotnetnuke in your machine.
DotNetNuke 4.9.2 Upgrade – is used to upgrade any dotnetnuke versions than the current version.
DotNetNuke 4.9.2 Source – full dotnetnuke code is available here.
DotNetNuke 4.9.2 Starter Kit – Dotnetnuke Started kits for developers.
DotNetNuke 4.9.2 Docs – Documents with related to everything from installation to administration, etc you can find it here.

download the DotNetNuke 4.9.2 Install file and extract it into your C: drive. Make sure to give a meaningful name to the extracted folder (ex: Dotnetnuke, DNN). Once its done you have to create a virtual directory in IIS.

right click the Dotneunuke folder and enable the web sharing and give ASPNET, NETWOK SERVICE accounts FULL CONTROL as depicted in following screen shots.



As well as from the database end i will create a empty database named Dotnetnuke in SQL Server 2005. In this situation i will use the default SQL Server 2005 admin user name and password to access the database.

else you can create totally different user logins to access the database. for that you have to follow these steps :

Creating a login for your database:

  • Expand the Security node of your server.
  • Right-click on Logins.
  • Select “New Login”
  • Enter your desired login name. You must remember this login name (dnnuser) and password as this will be used in a later stage.
  • Select “SQL Server Authentication” and enter a password.
  • Uncheck the “Enforce Password expiration/User must change password at next login”
  • Click “User Mapping”
  • Select the database that we have created at the initial stage.
  • make sure to select db_owner in the bottom list “Database role membership for: “
  • Click OK

to make sure that steps that you have followed above is correct, just expand the Security node under your database (Dotnetnuke) and you will see a newly created database user (dnnuser) listed, meaning we also created a new database user by mapping our SQL Server login to our newly created database.

Once its done you have almost completed the installation steps but there are some few steps to go ahead. Just access your dotnetnuke site by typing http://localhost/dotnetnuke in your browser. So you can see the page as depicted below :






i have used my admin credentials to login to dotnetnuke database. Else you can enter the user names and passwords that you have created above (dnnuser credentials).



creating accounts for HOST and ADMIN logins to the dotnetnuke website :






Hurrah!!! finally its done and your dotnetnuke website looks like below :



apart from the steps as described above at the time of creating the virtual directory, please make sure the anonymous access is allowed for the created virtual directory. to allow the said permission please follow the steps as described below:

Already the virtual directory is in place and have to modify its properties.

  • Open IIS and expand the tree to see “Default Web Site”. (You can find IIS in Start | Control Panel | Administrative Tools.)
  • Expand the "Default Web Site" node.
  • right click the virtual directory name that you have created (Dotnetnuke) and select properties.
  • Click on the "Documents" tab
  • An entry for “default.aspx” needs to be added. Add default.aspx and move it to the top of the default documents list.
  • Click on the "Directory Security" tab
  • In the “Anonymous access and authentication control” group box, click "Edit"
  • Make sure that “Anonymous Access” is checked as well as “Integrated Windows authentication”
  • Next, click on the "ASP.NET" tab and make sure that “2.0.50727” is select for the ASP.NET version
  • Click OK to save your changes

you can read my article in codeproject.