Difference between revisions of "Contensive Installation and Setup"

From Contensive Wiki
Jump to: navigation, search
(Non-Amazon Server)
Line 5: Line 5:
 
===Server Setup and Configuration===
 
===Server Setup and Configuration===
  
For Amazon AWS, create an instance from the AMI Contensive41. This AMI is built from the latest version of these instructions.
+
====Amazon AWS====
 +
For Amazon AWS, create an instance from the AMI Contensive41. This AMI is built from the latest version of these instructions.  
 +
#Login with the new administrator account and update the account password (contensive) for
 +
#* administrator - We recommend you not regularly use this account. If you leave Windows Remote Desktop open in your firewall, you should disable it. Otherwise you can leave it as an emergency login.
 +
#* contensive - change the password, and update the new password in DcomCnfg for the ccKrnl.exe execution (see full installation for details)
 +
#* kmaAdmin - This is the account used by administrators day-to-day and can be renamed or replaced. We recommend against using the administrator account.
 +
#Configure an SMTP server for use by the server. We recommend using Amazon SES, but any SMTP server will work. If you use the IIS SMTP server on Windows 2008R2, Amazon does not provide a way to reverse the server's IP address and may be a deliverability issue. When you have it configured, log in to the admin site and enter it in the email tab of preferences.
 +
# Add an elastic ip to ec2 instance
  
 +
====Non-Amazon Server====
 
This instruction prepares a Windows Server 2008 R2 for Contensive 4.1.636.
 
This instruction prepares a Windows Server 2008 R2 for Contensive 4.1.636.
  
 +
#Establish a domain name for the server unrelated to the possible website.
 
#Windows Web Server 2008 R2-64
 
#Windows Web Server 2008 R2-64
 
#Install the latest Windows Updates$
 
#Install the latest Windows Updates$
#Setup external firewal
+
#Setup external firewall
 
#*80
 
#*80
 
#*21
 
#*21
Line 19: Line 28:
 
#*5901, for remote desktop, point-to-point if possible to
 
#*5901, for remote desktop, point-to-point if possible to
 
#*ICMP
 
#*ICMP
 
+
#reverse map the server’s domain to the primary IP address
#reverse map the server’s domain (s13.kma.net) to the primary IP address
+
 
+
 
#Disable User Access Control
 
#Disable User Access Control
 
#*Control Panel > users > Left Pane
 
#*Control Panel > users > Left Pane
 
#*Set the warnings all the way off
 
#*Set the warnings all the way off
 +
#Create accounts
 +
#*Administrative tools > Computer Management > Local User and Groups
 +
#**If you have an external firewall, leave the administrator account and save it for emergencies, else disable it
 +
#**Create a user admin account (not administrator), password never expires
 +
#**Create a user for contensive, un:contensive, password never expires
 +
#Windows Firewall. If you access the server remotely, we recommend you use an external firewall and disable the windows firewall to descrease the possibility of losing access to your machine.
 +
#*Administrative Tools > Windows Firewall > Inbound Rules
 +
#*World Wide Web Services, ports 80 + 443, allow
 +
#*Remote Desktop + Remote DesktopFX, 3389. allow. If server access is limited to only a remote connection, leave this open. If you direct access to the machine, limit 3389 to your local IP(s)
 +
#*add rule for Contensive Monitor, 5900, allow
 +
#*add rule for Remote Desktop, 5901, allow
 +
#*ICMPv4 (ping), allow
 +
#Networking
 +
#*Control Panel, set small icons, Network and Sharing Center
 +
#*Local Area Connection > Properties > dbl click IP4
 +
#*Verify all IP addresses are entered with mask, gateway and DNS. If no DNS available, use Google's 8.8.8.8, 8.8.4.4
 +
#Local Security Policy
 +
#*Administrative Tools > Local Security Policy > LocalPolicies
 +
#*Local Policies > User Rights Assignment > Allow login through remote desktop
 +
#*+ Administrators
 +
#*Security Options > “interactive Login: do not display last user name”=enable
 +
#*Account policies > Account Lockout Policy
 +
#*3 invalid attempts
 +
#*3 minute lockout
 +
#Remote Desktop Change Port (optional to increase security if you only have remote server access and no external firewall)
 +
#*Regedit
 +
#*HLM > System > Current Control Set > Control > Terminal Server > Winstations > RDP_TCP > PortNumber, set to 5901.
 +
#Install IIS
 +
#*Server manager → Roles → Install WebServer IIS
 +
#*Administrative Tools > Server Manager > Root screen
 +
#*Configure IE ESC > Turn off
 +
#*Check “Do not show me this consol at login”
 +
#*Add Roles and Features
 +
#*Administrative Tools > Server Manager > Roles > Add Role Services
 +
#*Check ASP.NET, agree to add required roles
 +
#*Check ASP
 +
#*Check CGI
 +
#*Security, Basic Authentication
 +
#*Management Tools, IIS 6 management compatibility
 +
#*Administrative Tools > Server Manager > Features
 +
#*Check SMTP Server, agree to add required roles
 +
#Windows Settings
 +
#*Set timezone (typically for your customer's timezone)
 +
#*Turn on Automatic Windows Updates
 +
#Create Working Folders and permission
 +
#*set administrators full control for hosts files
 +
#*D:\Archive
 +
#*D:\InetPub
 +
#**users: full control
 +
#*D:\Db
 +
#**users: full control
 +
#*D:\DbBackup
 +
#*users: full control
 +
#*C:\windows\temp
 +
#**users: list + read
 +
#**IIS_User: List + read
 +
#Create Folder on Desktop for frequent shortcuts
 +
#*ODBC32 - Windows\sysWow64\odbcad32.exe
 +
#*dcomcnfg shortcut
 +
#*IIS shortcut
 +
#*Services shortcut
 +
#Software Installation
 +
#*Microsoft Web platform Installer
 +
#**PHP Manager
 +
#**PHP 5.5.11 (previously 5.3.5)
 +
#*Firefox or Chrome
 +
#* Optional backup provider like Carbonite. Keep backup of folders
 +
#Sql Server 2008 R2 SP2. If Db size anticipated under 20G use Express Edition. Over 20G requires Web Edition
 +
#**Google search, “Microsoft® SQL Server® 2008 R2 SP2 - Express Edition”
 +
#**for 32-bit machines - use x86
 +
#**for 64-bit machines - use x64
 +
#**Install instance features, but check Default Instance during install
 +
#**Account provisioning: mixed mode authentication
 +
#**Set sa password
 +
#*7Zip, 64 bit windows version
 +
#*Contensive, get latest version at http://clib.io
  
Create accounts
+
#Set Dcom permissions for Contensive
Administrative tools > Computer Management > Local User and Groups
+
#*run "DComCnfg/32 - MMC comexp.msc /32" then add 
kmaAdmin/, administrator, password never expires
+
#* Then open fdcomcnfg and locate cckrnl.exe
(aws - leave the original aws administrator account as-is)
+
#*Right click, click permissions, set everyone/all for all three sections
contensive/-pw-, user, password never expires
+
#*identity, contensive/-pw-
SQLServer/-pw-, user, password never expires
+
#*if ccKrnl does not show in dcomcnfg (make sure you are in the 32-bit view MMC comexp.msc /32), run 2 registry files found in the folder for this document (ccKrnl.reg, ccKrnl2.reg)(Note: on 64bit machines this has to run: at the command Line run “MMC comexp.msc /32”)
Windows Firewall (ignore if hosting firewall)
+
#Folder Permissions
Administrative Tools > Windows Firewall > Inbound Rules
+
#*kma/contensive - user/all
World Wide Web Services, ports 80 + 443, allow
+
#Run configWizard
Remote Desktop + Remote DesktopFX, 3389. allow
+
#Server Service, verify it starts OK
add rule for Contensive Monitor, 5900, allow
+
#Run Application Manager
add rule for Remote Desktop, 5901, allow
+
#Verify attach to local server
ICMPv4 (ping), allow
+
#Add Root Site, named for the server’s domain (s00.kma.net)
FTP, port 21, allow
+
#Change Contensive config (MonitorConfig.txt) to use port 5900 for monitor, restart Contensive Monitor service
if DNS, add 53 (dns) and 123 (NTP)
+
#Setup backup tools
Networking (aws)
+
#*If you need a Sql Server backup script, download kmaBackupTools.zip, unzip and create a scheduled task for backupSql.cmd. It backups all Sql Server catalogs to a file in d:\DbBackup
add elastic ip to ec2 instance
+
#**Verify the d:\DbBackup folder matches in the Sql file
setup an a record to the elastic ip
+
#**Verify the source programs files are correct in the cmd file
Networking (non aws)
+
#**Run a test of the cmd file
Control Panel, set small icons, Network and Sharing Center
+
#**Setup a scheduled task to run it routinely (we typically run everyday at 8pm,)
Local Area Connection > Properties > dbl click IP4
+
#IIS PHP Manager
Set all IP addresses purchased
+
#*Open from root of IIS Manager
1and1 mask = 255.255.255.255
+
#*Enable php_com_dotnet extension
1and1 gateway = 10.255.255.1
+
#*Add max_input_vars 2000
DNS they provide, or
+
#*upload_max_filesize = 50M
8.8.8.8
+
#*post_max_size = 50M
8.8.4.4
+
#IIS Manager
Local Security Policy
+
#*Application Pools > set applicaiton pool default
Administrative Tools > Local Security Policy > LocalPolicies
+
#*Enable 32-bit = true
Local Policies > User Rights Assignment > Allow login through remote desktop
+
#*Recycling
+ Administrators
+
#**Private Limit = 40,000
Security Options > “interactive Login: do not display last user name”=enable
+
#**Virtual Limit = 200,000
Account policies > Account Lockout Policy
+
#**Requests = 100
3 invalid attempts
+
#*Click on top node, set default in right-hand pane
3 minute lockout
+
#**ASP
Remote Desktop New Port (non-aws)
+
#**Max Requesting Entity Body Limit = 10M
Regedit
+
#**Session Properties, Enable Session State = false
HLM > System > Current Control Set > Control > Terminal Server > Winstations > RDP_TCP > PortNumber, set to 5901.
+
#**Default Document list, only
 
+
#***Index.php
 
+
#***index.asp
If  a new server Build Install IIS
+
#**Error Pages
Server manager → Roles → Install WebServer IIS
+
#***Edit feature settings - custom error pages
Server Manager
+
#***404 set to /index.php (for each site)
Administrative Tools > Server Manager > Root screen
+
#Setup SMTP
Configure IE ESC > Turn off
+
#*Start IIS6 Manager
Check “Do not show me this consol at login”
+
#*go to SMTP Virtual Server 1, properties
Add Roles and Features
+
#*Leave IP set to all unassigned
Administrative Tools > Server Manager > Roles > Add Role Services
+
#*go to Access Tab
Check ASP.NET, agree to add required roles
+
#*Connect - grant only 127.0.0.1
Check ASP
+
#*Relay Restrictions - grant only 127.0.0.1
Check CGI
+
#*go to Delivery Tab, click advanced  
Security, Basic Authentication
+
#*Set masquerade to server name i.e. s13.kma.net
Management Tools, IIS 6 management compatibility
+
#*set FQN to server name i.e. s13.kma.net
Administrative Tools > Server Manager > Features
+
#*Domain node under Virtual Server, rename to this server's domain
Check SMTP Server, agree to add required roles
+
#Run windows Updates
Windows Settings
+
#*auto install at 3am (while v42 does not start correctly, set to manual install)
Set timezone to East Coast (aws leave utc)
+
#Services  
Turn on Automatic Windows Updates
+
#*administrative Tools → Services
Create Working Folders and permission
+
#*SMTP - Start and set to automatic
set administrators full control for hosts files
+
#*Contensive Monitor - Start and set to automatic
D:\Archive
+
#*Contensive Server - Start and set to automatic
D:\InetPub
+
#*IIS Admin Services - Start and set to automatic
users: full control
+
#*SQL Server -  Start and set to automatic
D:\Db
+
D:\DbBackup
+
users: full control
+
C:\windows\temp
+
users: list + read
+
IIS_User: List + read
+
Setup Upgrade Folder on Desktop
+
ODBC32 - Windows\sysWow64\odbcad32.exe
+
DComCnfg/32 - MMC comexp.msc /32
+
IIS shortcut
+
Services shortcut
+
Software Installation
+
Microsoft Web platform Installer
+
PHP Manager
+
PHP 5.5.11 (previously 5.3.5)
+
(skip if you can just use IE) Firefox
+
open IE and google Firefox download
+
Carbonite (non-aws)
+
www.carbonite.com
+
un: jay@contensive.com/-pw-
+
click on user jay
+
click “Add a Computer”
+
New rows appears -- select “Install on this Computer”
+
During setup, select Customize your backup.
+
“Start with Nothing in your online backup”
+
Create a schedule, once per day, start at 9pm
+
Manually Add
+
D:\DbBackup
+
D:\InetPub
+
C:\program Files (x86)\kma\Contensive
+
Filezilla Server (nonaws)
+
google search Download Filezilla Server
+
Add user kmaAdmin/-pw-, home D:\ftpRoot
+
set kmaAdmin user with read/write permissions on D:\ftpRoot
+
Go to a local machine and verify the connection.
+
Sql Server 2008 R2 SP2 - Express Edition (nonaws)
+
Google search, “Microsoft® SQL Server® 2008 R2 SP2 - Express Edition”
+
for 32-bit machines - use x86
+
for 64-bit machines - use x64
+
Install instance features, but check Default Instance during install
+
service user: SQLServer/-pw-
+
Account provisioning: mixed mode authentication
+
sa pw -pw-
+
add current user (kmaAdmin) as sql server admin
+
7Zip (nonaws)
+
64 bit windows version
+
Contensive
+
Run: Contensive Instillation found on s3 under the contensive folder → Latest ver is 41636
+
dcomcnfg - cckrnl42
+
permissions, set everyone/all
+
identity, contensive/-pw-
+
if ccKrnl does not show in dcomcnfg (make sure you are in the 32-bit view MMC comexp.msc /32), run 2 registry files found in the folder for this document (ccKrnl.reg, ccKrnl2.reg)(Note: on 64bit machines this has to run: at the command Line run “MMC comexp.msc /32”)
+
Folder Permissions
+
kma/contensive - user/all
+
Run configWizard
+
Server Service, verify it starts OK
+
Run Application Manager
+
Verify attach to local server
+
Add Root Site, named for the server’s domain (s00.kma.net)
+
Change Contensive config (MonitorConfig.txt) to use port 5900 for monitor, restart Contensive Monitor service
+
kma Backup Tools
+
Copy the BackupTools folder from another server
+
Verify the d:\DbBackup folder matches in the Sql file
+
Verify the source programs files are correct in the cmd file
+
Run a test of the cmd file
+
Setup a scheduled task to run the cmd file everyday at 8pm,
+
IIS PHP Manager
+
Open from root of IIS Manager
+
Enable php_com_dotnet extension
+
Add max_input_vars 2000
+
upload_max_filesize = 50M
+
post_max_size = 50M
+
IIS Manager
+
Application Pools > set applicaiton pool default
+
Enable 32-bit = true
+
Recycling
+
Private Limit = 40,000
+
Virtual Limit = 200,000
+
Requests = 100
+
Click on top node, set default in right-hand pane
+
ASP
+
Max Requesting Entity Body Limit = 10M
+
Session Properties, Enable Session State = false
+
Default Document list, only
+
Index.php
+
index.asp
+
Error Pages
+
Edit feature settings - custom error pages
+
404 set to /index.php (for each site)
+
 
+
 
+
If Migrating A site
+
Please Refer to the Migrating a Contensive Site Document
+
Setup SMTP
+
Start IIS6 Manager
+
go to SMTP Virtual Server 1, properties
+
Leave IP set to all unassigned
+
go to Access Tab
+
Connect - grant only 127.0.0.1
+
Relay Restrictions - grant only 127.0.0.1
+
go to Delivery Tab, click advanced  
+
Set masquerade to server name i.e. s13.kma.net
+
set FQN to server name i.e. s13.kma.net
+
Domain node under Virtual Server, rename to this domain, s13.kma.met
+
Run windows Updates
+
auto install at 3am (while v42 does not start correctly, set to manual install)
+
Services  
+
 
+
 
+
administrative Tools → Services
+
 
+
 
+
SMTP - Start and set to automatic
+
Contensive Monitor - Start and set to automatic
+
Contensive Server - Start and set to automatic
+
IIS Admin Services - Start and set to automatic
+
SQL Server -  Start and set to automatic
+
  
 
===Upgrading Contensive Software ===
 
===Upgrading Contensive Software ===

Revision as of 21:36, 5 November 2016


Installation

Server Setup and Configuration

Amazon AWS

For Amazon AWS, create an instance from the AMI Contensive41. This AMI is built from the latest version of these instructions.

  1. Login with the new administrator account and update the account password (contensive) for
    • administrator - We recommend you not regularly use this account. If you leave Windows Remote Desktop open in your firewall, you should disable it. Otherwise you can leave it as an emergency login.
    • contensive - change the password, and update the new password in DcomCnfg for the ccKrnl.exe execution (see full installation for details)
    • kmaAdmin - This is the account used by administrators day-to-day and can be renamed or replaced. We recommend against using the administrator account.
  2. Configure an SMTP server for use by the server. We recommend using Amazon SES, but any SMTP server will work. If you use the IIS SMTP server on Windows 2008R2, Amazon does not provide a way to reverse the server's IP address and may be a deliverability issue. When you have it configured, log in to the admin site and enter it in the email tab of preferences.
  3. Add an elastic ip to ec2 instance

Non-Amazon Server

This instruction prepares a Windows Server 2008 R2 for Contensive 4.1.636.

  1. Establish a domain name for the server unrelated to the possible website.
  2. Windows Web Server 2008 R2-64
  3. Install the latest Windows Updates$
  4. Setup external firewall
    • 80
    • 21
    • 443
    • 3389 allow during setup, then disable after RDP 5901 setup in registry
    • 5900 for Contensive Monitor
    • 5901, for remote desktop, point-to-point if possible to
    • ICMP
  5. reverse map the server’s domain to the primary IP address
  6. Disable User Access Control
    • Control Panel > users > Left Pane
    • Set the warnings all the way off
  7. Create accounts
    • Administrative tools > Computer Management > Local User and Groups
      • If you have an external firewall, leave the administrator account and save it for emergencies, else disable it
      • Create a user admin account (not administrator), password never expires
      • Create a user for contensive, un:contensive, password never expires
  8. Windows Firewall. If you access the server remotely, we recommend you use an external firewall and disable the windows firewall to descrease the possibility of losing access to your machine.
    • Administrative Tools > Windows Firewall > Inbound Rules
    • World Wide Web Services, ports 80 + 443, allow
    • Remote Desktop + Remote DesktopFX, 3389. allow. If server access is limited to only a remote connection, leave this open. If you direct access to the machine, limit 3389 to your local IP(s)
    • add rule for Contensive Monitor, 5900, allow
    • add rule for Remote Desktop, 5901, allow
    • ICMPv4 (ping), allow
  9. Networking
    • Control Panel, set small icons, Network and Sharing Center
    • Local Area Connection > Properties > dbl click IP4
    • Verify all IP addresses are entered with mask, gateway and DNS. If no DNS available, use Google's 8.8.8.8, 8.8.4.4
  10. Local Security Policy
    • Administrative Tools > Local Security Policy > LocalPolicies
    • Local Policies > User Rights Assignment > Allow login through remote desktop
    • + Administrators
    • Security Options > “interactive Login: do not display last user name”=enable
    • Account policies > Account Lockout Policy
    • 3 invalid attempts
    • 3 minute lockout
  11. Remote Desktop Change Port (optional to increase security if you only have remote server access and no external firewall)
    • Regedit
    • HLM > System > Current Control Set > Control > Terminal Server > Winstations > RDP_TCP > PortNumber, set to 5901.
  12. Install IIS
    • Server manager → Roles → Install WebServer IIS
    • Administrative Tools > Server Manager > Root screen
    • Configure IE ESC > Turn off
    • Check “Do not show me this consol at login”
    • Add Roles and Features
    • Administrative Tools > Server Manager > Roles > Add Role Services
    • Check ASP.NET, agree to add required roles
    • Check ASP
    • Check CGI
    • Security, Basic Authentication
    • Management Tools, IIS 6 management compatibility
    • Administrative Tools > Server Manager > Features
    • Check SMTP Server, agree to add required roles
  13. Windows Settings
    • Set timezone (typically for your customer's timezone)
    • Turn on Automatic Windows Updates
  14. Create Working Folders and permission
    • set administrators full control for hosts files
    • D:\Archive
    • D:\InetPub
      • users: full control
    • D:\Db
      • users: full control
    • D:\DbBackup
    • users: full control
    • C:\windows\temp
      • users: list + read
      • IIS_User: List + read
  15. Create Folder on Desktop for frequent shortcuts
    • ODBC32 - Windows\sysWow64\odbcad32.exe
    • dcomcnfg shortcut
    • IIS shortcut
    • Services shortcut
  16. Software Installation
    • Microsoft Web platform Installer
      • PHP Manager
      • PHP 5.5.11 (previously 5.3.5)
    • Firefox or Chrome
    • Optional backup provider like Carbonite. Keep backup of folders
  17. Sql Server 2008 R2 SP2. If Db size anticipated under 20G use Express Edition. Over 20G requires Web Edition
      • Google search, “Microsoft® SQL Server® 2008 R2 SP2 - Express Edition”
      • for 32-bit machines - use x86
      • for 64-bit machines - use x64
      • Install instance features, but check Default Instance during install
      • Account provisioning: mixed mode authentication
      • Set sa password
    • 7Zip, 64 bit windows version
    • Contensive, get latest version at http://clib.io
  1. Set Dcom permissions for Contensive
    • run "DComCnfg/32 - MMC comexp.msc /32" then add
    • Then open fdcomcnfg and locate cckrnl.exe
    • Right click, click permissions, set everyone/all for all three sections
    • identity, contensive/-pw-
    • if ccKrnl does not show in dcomcnfg (make sure you are in the 32-bit view MMC comexp.msc /32), run 2 registry files found in the folder for this document (ccKrnl.reg, ccKrnl2.reg)(Note: on 64bit machines this has to run: at the command Line run “MMC comexp.msc /32”)
  2. Folder Permissions
    • kma/contensive - user/all
  3. Run configWizard
  4. Server Service, verify it starts OK
  5. Run Application Manager
  6. Verify attach to local server
  7. Add Root Site, named for the server’s domain (s00.kma.net)
  8. Change Contensive config (MonitorConfig.txt) to use port 5900 for monitor, restart Contensive Monitor service
  9. Setup backup tools
    • If you need a Sql Server backup script, download kmaBackupTools.zip, unzip and create a scheduled task for backupSql.cmd. It backups all Sql Server catalogs to a file in d:\DbBackup
      • Verify the d:\DbBackup folder matches in the Sql file
      • Verify the source programs files are correct in the cmd file
      • Run a test of the cmd file
      • Setup a scheduled task to run it routinely (we typically run everyday at 8pm,)
  10. IIS PHP Manager
    • Open from root of IIS Manager
    • Enable php_com_dotnet extension
    • Add max_input_vars 2000
    • upload_max_filesize = 50M
    • post_max_size = 50M
  11. IIS Manager
    • Application Pools > set applicaiton pool default
    • Enable 32-bit = true
    • Recycling
      • Private Limit = 40,000
      • Virtual Limit = 200,000
      • Requests = 100
    • Click on top node, set default in right-hand pane
      • ASP
      • Max Requesting Entity Body Limit = 10M
      • Session Properties, Enable Session State = false
      • Default Document list, only
        • Index.php
        • index.asp
      • Error Pages
        • Edit feature settings - custom error pages
        • 404 set to /index.php (for each site)
  12. Setup SMTP
    • Start IIS6 Manager
    • go to SMTP Virtual Server 1, properties
    • Leave IP set to all unassigned
    • go to Access Tab
    • Connect - grant only 127.0.0.1
    • Relay Restrictions - grant only 127.0.0.1
    • go to Delivery Tab, click advanced
    • Set masquerade to server name i.e. s13.kma.net
    • set FQN to server name i.e. s13.kma.net
    • Domain node under Virtual Server, rename to this server's domain
  13. Run windows Updates
    • auto install at 3am (while v42 does not start correctly, set to manual install)
  14. Services
    • administrative Tools → Services
    • SMTP - Start and set to automatic
    • Contensive Monitor - Start and set to automatic
    • Contensive Server - Start and set to automatic
    • IIS Admin Services - Start and set to automatic
    • SQL Server - Start and set to automatic

Upgrading Contensive Software

Upgrading Contensive requires you first uninstall the current version, then install the new version. When the software upgrade is complete, open the Contensive application manager, right click on your server node and click the "Upgrade all running applications". This process upgrades your database schema and content to support the newer build It takes about five to ten minutes per site.

Uninstalling Contensive Software

1. Click ccStop.cmd in the Contensive Program Files Directory. This stops the Contensive and IIS Services.
2. Open Task Manager to verify the following services have been stopped. If they have not after a minute, manually kill them

  • cckrnl.exe
  • ccprocessemail.exe
  • ccservice.exe
  • ccmonitor
  • cchousekeep.exe

3. Use the Add/Remove Programs in Control Panel to remove Contensive.
4. After removal, restart necessary IIS services. Running the IISReset command from the command prompt (run as administrator) will do this.

Installing Contensive

1. You should have the following information available before beginning installation

a. Contensive Content Server Installation CD or download.
b. A Windows user login account for contensive with username and password. This account should have user privileges and read/write access to the wwwRoot and content files folders.

2. If a previous version of Contensive is installed backup all content, both database and content files.

3. Verify that the Service Control Manager (Services under Administrative tools) is closed. If left open, this may prevent windows from correctly installing the services.

4. Run the Contensive installation program.

5. When complete, the Configuration Wizard will start. It describes and tests your DCom settings that follow:

a. Open DComCnfg from the wizard, or at the run prompt, navigate to Component Services > Computers > My Computer > dcomcnfg.
b. Locate ccKrnl.KernelServices object.
c. Right click and go to Properties.
d. Under the General Tab, Use “Default” authentication type.
e. Under the Security, Select "Use Custom Access Permissions", and add Everyone allow access. Select Use Custom Launch Permissions, and add Everyone allow launch.
f. Under the Identity Tab, select “This User”, and enter the local Contensive user account.
g. When you continue, Contensive will start.

6. Go to the Program Files\kma\Contensive folder, and make sure:

a. Email Out folder has Read/Write permissions for Everyone.
b. Log folder has Read/Write permissions for Everyone

Installation Problem Isolation

1. Check Web server functionality

If the web site is returning an error and not a web page, check that the server is running correctly. A simple HelloWorld.htm page is provided in the Admin site at the following address. (http://YourDomain.com/admin/HellowWorld.htm). You should expect a page with “Hello World”. If this returns an error, verify the IIS configuration. This is not a Contensive error, but a server configuration problem.

2. Check ASP functionality

A simple HelloWorld.asp page is provided in the Admin site at the following address. You should expect a page with “ASP Hello World”. (http://YourDomain.com/admin/HellowWorld.asp) If this returns an error, verify the IIS configuration. This is not a Contensive error, but a server configuration problem.

3. Check Contensive functionality

If the previous tests passed, test the Contensive status method (http://YourDomain.com/admin/Index.asp?method=status). This should return “Contensive OK”. If it returns any other response, check the page source for an error comment. The most common issues are:
a. Contensive Application Not Found - Open the Contensive Application Manager and verify your application is running. If it is, the problem may be DCom permissions.
b. Connection Error opening Datasource Default or Audit - There is a problem with the database, the connection string, or the connection to the machine holding the database.

4. Check the Contensive Trace Log.

A trace log is created for all internal Contensive errors. The log is located at [Program Files]\kma\contensive\logs\Tracexxxxx.log. There may be several lines for each error, grouped together by the time of the error. Check the first line of each error group. Generally, the information most likely to assist you will be at the end of the line.

5. Windows 2003 - If you can not upload, IIS may be limiting the upload size. Use the IIS Metabase editor to set the upload size limit.

6. Windows 2003 - If ASP/ASPX pages will not run, IIS may be blocking them.

Site Lifecycle Considerations

When Contensive has been installed and the website integration is complete, you need to consider site lifecycle issues. These include site monitoring, database management, file system management, and log monitoring.

Site Monitoring

These are several ways to monitor your site. Contensive includes a status method, and a monitoring service. You can also setup a third-party monitor to hit any dynamic page.

1. Contensive status method with a third party monitor

Contensive includes several special 'methods' from the website URL. One is the status method. To call the status method, use the URL:
http://yourdomain/pagename?method=status
The expected response from the site is an HTTP response "Errors 0". Any other response indicates a problem with the site.

2. Contensive Monitor service

One of the services installed with Contensive is the Monitor Service. The monitor periodically checks the status method of each Contensive site on the server, as well a few other important checks like Contensive log size (an indicator of other site or Database problems) and current drive space availability.
The monitor is controlled by the monitor.txt file in the Contensive program files directory. After changes, the monitor service must be stopped and restarted.
The Monitor can be configured to automatically IISReset the system on error conditions. It also has an HTTP port 80 status screen at port 4532. When the monitor service is running, a hit to this page returns an HTML page with the results of the last checks the monitor ran.
If you have several sites on a server, you can setup a third party monitor or monitoring service to check the Contensive Monitor periodically (every 5 minutes). An error condition two cycles in a row may indicate a problem that IISReset could not recover.

3. Hit any dynamic page with a monitor

Another simple monitor is to setup a website monitor or monitoring service to hit any page on your site. We recommend hitting the status method, as it will report database and other process errors that may occur even when a physical page returns.

Creating a Web Site

Contensive is a content server the runs on Windows Server. Any website hosted on Windows Server can access Contensive.

Creating a new site using ASP scripting

To create a new site that uses ASP scripting as it's hosting page, you can either use the 'new site' wizard in the Application Manager, or create it manually.

Using the New Site Wizard

The Site Wizard creates a simple site, using MS Access as it's database. If you wish to use another database, you can easily switch after the site is created.

  1. Open the Contensive Application Manager, by clicking Start > Programs > Contensive > Application Manager
  2. Click on the server where you want to add your site. When the Application Manager connects to the server, the server's icon will turn green.
  3. Right click on the server, and click Add Site. You will be prompted for the following:
a. Site Name
b. IP Address
c. Domain Name
d. HTML Documents Folder
e. Content Files Folder
f. ODBC DSN File Folder
g. Database File Folder
h. SMTP Email Server
i. Admin Email Address

Creating a new site using other programming environments

Contensive is a server that can deliver the entire site from a single API call. It uses an activex object to interface with the webserver's scripting environment.

You can use Contensive to manage content delivery form any programming language that can work with an instance of an activex object. The process is as follows:

  1. Create the object from the program id ccweb3.mainclass
  2. Initialize several contensive properties from the server context (an asp vb example is included here)
  3. Call any Contensive method to deliver the site content. The simplest is "GetHTML()"

Contensive Installation and Setup

1. Installing Contensive on the Server

To configure Contensive, first run the installation program. This installs the softare, configures the Windows Services to start Contensive on reboot, and optionally installs a Sample website.

2. Creating a site

To create a website that uses Contensive, Open the Contensive Application Manager, right click on the server node where you want to create the site and click the Create Site link. Follow the wizard instructions.
This process creates a default MS Access database. To switch to another ODBC supported Db, create an empty Database and an ODBC data source to it. Open the Contensive Application Manager and right click on the site you wish to setup for your database. Stop the Contensive application, switch the Database Connection String, and Start with Upgrade. This will create the necessary tables to run your site.