DNN7 website System requirements and Deployment Guide detailed

Source: Internet
Author: User
Tags test web server dnn dotnetnuke web hosting management studio sql server management sql server management studio sql server express

This installation guide applies to both dnn6.x and dnn7.x for local testing and for host installation. QQ Group recently many friends asked me about the DotNetNuke installation and operation of the problem. In order to get a clearer picture of how DNN is installed, I am here to make a comprehensive introduction to DotNetNuke's system requirements and how to install and run them in different environments. In personal experience, DNN7 's running memory is best guaranteed to be above 1G, otherwise it will be recycled frequently.

Environment required to run DotNetNuke (DNN):

Web server: IIS5, IIS6, IIS7, Visual Studio built-in Web server

Server systems: Windows XP, Windows $, Windows 2003, Vista, Windows 2008

Database: SQL Server, 2005, 2012,sql Server Express

Database run permissions: Have dbo permissions on the DNN database (to determine which tables can be created and deleted)

File system Run Permissions

Under XP you need to set the "ASPNET" user "Full Control" permission to the Site Directory

Windows 2003,2008,2012 and Win7 need to set the "network Service" user "Full Control" permission to the Site Directory

The. Net Framework. Net2.0,. Net3.0,. net3.5,.net4.0 (DNN7 website must be 4.0)

Installation steps:

The installation of DotNetNuke has been greatly simplified since the introduction of the DNN7 Installation Wizard, and now the installation is mainly divided into the following steps

Configuration of the database

Configuration of File system permissions

Configuration of the Web server (IIS or Visual Studio built-in server)

The above 3 points are configured well after you open the Web page Run DNN Setup Wizard configuration Dnn

First step: Create a Database

If it is a virtual hosting environment, the host service provider if the database access account and database information can be omitted in this step. If not available, contact the host service or create a database user and database (if available) from the web hosting site Control Panel. If you have administrative permissions on the database, we need to create an empty database first

Log in to the Database manager first

SQL Server 2000 with Enterprise Manager

SQL Server 2005,2008 with SQL Server Management Studio

SQL Server Express with SQL Server Management Studio Express

Create an empty database, name custom, here I call it DNN5.

It is recommended to create a database user for easy administration and user name customization, where I create a user "dnn5" with the same name as the database.

Right click on the database you just built DNN5, select "Files" in the properties and then fill in the "owner" on the right to the user "Dnn5", which will give the "dnn5" user dbo permissions.

Make sure that SQL Server users can create data tables, and stored procedures (some host service providers restrict user rights) otherwise they will not be able to install DNN.

Step Two: Configure file system permissions

First download DNN install package (http://www.dnntools.net/resources/) unzip to any directory where I unzip to C:webrootdnn5

Under XP need to give "ASPNET" User all Files "Full Control" permission in "Security" settings under "Dnn7" in the Site Directory "

Windows 2003,2008 and Vista need to give Full Control permission to the "Network Service" user all files in the "Security" settings under "Dnn5" in the Site Directory

In the case of a host hosting environment, the "Network service" user in the "Security" settings under the Site Directory has Full Control permissions for all files and folders.

Step Three: Configure the Web server to create a Web site

DNN can run on a standalone web site in IIS, such as Www.dnntools.net, localhost:8001 can also run in a virtual directory, such as WWW.DNNTOOLS.NET/MYDNN, Localhost/mydnn.

If you use XP IIS5 to support only one website, we usually need to create a virtual directory, for example, under the Default Web site to create a "dnn5" virtual directory, and then point the virtual directory out of our site c:webrootdnn5. Then run the Web site in the browser input http://localhost/dnn5

If using Vista, 2003, 2008 because iis6,7 supports multiple sites, we can create a new website with a port number to differentiate, for example, localhost:8005 then point the site to C:webrootdnn5. Then run the Web site in the browser input http://localhost:8006

If you are running a Web site using the visual studio2005,2008 built-in Web server, select Open Web site in VS, open c:webrootdnn5 with file system, click the project root to configure the Web server in the Properties window.

Turn off "using dynamic ports"

The site root directory is set to "/" (functions only after VS2005 SP1)

Click F5 (debug mode) or CTRL+F5 (run but not debug) to run the Web site, as shown in the setting will run DNN in the browser open http://localhost:4186.

Running DNN with the VS built-in test Web server can be slow, and it is recommended to use IIS.

If you use a virtual host, the General Web site Control Panel will have the settings to create the site, if not please contact the host service provider. When set up, use the domain name or temporary link that is bound to the Web site (some virtual hosts are provided so that no domain name can be accessed with temporary links) to access the site.

If you are using IIS, note that before you run the Web site, check the settings for IIS to determine the following points:

Set up a Web site or virtual directory using the. NET Framework 2.0

Set Web site default file to Default.aspx

iis5,6 determining whether a Web site or virtual directory is a Web application (Web App)

IIS7 determines the selected application pool (application pool) is supported by the. NET Framework 2.0

Fourth Step: Configure the Web site using the DNN Setup Wizard

Before the operation, we can download the DNN7 Installation Wizard (http://www.dnntools.net/dnn-5-chinese-language-pack/) to unzip the install folder to the root of the Web site C: WEBROOTDNN5 overwrite the existing file so that you can use the Chinese Installation wizard. The first time you run the DotNetNuke Web site after three steps are set up, the Setup Wizard runs automatically for site configuration.

In the browser, enter the third step to set up a website link.

Run the Setup Wizard, configure as needed, and here I will not elaborate, the wizard has given every step of the clear instructions.

The only thing to note here is that there are two options for configuring a database connection

SQL Server 2005 (Express) files

This approach is to automatically attach the App_datadatabase.mdf database file to the SQL Express database in the root directory of the Web site.

So to fill in the "Database" column "Database.mdf"

The premise of running is to install the SQL Express database and Require security permissions for system consolidation.

Typically, this permission is not supported in a virtual hosting environment, but we can still connect to SQL Express using the following common database connection

SQL Server 2000/2005/2008/express Database

The data account created with the first step DNN7 connect to the database DNN7

If you are using a port when setting up a Web site, such as localhost:8000. You will find that in addition to the home page you can access other pages with an error, we also need to make some settings:

Open the [Portalalias] table in the database and you will see a record that changes the Httpalias from localhost to localhost:8000

Found in Web. config in the site root directory and enabled

There is also a need to restart the DNN site to clear the cache, when the port number can be accessed again when the normal use.

This is where we can start our dnn journey.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.