📄 2. installation.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>7.4 Installing the Content Manager </title>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<LINK href="stylesheet.css" type="text/css" rel="stylesheet">
<meta content="AITPublish" name="Generator">
<meta content="" name="Keywords">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK href="44.css" type="text/css" rel="stylesheet">
</head>
<body text="#000000" vLink="#ff0000" aLink="#008000" link="#0000a0" style="FONT-FAMILY:arial">
<h2 class="heading2">2. Installing the Content Manager</h2>
<table style="BORDER-COLLAPSE: collapse" cellSpacing="0" cellPadding="2" width="666" border="0">
<tr>
<td width="390" height="0"><STRONG><FONT size="4"></FONT></STRONG></td>
<td width="276" height="0"><STRONG><FONT size="4"></FONT></STRONG></td>
</tr>
<tr vAlign="top" align="left">
<td width="666" colSpan="2">
<p class="ew-subheading"><STRONG><FONT size="4">2.1 Downloading and Siting</FONT></STRONG></p>
</td>
</tr>
<tr vAlign="top" align="left">
<td width="666" colSpan="2">
<P>Before you begin, you will need to download a copy of the Content Manager.</P>
<P>Developers with an interest in studying and customising XMContentManager can
download a copy from:<BR>
<A onclick="JAVASCRIPT:window.open('http://www.planet-source-code.com');" href="#">www.planet-source-code.com</A><br>
You will need to run "XMContentManager.sln" in Visual Studio.Net and build the<br>
program before you can use it.</P>
<P>If you do not have Visual Studio, then you should download a pre-built version
of the Content Manager from:
<BR>
<a href="http://island.manukau.ac.nz/XMCMResources/Services/XMContentManager.zip">http://island.manukau.ac.nz/XMCMResources/Services/XMContentManager.zip</a></P>
<p class="bodytext"> </p>
</td>
</tr>
<tr vAlign="top" align="left">
<td width="390">
<P>Once you have downloaded and unzipped the files, you need to place them
appropriately on your hardrive.</P>
<P>Whilst you can place them anywhere you please,here are some recommendations:</P>
<P>
For developers, testers and evaluators, set up as folder:<BR>
<span style="FONT-FAMILY:courier new"><STRONG>C:\inetpub\wwwroot\xmcontentmanager</STRONG></span><BR>
as seen in this diagram ---></P>
<P>The folder needs to be called "xmcontentmanager" only if you want to do some
programming with it. For deployment you can and should name the parent
folder in a way that reflects your organisation or purpose. eg "iafilm",
"XMCMResources"</P>
<P>For large-scale deployment without customising the programming, use your site
rules as for all large scale web app or file serving deployments.
<BR>
For example, an Administrator runs a webserver with 2 disk
drives:
<BR>
"C: Drive" for the operating system
<BR>
and "D: Drive" for applications and data.
<BR>
He sets up his parent folder as
<BR>
<span style="FONT-FAMILY:courier new"><STRONG>D:\Webs\XIntranet</STRONG></span><BR>
</P>
</td>
<td width="276">
<p class="widegraphic"><IMG height="229" alt="" hspace="0" src="Docu_files/374.jpg" width="231" align="bottom"
vspace="0" border="0"></p>
</td>
</tr>
</table>
<p class="bodytext"></p>
<P class="bodytext">
<TABLE id="Table1" style="BORDER-COLLAPSE: collapse" cellSpacing="0" cellPadding="2" width="672"
border="0">
<TR>
<TD width="390" height="0"></TD>
<TD width="282" height="0"></TD>
</TR>
<TR vAlign="top" align="left">
<TD width="672" colSpan="2">
<P class="ew-subheading"><STRONG><FONT size="4">2.2 Creating a Virtual Directory</FONT></STRONG></P>
</TD>
</TR>
<TR vAlign="top" align="left">
<TD width="390">
<P>Open the Computer Management console from right clicking My Computer and select
Manage.</P>
<P>Navigate to: Services & Applications > Internet Information Services >
Websites > Default Website</P>
<P>Right-click on "Default Web Site", select "New" > "Virtual
Directory" and a wizard will begin.</P>
<P>Firstly enter a name that you wish to use to get to the Content Manager from
another computer. For developers and testers it is best to stick with
"xmcontentmanager". For deployment you have more freedom but
we recommend you keep the Virtual Directory name the same as the Windows
DIrectory (parent folder) name.</P>
<P>After clicking Next, you will be asked to enter the directory of the files you
wish to make into a Virtual Directory. For this, browse to the Parent Folder
where you placed the files.</P>
<P>Click Next through the wizard to finish your Virtual Directory setup.</P>
<P> </P>
</TD>
<TD width="282">
<P class="widegraphic"><IMG height="137" alt="" hspace="0" src="Docu_files/370.jpg" width="250" align="bottom"
vspace="0" border="0"></P>
</TD>
</TR>
<TR>
<TD width="672" colSpan="2">
<P class="ew-subheading"><FONT size="4"><STRONG>2.3 Security and Setup notes for .mdb
database files</STRONG></FONT></P>
</TD>
</TR>
<TR>
<TD width="672" colSpan="2">
<P>Some features of XMContentManager use Microsoft Access database
technology. These appear under the "Services" folder as databases:</P>
<UL>
<LI>
<STRONG>"Control.mdb"</STRONG> - handles Internet Mode custom Usernames and
Passwords as well as a page counter and visit-statistics-gathering system.<BR>
<LI>
<STRONG>"Notices.mdb"</STRONG> - handles notices and discussion boards.</LI></UL>
<P><STRONG>SECURITY WARNING:</STRONG> and this applies to ALL web apps, not just
XMContentManager ... any user knowing the names and folders for these
databases may be able to type that as an address into his/her browser
and download a copy of that .mdb file. This is especially the case for
open source software like XMContentManager where everyone who sees the download
sees that these databases live by default in folders "48001" and "48002".</P>
<P><STRONG>SECURITY DEFENCE:</STRONG> <STRONG>RENAME</STRONG> the parent
folders to YOUR CUSTOM NAME.<BR>
You ALSO need to make the same name changes to the "ConnectionString" values in
file <STRONG>"web.config".</STRONG></P>
<P><STRONG>SPECIAL CASES:</STRONG> Some Web Hosting Providers set their own house
rules for .mdb files on their webservers. For example <A href="http://www.2day.com">
www.2day.com</A> insist that you must place .mdb files in a sub-folder
called "_database". In this case or others like it, change the file
names, also changing the web.config "ConnectionString" values to match.</P>
<P><STRONG>More about .mdb's:</STRONG> Many WebServers slam a rule on the
visiting general public that any process they start will get stopped if it
tries to change a file on disk. But .mdb's are files on disk, so for them
to work it may be necessary for administrators to set up their parent folders
with special change-allowed permissions. Web Hosting Providers who host a
lot of web apps using .mdb's often run custom programs on their machines to
automatically set up .mdb's. Which explains rules like <EM>"you
must name your folder '<STRONG>_database'</STRONG> so my automatic setup
can find and configure it."</EM>. Note that special instructions for
.mdb's can be different for each hosting provider.</P>
<P> </P>
</TD>
</TR>
<TR vAlign="top" align="left">
<TD width="672" colSpan="2">
<P class="ew-subheading"><FONT size="4"><STRONG>2.4 Activating the Indexing Service</STRONG></FONT></P>
</TD>
</TR>
<TR vAlign="top" align="left">
<TD width="390">
<P>Whilst in the Computer Management console, check that the "Web" node is visible
under the Indexing Service section.</P>
<P>If it is not, right click and select New Catalog.</P>
<P>Enter the name "Web" and browse to the Inetpub directory for the location. Press
OK to activate this.</P>
<P> </P>
</TD>
<TD width="282">
<P class="widegraphic"><IMG height="159" alt="" hspace="0" src="Docu_files/371.jpg" width="250" align="bottom"
vspace="0" border="0"></P>
</TD>
</TR>
</TABLE>
</P>
<TABLE id="Table2" style="BORDER-COLLAPSE: collapse" cellSpacing="0" cellPadding="2" width="666"
border="0">
<TR>
<TD width="390" height="0"><STRONG><FONT size="4"></FONT></STRONG></TD>
<TD width="276" height="0"><STRONG><FONT size="4"></FONT></STRONG></TD>
</TR>
<TR>
<TD width="666" colSpan="2">
<P><STRONG><FONT size="4"> 2.5 Intranet versus Internet - it's about a tick in a box.</FONT></STRONG></P>
<P>
By default, the IIS WebServer will run a new XMContentManager for a public
internet audience.<BR>
To run in "Intranet" mode:
<BR>
- In IIS, right click on your Virtual Directory and select
"Properties"<BR>
- Navigate to the tab option "Directory Security" and
click its "Edit" button.<BR>
<img src="Docu_files/iisProperties.jpg" border="1">
</P>
<P> - In the popup window, untick (uncheck) the box "Anonymous Access".<BR>
<img src="Docu_files/iisAnonymous.jpg" border="1"><BR>
You should leave the lower section of this form, "Authenticated Access",
unchanged
<BR>
at its default setting of "Integrated Windows Authentication" except in very
rare circumstances like use of old non-Windows machines on an otherwise secure
local area network.</P>
<P>Like most "XMContentManager" settings, you often need to configure a
value in XMContentManager to match what you have done on the host
machine. These configurations are done in a file "web.config". :</P>
<p style="FONT-SIZE:0.8em; FONT-FAMILY:courier new">
<span style="COLOR:green"><!-- key "privilegedGroup" is for INTRANET use.</span>
<BR>
<span style="COLOR:green">Value is the server user group eg "Teachers".</span>
<BR>
<add key="privilegedGroup" value="Teachers" /><br>
<span style="COLOR:green">You can use the dummy value "Test" to open the privileged
area to everyone for testing.</span><br>
<add key="privilegedGroup" value="Test" /><br>
<span style="COLOR:green">You can use a non-existent group to switch off the
privileged area altogether.</span><br>
<add key="privilegedGroup" value="xxxxxxxx" /><br>
<br>
<span style="COLOR:green">For INTERNET custom login, use a value of ""</span><br>
<add key="privilegedGroup" value="" />
</p>
<P><STRONG>Backgrounder</STRONG></P>
<P>A WebServer delivering an "Intranet" service is using existing Windows Security,
usually Local Area Network logins, to identify and manage users and user
permissions. In "Intranet" mode, XMContentManager lets Windows do all the
security work and simply goes along for the ride.</P>
<P>It is possible to run an XMContentManager on the public internet in "Intranet"
mode, but this does mean giving your privileged users a lot more than
XMContentManager by giving them Windows usernames and passwords for that
machine. If your XMContentManager is running by renting or sharing space
on someone else's machine, that someone else may well be unwilling to create
Windows Users and Groups just for your one app amongst many, may be concerned
about giving out too much, or may simply want to charge you lots of money for
doing such an adjustment for you.<BR>
Therefore in Version 2 of XMContentManager, we have come up with our own
built-in username and password system which is isolated to the XMContentManager
web app folder and quite separated from anything else going on for the host
machine.</P>
<P> </P>
</TD>
</TR>
<TR vAlign="top" align="left">
<TD width="666" colSpan="2" style="HEIGHT: 16px">
<P><STRONG><FONT size="4">2.6 Setting Security Permissions for an Intranet</FONT></STRONG></P>
</TD>
</TR>
<TR vAlign="top" align="left">
<TD width="666" colSpan="2">
<P>These guidelines apply only to <STRONG>Intranet mode</STRONG>, assuming
your WebServer or LAN already has user groups created and defined.</P>
<P> </P>
</TD>
</TR>
<TR vAlign="top" align="left">
<TD width="390">
<P>1. Right click the Content folder and
<BR>
click Properties.</P>
<P> </P>
<P> </P>
<P>2. Go to the Security tab and select
<BR>
the Users group.</P>
<P> </P>
<P> </P>
<P>3. Tick the allow or deny boxes for
<BR>
each relevant permission to restrict
<BR>
what users can do on the intranet.</P>
<P> </P>
</TD>
<TD width="276">
<P class="widegraphic"><IMG height="258" alt="" hspace="0" src="Docu_files/375.jpg" width="250" align="bottom"
vspace="0" border="0"></P>
</TD>
</TR>
<TR vAlign="top" align="left">
<TD width="390">
<P>4. Now right click the Staff folder and click
<BR>
Properties.</P>
<P> </P>
<P> </P>
<P>5. Go to the Security tab and select
<BR>
the Students group.</P>
<P> </P>
<P> </P>
<P>6. Tick the deny boxes for each
<BR>
student permission to stop students
<BR>
gaining access to the Staff folder.</P>
<P> </P>
</TD>
<TD width="276">
<P class="widegraphic"><IMG height="267" alt="" hspace="0" src="Docu_files/376.jpg" width="250" align="bottom"
vspace="0" border="0"></P>
</TD>
</TR>
</TABLE>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -