Padding Padding
Janet
Systems
 Register  Login 
Telephone  01628 566 178
Website Design, Hosting and Software Services
  Search 
Padding
corner Padding corner
Padding Padding
corner Padding corner
 DotNetNuke Articles

In this article I will be covering the installation of DotNetNuke on Windows XP. For this installation the following items were used, listed in the order in which they were installed.

  1. Windows XP with service pack 1, and subsequent updates as appropriate
  2. Visual Studio 2003
  3. MSDE revision 2000A
  4. Microsoft SQL Web Data Administrator Version 2.0
  5. DotNetNuke version 2.1.2

We shall begin by setting up IIS. Add the path for DotNetNuke to the IIS directory, for example

C:\InetPub\wwwroot\DotNetNuke

Unzip the recently obtained DotNetNuke souce zip file into this directory.  This obtainable from http://www.dotnetnuke.com/.  Note registration is required. 

At this stage only one file needs to be edited, web.config, to define the sql server (in our case msde) database connection. No further configuration of the DotNetNuke source code is required. Later we shall point our web browser at our DotNetNuke directory under IIS and DotNetNuke will make the necessary configurations including configuring the database.

The default setting for directory security under Windows XP is hidden.  We need this to be revealed so that we can add full access rights for the user aspnet.

From an explorer window select tools and folder options

Changing folder options.

 Under the View tab scroll to the last item, "Use Simple File Sharing (Recommended)", ensure that this is not checked.

Changing directory file security setting from Use Simple File Sharing (Recommended)

Using SQL Web Data Administrator ensure that  there is a table for use by DotNetNuke, calling it DotNetNuke is a good idea. A dedicated user, for example dnnUser, and password to make the connection, rather than using the SQL server/MSDE SA account. Configuring MSDE is covered in another article found here.

Now edit the file web.config in the dotnetnuke directory,  There are two instances of the configuration and connection details for the SQL database connection, one in the appSettins section and one in the  providers section. Change the values of MYTABLENAME, MYUSERNAME and MYPASSWORD to suit your settings.

<appSettings>
    <add key="connectionString" value="Server=localhost;Database=MYTABLENAME;uid=MYUSERNAME;pwd=MYPASSWORD;"/>
<appSettings>

<add name = "SqlDataProvider"
    type = "DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider"
    connectionString = "Server=localhost;Database=MYTABLENAME;uid=MYUSERNAME;pwd=MYPASSWORD;"
    providerPath = "~\Providers\DataProviders\SqlDataProvider\"
    objectQualifier = ""
    databaseOwner = "dbo"
    upgradeConnectionString = ""
/>

 

Ensure that the debug setting is set to enable debug support.

-- set debugmode to false for running application -->
<compilation debug="true" />

 

In IIS we need a virtual directory to point to our DotNetNuke directory.  Open IIS and add a new virtual directory under the default website. Ensure that all access rights are available, including writing, directory browsing and source code access.

Adding a new virtual directory for DotNetNuke in IIS.

References

  • Microsoft SQL Web Data Administrator may be downloaded from here.
  • MSDE may be downloaded from here.
  • Article on configuring MSDE found here.

  • This article viewed: 7328 times Back

    Copyright © 2004-2007 Janet Systems Ltd.

     Print   

    For DotNetNuke modules and skins take a look at:

    Snowcovered

    DotNetNuke Website design and hosting from £15.00 per month. More...

    Looking for a website design company in the Thames Valley, call us on 01628 566178

    DotNetNuke Modules
    DotNetNuke Modules availalble from Janet Systems

    DotNetNuke Skins
    DotNetNukeSkins.gif

    from Janet Systems

    Padding
    Copyright 2002-2008 Janet Systems Ltd.   Terms Of Use  Privacy Statement Saturday, May 17, 2008