- Precondition: Your box has been installed the VS 2005 and Sql Server 2005
- Download a copy of DotNetNuke 4.4.0 source pack from its government site.
- Config IIS
- Extract the the source pack:DotNetNuke_4.4.0_Source to C:\DotNetNuke\.
- Setup a Virtual directory with name DotNetNuke from IIS, which will point to c:\DotNetNuke\WebSite\
- Set the the DotNetNuke site: execute permissions-> Scripts and Exectutables, Asp.Net version at the ASP.NET Tab -> 2.0.50727
- Enable the Enable-Default-Document setting on the Documents tab and make sure the the Default.aspx is in the list.
- Configure Sql Server 2005
- Create a new data base named as DotNetNuke
- Create a new sql server login user: dnn
- Add the dnn user as the dbowner of DotNetNuke data base
- Configure Web.Config
- At the root of the site (C:\DotNetNuke\Website), rename the release.config as Web.config
- Modify the Connection string of web.config file as following:
- In connectionstring section:<connectionStrings>
<!-- Connection String for SQL Server 2005 Express
<add
name="SiteSqlServer"
connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"
providerName="System.Data.SqlClient" />
-->
<!-- Connection String for SQL Server 2000/2005-->
<add name="SiteSqlServer" connectionString ="Server=(local);Database=DotNetNuke;uid=dnn;pwd=dnn;" providerName="System.Data.SqlClient " />
</ connectionStrings> - In appsettings section:<!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules
<add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>
-->
<!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules -->
<add key="SiteSqlServer" value="Server=(local);Database=DotNetNuke;uid=dnn;pwd=dnn;" /> - Set site root access permission
- First enable the Enable-Simple-File-Sharing setting of XP
- Add the full control permission of ASP.NET user on the site root folder:C:\DotNetNuke\Website and inherit the setting to all its child files and folders.
- Start to install
- Access the site url:http://localhost/dotnetnuke/
- You will see the installation successfully message after a few minutes.
Exceptions encountered during installation:
- Error (HTTP 403 Forbidden) :
- Detail:
- This error (HTTP 403 Forbidden) means that Internet Explorer was able to connect to the website, but it does not have permission to view the webpage.
For more information about HTTP errors, see Help. - Solution:
- Make sure the Enable-Default-Document setting is enabled on the Documents tab of IIS web site property page and the the Default.aspx is in the document list.
- Access to the path 'C:\DotNetNuke\Website\web.config' is denied.
- Detail:
- DotNetNuke Configuration Error
Access to the path 'C:\DotNetNuke\Website\web.config' is denied.
DotNetNuke has extensive file upload capabilities for content, modules, and skins. These features require custom security settings so that the application is able to create and remove files in your website.
Using Windows Explorer, browse to the root folder of the website ( C:\DotNetNuke by default ). Right-click the folder and select Sharing and Security from the popup menu ( please note that if you are using Windows XP you may need to Enable Simple File Sharing before these options are displayed ). Select the Security tab. Add the appropriate User Account and set the Permissions.
If using Windows 2000 - IIS5
the {Server}\ASPNET User Account must have Read, Write, and Change Control of the virtual root of your website.
If using Windows 2003 - IIS6
the NT AUTHORITY\NETWORK SERVICE User Account must have Read, Write, and Change Control of the virtual root of your website. - Solution:
--
Happy day, happy life!
No comments:
Post a Comment