IMG-LOGO

How to Install DotNetNuke?

andy - 21 Jul, 2013 14922 Views 7 Comment

To install DNN is pretty easy, you just need to follow our step by step tutorials. The example given is using IIS 7 with SQL Server 2008 R2 and run in local computer.

1. Download DotNetNuke Community Edition from Codeplex.

Please visit http://dotnetnuke.codeplex.com/ to download the latest DNN installation file.

2. Create website folder in your wwwroot folder.

Create a website folder and setup the permission for the folder to allow Network Services has the Change permission. Copy the completed zip file and extract all the files under this folder. See below image screenshots for more details. In this example: the folder name we created we named it My Website.

Right click the folder and select Properties.

Go to the Security Tab and see if Network Service user/group is already in there. If it doesnt, click the Edit Button.

It will display a list of users/groups available. If the Network Service is not available, click the Add button.

Click the Advanced button to show the list of available users/groups.

Click the Find Now to list all the users and start looking for Network Service Group/User and then click OK

Click the Network Service Row and tick Allow checkbox in Modify permission

Usually the website folder is hosted or placed under C:/inetpub/wwwroot. But it will depends on your server environment, it can be hosted outside of this folder as well.

3. Create SQL Server database.

In order to create the SQL Server database, you will need SQL management studio tool and SQL Express 2008 installed on your server. You can download these software from microsoft official website. We assume those software have already been installed on your server.

Enter the database name.

Create new user that will associate with this database. On the server explorer tree, look for the security folder and right click to create a new user login.

Enter the login name and make sure you click the SQL Server authentication mode. Untick the Enforce password expiration and change password at next login. Also in the Default Database dropdownlist, please select the created database.

Next is to map the ownership of the database to this user account.

4. Setup IIS for new website.

Open the IIS and add a new website.

We enter the website address in the provided url address. Note in this example, as we run the site locally, we need to modify host config file to temporarily host the url.

The next step is to setup the application pool properties. This is important and has to be setup properly otherwise the site will have a permission issue.

Look for the application pool named mywebsite and right click and choose Advanced Settings

Make sure the ASP.Net version is 4.0 and Network Service is selected for the identity field.

5. Configure Host file (Only if the DNN run locally).

The hosts file usually located under: C:\Windows\System32\drivers\etc. As the file does not has an extension, you will need to open it using NotePad or other alternative text editor. Note: if you get a permission issue, you have to edit the file as administrator account.

By following up the example given, you just need to enter the local ip address and then website url. In this case, it will be like the following image:

6. Launch the website to start configuring DNN.

Open a web browser in your computer and enter the website address http://mywebsite.local.com. If everything is setup properly, you will see the following page.

By default the super account username is host, it is recommended that you change this to other name. For the website information section, you can select the template as blank template, this will not create any pages on the site, if you choose default, it will load some basic content and pages.

For the database setup, choose Custom option and the database type as SQL Server. You will need to specify the Server Name, by default server name is .\SQLExpress, but in this example, we set the sql server name differently, so specify the value accordingly. In the security option, please select user defined, as we have already create a user login for the database account. Make sure the database owner checkbox is ticked. Once all done you can click Continue button.

Comments

samar
01 Feb, 2016
Hi, This is very helpful link about dotnetnuke. I have installed and work successfully. thank you very much. I need one more help.is there any simple tutorial for beginner about dotnetnuke for further development???
andy
05 Feb, 2016
Hi Samar, Just want to let you know that I have created a quick and simple tutorial for your first DNN module extension project. I hope you find the tutorial useful. DNN Hello World Module extension example
FFFF
12 Apr, 2016
Very helpful, Thanks a lot <3
sami
06 Feb, 2017
thanks alot for helpful document. I've done all steps, but at six the following error occurred: "HTTP Error 500.0 - Internal Server Error Calling LoadLibraryEx on ISAPI filter "C:\Windows\Microsoft.NET\Framework\v4.0.30319\\aspnet_filter.dll" failed" can you hep me???
andy
06 Feb, 2017
Please check the following items. - You may need to install asp.net 4, if you are using higher dnn version - Make sure you set your ASP.Net version in 4.0, this is located in the application pool. Just right click and check the advanced settings.
Rasagna
24 Jul, 2017
Hi Tried installing but I am getting this error while installing, hence not able to complete the installation. I am new to DotNetNuke. Did anyone faced this issue or have any idea about this error? 0:24 Minutes | 18% ERROR occured - System.Data.SqlClient.SqlException (0x80131904): Cannot find the user 'WORKGROUP\LAPTOP-C0RP324V$', because it does not exist or you do not have permission. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Thanks Rasagna
Rasagna
24 Jul, 2017
Hi Tried installing but I am getting this error while installing, hence not able to complete the installation. I am new to DotNetNuke. Did anyone faced this issue or have any idea about this error? 0:24 Minutes | 18% ERROR occured - System.Data.SqlClient.SqlException (0x80131904): Cannot find the user 'WORKGROUP\LAPTOP-C0RP324V$', because it does not exist or you do not have permission. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Thanks Rasagna
andy
27 Jul, 2017
Hi Rasagna, From the error message you received, it is clearly stated that there is an issue with the user account. Try login to mssql using the credential user account you to install the DNN. If it doesnt work, it means you need to make sure the password is correct or the database owner has been set to the user account you set.
Write Comment
0 characters entered. Maximum characters allowed are 1000 characters.

Related Blogs

How to change copyright text in DNN?

In this article, I am going to show you how to change the copyright text in DNN. Usually, a copyright text is located under the footer of the site template.

Related Tutorials

Create your first DNN module extension

In this tutorial you will learn how to create your first DNN module This will be a basic module that will display Hello World You will learn also how to get a module setting and save the value into module ...

What is DNN?

DNN is an open source web content management system based on Microsoft Net It was written in VB Net but it has been fully migrated to C since version 6 0 There are three versions available for DNN which are ...

How to install module extension in DotNetNuke?

What is actually a module extension in DNN A module extension can be considered as plugin program that you can install on your site Just imagine you have a car and you want to add a new sound system to ...

How to create a simple skin in DNN?

Learn how to create your first new skin template in DNN. You will also learn what are required to create the DNN skin template and what is the structure of the template looks like.

Manage Pages in DNN

Learn how to create and manage pages in DNN. To manage a page in DNN you must have an administrator role assigned on your account. The way how the DNN page work is based on single default.aspx only.