分享

DNN一步一步建网_1-6

 kommy 2007-09-29

这几天一直在为本局域网做个站点网什么的,也当作一个实验室吧,反正闲着也是闲着~_~!  

此为系列东东,做了什么就写什么,期待ing…  

开工:(注意:红字为注意事项,突出显示为关键字,“2Newbie:”/“2N:”为对新手解释,以后同)   
 

<站点基本情况>

1. 网络/硬件/软件环境

序号

设备

硬件

安装软件/系统附件

1

Cisco 2611mx

2xEnthnet/2xSerial

IOS 12.2(8)T5

2

Switch

100Mb/24

 

3

DNS server

Xeon3_600/384MB/18G

Win03sp1

4

WEB server

Xeon4_1.8/512MB

/10G_SCIS/240G_IDE

Win03sp1/MSSQLserver05

5

FTP server

Xeon4_1.8/512MB

/34G_SCIS/720G_IDE

Win03sp1/ServerU6.2/IIS6.0

6

WEB_Dev client

P4_2.8/2G/280G

WinXPsp2/MSVisualStudio05

 

2. 规划

序号

服务器

服务

备注

1

DNS

Active Directory

DNS

DHCP

域控制器。

ISA04安装失败。

很想在这里装SQL,但很多建议不要在域控制器装数据库,浪费资源的说。

2

WEB

IIS6.0

MsSQL05

IRC/RTX

Login/News/Forum/Download/Media/Blog

先试用DotNetNuke4开发。

3

FTP

FTP
流媒体
Mail

ServerU6.2

流媒体服务(待定?)

WinWebMail/Winmail

4

WEB_Dev client

MSVisualStudio05

 

 

3. 开发/工作环境  

主要使用client远程桌面连接登陆各server。  

WEB代码设计:VWD_VisualStudio05 


待续-2-

一步一步建网-2-DotNetNuke4-1/2-小述/安装

Posted on 2006-02-23 12:58 BenL 阅读(390) 评论(0)  编辑  收藏 所属分类: 0-DotNetNuke

DotNetNuke4 

1. 小述 

DNN相关网站: DotNetNuke So good!中国DNN (05年中后就好像没人管了……期待ingDNN_in_cnblogs(好象与中国DNN同一个组织者,+U! 

DNN4小介:此为一网站Portal(入口/模板/开源),采用.net_Framwork_2.0/asp.net_2+SQLResource必须在MS_Visual_Studio_05下编辑,默认数据连接为MS_SQL_05_express(注意,用MS_SQL_server_05时,安装时要改web.config,详见下)。 

另:

个人一此收藏。
DNN4.0.2版本。
WEB(安装的Serv)简要:IIS6.0+FrontPage_Server_Extensions_2002Win03自带,默认安装系统时无,需另安装)。

 

2. 安装 

2-1. SQL数据部分 

2-1-1. 数据库软件安装(MS_SQL_server_05

“Windows验证还是混合验证,本人选择混合”+“sa:sasasa”,这样看来保险一点。

2Newbie:使用时或数据变动时,经常刷新一下。~_~!) 

2-1-2. 数据库(表)安装

2-1-2-1. 打开SQL Server Management Studio对象资源管理器-数据库 - 新建数据库数据库名称(官方默认为DotNetNuke)为DNN4(增加实战性)。

2-1-2-2. 安全性-登陆名-新建登陆名,增加NT AUTHORITY\NETWORK SERVICE用户,服务器角色serveradmin用户映射添加DNN4

2-1-2-3. 打开 数据库 - DNN4 - 数据库 - NT AUTHORITY\NETWORK SERVICE,在此用户拥有的架构数据库角色成员身份下选中db_owner
 

2-2. 安装DNN4软件包

2-2-1.
为了二次开发,当然使用resource包:DotNetNuke_4.0.2_Source.zip(8,188k),解压之。

2-2-2. 新建-网站->dnn4,设置其子目录website为网站主目录;设置此目录权限,增加NETWORK SERVICE-允许-完全控制。(注意使用高级-子目录继承父权限,使用(于Win03,下同)

2-2-3. Microsoft SharePoint 管理 - 扩展 。(注意:在域中,可能由于用户权限问题,会出错)(此举为方便以后在client机上管理此网站,例如在clientVS05中可像本地一样打开此网站所有资源)
 

2-3. 设置数据连接 

2-3-1. 修改website目录下release.config文件名为web.config

2-3-2. 打开此文件修改:<configuration> 下的的<connectionStrings><appSettings>,都设置为 Connection String for SQL Server 2000/2005 (即更改注释符-->的位置);

其中更改默认行<add key="SiteSqlServer" value="Server=(local);Database=DotNetNuke;uid=;pwd=;" />为以下之一 

<!--使用SQL Server身份验证-->

<add key="SiteSqlServer" value="Server=(local);Database=DDN4;uid=sa;pwd=sasasa;" />

<!--使用Windows身份验证-->

<add key="SiteSqlServer" value="Persist Security Info=False;Integrated Security=SSPI;database=DDN4;server=(local)" />


2-4. Install/
执行安装 

使用IIS管理器->dnn4-Install目录->install.aspx-浏览,(或:在IE上输入http://localhost/Install/install.aspx),执行ingwaitOK


2-5.
另(当使用默认数据连接MSSQLexpress05时): 

2-5-1. 2.1节改为安装MS_SQL_05_express”(VS05自带安装,免费,简单);

2-5-2. 2.3项不要,OK!
 

2-6. PS:在以后修改网站前,先备份一下原始SQL数据库!


待续-3-
 

一步一步建网-2-DotNetNuke4-3-基本设置

Posted on 2006-02-24 09:29 BenL 阅读(244) 评论(0)  编辑  收藏 所属分类: 0-DotNetNuke

DotNetNuke4

 

3. 基本设置

①②③④⑤⑥⑦⑧⑨⑩为设置修改顺序

 

3-1. 进入“host”(默认密码:“host”)。设置(左上“Host”):

 

序号

项目

首选项

子选项

参数

备注

1

Host Settings

Basic Settings

Host Details

Host Portal, Host Title, Host URL, Host Email

主机设置①

Appearance

Host Skin, Host Container

外观/风格②

Advanced Settings

Other Settings

Performance Setting

性能③

2

Portals

 

 

 

入口点

3

Module Definitions

 

 

 

模板定义,增加/删除⑩

4

File Manager

 

 

 

\Portals\_default”下的文件

5

Vendors

 

 

 

供应商,友情链接

6

SQL

 

 

 

执行SQL语句

7

Schedule

 

 

 

名页面使用情况

8

Languages

Upload Language Pack

 

 

语言包安装⑤、制作、删除

9

Search Admin

 

 

 

搜索管理(定义)

10

Lists

 

 

 

列表

11

User Accounts

 

 

 

Host用户管理(修改密码④)

12

Skins

Skins

 

 

皮肤/风格上传

Containers

 

 

容器上传

 

3-2. 进入 “admin” (默认密码:“admin”)。设置(左上“admin”):

序号

项目

首选项

子选项

参数

备注

1

Site Settings

Basic Settings

Site Details

Title, Description, Key Words

主机设置⑥

Appearance

Logo, Body Background, Portal Skin, Portal Container

外观/风格⑦

Advanced Settings

Security Settings

User Registration

注册验证设置

Other Settings

Copyright, Banner Advertising, Default Language, Portal timeZone

版权,广告,默认语言,时间区域⑧

Host Settings

 

主机设置(应该是和host设置对应?)

Stylesheet Editor

 

 

CSS STYLES FOR DotNetNuke(风格文件?)

Portal Aliases

HTTP Alias

 

域名绑定

2

Pages

 

 

 

页面增加/删除/设置(重点)⑨

3

Security Roles

 

 

 

定义角色

4

User Accounts

 

 

 

用户列表(修改)

5

Vendors

 

 

 

供应商,友情链接(本站)

6

Site Log

 

 

 

站点日志(好像无内容?)

7

Newsletters

 

 

 

群发邮件

8

File Manager

 

 

 

\Portals\0”下的文件(也就是站点1的文件)

9

Recycle Bin

Pages

 

 

删除的页面

Modules

 

 

删除的模块

10

Log Viewer

Viewer Settings

 

 

网站修改记录查看

11

Skins

Skins

 

 

皮肤/风格上传(增加Skin Type

Containers

 

 

容器上传

12

Languages

Upload Language Pack

 

 

语言包制作、安装、删除

13

Authentication

 

 

 

Windows验证(有待研究?)

 

待续-4-

 

DotNetNuke4

 

4. 页面增加/删除/设置

 

上一节中⑨(重点研究)

 

 

4-1. 基本方法

 

先在3-2节中第二项增加页面,这些页面可以在顶部Page Functions增加相应页面,看看效果。

 

4-1-1. Module Definitions测试/研究:修改Account Login,在Edit Module Definitions下,Friendly NameDescription修改作为模块的内部显示名称和描述。

 

4-1-2. 默认两个页面为HomeSearch ResultsHidden属性)。

隐藏Home原页:Admin-PagesPage Management(Home),设置(PermissionsHiddenHidden)。

注意:当site无任何页面显示时,skin/container返回默认值。

 

 

4-2. DNN4默认内置module:

 

模块名称

介绍

使用经验/心得

[皮肤对象]

皮肤对象是用来给用户提供自由定义的控件

最内置module,即管理页面下最上边的一栏

Account Login

Allows users to login to the portal.

用户登陆。

注意:Account Login这个模板可能有BUG,因为在Control里,原Source:为Admin/Security/Signin.ascx,但修改时无此项,当使用Update后会变成其它项,以后增加此页面就会出错。晕!(应该是模块Control注册问题,待研究。)

Announcements

This module renders a list of announcements. Each announcement includes title, text and a "read more" link, and can be set to automatically expire after a particular date.

公告。

Banners

Banner advertising is managed through the Vendors module in the Admin tab. You can select the number of banners to display as well as the banner type.

广告。

Contacts

This module renders contact information for a group of people, for example a project team. Contacts includes an edit page, which allows authorized users to edit the Contacts data stored in the database.

在线联系资料。

Discussions

This module renders a group of message threads on a specific topic. Discussion includes a Read/Reply Message page, which allows authorized users to reply to exising messages or add a new message thread. The data for Discussion is stored in the SQL database.

留言,讨论。

注意:Security Roles定义不完整,使用户留言能相互修改。屏蔽edit项?

Documents

This module renders a list of documents, including links to browse or download the document. Documents includes an edit page, which allows authorized users to edit the information about the Documents (for example, a friendly title) stored in the SQL database.

下载。

相当简单文档(下载资源)管理。

Events

This module renders a list of upcoming events, including time and location. Individual events can be set to automatically expire from the list after a particular date. Events includes an edit page, which allows authorized users to edit the Events data stored in the SQL database.

博客。

有点似。

FAQs

FAQs allow you to manage a list of Frequently Asked Questions and their corresponding Answers.

 

Feedback

Feedback allows visitors to send messages to the Administrator of the portal.

联系站长,email。

IFrame

IFrame is an Internet Explorer browser feature which allows you to display content from another website within a frame on your site.

有待研究。

Image

This module renders an image using an HTML IMG tag. The module simply sets the IMG tags src attribute to a relative or absolute URL, so the image file does not need to reside within the portal. The module also exposes height and width attributes, which permits you to scale the image. Image includes an edit page, which persists these settings to the portals configuration file.

 

Links

This module renders a list of hyperlinks. Links includes an edit page, which allows authorized users to edit the Links data stored in the SQL database.

 

News Feeds (RSS)

News Feed allows you to consume syndicated news feeds in Rich Site Summary (RSS) format.

 

Search Input

The Search Input module provides the ability to submit a search to a given search results module.

搜索。

主站页面顶已经提供。

Search Results

The Search Reasults module provides the ability to display search results.

搜索结果。

安装自带二之二,默认Hidden属性。

Survey

Survey allows you to create custom surveys to obtain public feedback

调查/投票。

还可以。增加后如果再修改,会出现问题。

Text/HTML

This module renders a snippet of HTML or text. The Html/Text module includes an edit page, which allows authorized users to the HTML or text snippets directly. The snippets are stored in the SQL database.

普通页面。

安装自带二之一,Home。

User Account

Allows users to register and manage their account.

用户资料。

User Defined Table

User Defined Table allows you to create a custom data table for managing tabular information.

用户制作数据表。

UsersOnline

Users Online allows you to see who is online in your portal, and see membership counts

显示用户在线情况。

XML/XSL

This module renders the result of an XML/XSL transform. The XML and XSL files are identified by their UNC paths in the xmlsrc and xslsrc properties of the module. The Xml/Xsl module includes an edit page, which persists these settings to the SQL database.

 

 

 

4-3. 安装新Module

上一节中⑩

 

 

4-3-1. Forum

 

4-3-1-1. 测试/下载:Forum_03.20.01_Install.zip

 

4-3-1-2. 安装:Host登陆,Host-Module-Definitions-Upload-New Module-Add-,Upload New File

 

4-3-1-3. 试用感:基本架构的BBS;但毕竟是国外的,管理/控制上有点不一样,功能弱,且要增加中文资源包;需要进行二次开发。

 

 
 

一步一步建网-2-DotNetNuke4-5/6-杂项/感!

Posted on 2006-03-03 19:29 BenL 阅读(536) 评论(2)  编辑  收藏 所属分类: 0-DotNetNuke

5. 杂项/一些记录 

5-1. 语言包 

5-1-1. 中文资源包(http://www.版)里,作者增加了的版权信息于登陆页面:\App_GlobalResources\GlobalResources.zh-CN.resx

5-1-2. 英文包和中文包经常打架。(修改中文包资源文件后出现,应该是SQL更新BUG)(所以,本站以后禁用了英文包。晕!)(暂解决:禁用中文包后再使用)


5-2.
基本参数

5-2-1. 浏览默认安装Home页时,<title>多了个“( DNN 4.0.2 )”,不解?新建首页后消失。


5-3.
文件系统 

5-3-1 DDN文件系统采用后台(数据库记录)登记:只有通过在File Manager里设置,才能在其它可选文件项上选择。(所以使用系统资源管理器/FTP等方式增加修改文件后,执行Synchronize Database And File System

5-3-2. 在Host管理里增加Pic文件夹,增加banner.gif


5-4.
广告
Vendors(供应商、赞助商、卖主、小贩?:)。 

5-4-1. Add New Vendor

Banner TypeBanner/MicroButton/Button/Block/Skyscrape/Text/Script

其中Banner就是页面左上的广告条。

 

5-5. 皮肤/风格/容器

skin/container

5-5-1.默认背景色BGcolor:F7F7F7

 
6. 感!

至此,经过数天对DNN4的了解和研究,感: 

好:一个功能强大PORTAL,特别是对新.net2.0的支持,有N多Pro人开发相关基本Module,Skin也不错。重要的是开源,可以二次开发再开发。(据说4有些模块没有resource。本人不是搞编程,未深入研究) 

坏:首当是速度有点慢!!!Xeon2.0/512MB可能已经成为过去式了。(这个原因,本人要暂放弃它了)由于种种原因,感觉dnn虽然是一个开源resource,但更带有商业性,很多有用Module都是二次开发出来商用,更不说Skin了,能DOWN的较少。 

.net Framwork 系统,在性能,易用性都强,虽然DNN在开源方面走在前列,但毕竟比起asp/php这种经过NN年磨练、拿来就用/改,它的用户还是少啊,更不说做开发用户了,所以,对渴望开源人来说.net/dnn还要走得更远……

 

 


<End DNN4>

 
 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多