Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Table

...

of

...

Contents

...

Table of Contents

Log In To StudyTRAX

To get started, open the URL to the installation of StudyTRAX from a browser. It is usually easier to perform this from a client with an updated browser rather than through the browser on the server. StudyTRAX will redirect the browser to a special login page if there are any problems with the system configuration.

Center
Image Added

Configuring the Database

Setup Connection String

Whether performing a new installation or upgrading a prior installation, you will need to make sure that the connection string is pointing to the correct database. If you are doing an upgrade, you can copy the OldInstallDir\App_Data\studytrax.config

...

to

...

NewInstallDir\App_Data

...

and

...

that

...

will

...

copy

...

over

...

the

...

connection

...

string.

...

After

...

you

...

copy

...

the

...

file,

...

you

...

will

...

need

...

to

...

restart

...

the

...

application.

...

Alternatively,

...

you

...

can

...

click

...

on

...

the

...

"Update

...

DB

...

Connection"

...

button

...

to

...

type

...

in

...

the

...

correct

...

connection

...

string.

...

If

...

you

...

are

...

doing

...

a

...

new

...

install,

...

you

...

will

...

need

...

to

...

update

...

the

...

connection

...

string

...

via

...

the

...

"Update

...

DB

...

Connection"

...

button.

...

Info

Default Connection String
data source=(local);integrated

security=sspi;persist

security

info=True;packet

size=4096;initial

catalog=StudyTrax

{info} Here are some helpful links for determining how to construct a connection string: * [SQL Server 2005 Connection Strings|http://www.connectionstrings.com/sql-server-2005] * [SQL Server 2008 Connection Strings|http://www.connectionstrings.com/sql-server-2008] * [SQL Server Connection String Properties|http://www.connectionstrings.com/Articles/Show/all-sql-server-connection-string-keywords] h4. New Install {center} !StudyTrax-0003.png|width=500! {center} The server box will be green if the database server in the "Connection String" is accessible and all the permissions are correct. If not, you should be presented with options to perform the necessary actions to correct the problems. Assuming that the "Server" box is green, there should be a "create" link in the red "Exist" box. Clicking this box will create the StudyTRAX database pointed to by the connection string. After clicking the link, a dialog will be presented to obtain the credentials of an account that has "DBO" permission to the master database. {note} Using the StudyTRAX application to create the database will use all the standard defaults in SQL server. If you need to control where the database file (mdf) and log file (ldf) are located, the initial size, or any other attributes about the database, you will need to follow the manual process for creating the database. Also, if "DBO" credentials are not available, the manual database creation process must be used{note} {center} !StudyTrax-0005.png|width=500! {center} After clicking the "OK" button, a dialog will appear showing the progress of the database creation. When the word "Finished" appears in the dialog, an "X" will appear in the top right of the dialog that can be used to close it. {center} !StudyTrax-0008.png|width=500! {center} After closing the dialog, a status page will be presented explaining the state of the configuration. h4. Upgrading An Existing Version {note}StudyTrax requires SQL Server 2005 or later. If you backup a database and then restore it on a newer version of SQL Server, the compatability level of the earlier version is retained. Thus, the compatability level needs to be updated. * Check the compatability level by executing the following in SQL Server Managment Studio: sp_dbcmptlevel 'StudyTrax' * A return value of 90 means SQL Server 2005 and 100 means SQL Server 2008. * To set the compatability to SQL Server 2008: alter database StudyTrax set compatibility_level = 100 * To set the compatability to SQL Server 2005: EXEC sp_dbcmptlevel StudyTrax, 90; {note} {center} !StudyTrax-0001.png|width=500! {center} If the connection string points to an existing installation of StudyTRAX, an option to patch the database will be shown. It should display the "DB Version" and the "Current" version that the application expects. To upgrade the database to the latest version, click the "patch" link. After clicking the link, a dialog will be presented to obtain the credentials of an account that has "DBO" permission to the master database. {note}If these credentials are not available, the manual database patch process must be used{note} {center} !StudyTrax-0005.png|width=500! {center} After clicking the "OK" button, a dialog will appear showing the progress of the database patch. When the word "Finished" appears in the dialog, an "X" will appear in the top right of the dialog that can be used to close it. {center} !StudyTrax-0008.png|width=500! {center} h3. Configuring the Application To update the System Configuration, click on the "System Configuration" tab and click the "System Configuration" button (the gear to the right of the screen) and configure the application before granting permissions to the folders and files. {center} !StudyTrax-0009.png|width=500! {center} On the "Configuration Settings" page, you will need to configure several settings. While there are many settings that can be configured here, only some of them are required: h4. Application Settings || Log Directory | This is the directory where the StudyTRAX log files will be stored. This directory should not grow very large as most logs are only generated when the application starts/stops or errors are generated. || || External Server Address | This is the address that should be used to access the server by all end users. If this is just being deployed internally, then a public DNS name is not necessary, but if it will be accessed via the Internet, you must provide a valid DNS name. \\ ex: [https://studytrax.organization.com] {note}Note that HTTPS is used here. Since this URL will be used for resetting passwords and alerting subjects that they need to fill out forms, the HTTPS should be included.{note} || || Password Sender Address | This is the email address that will be used to send out emails when users request that their password be reset because they forgot it || h4. SMTP Settings || Server | This is the DNS name or IP address of the SMTP server || || Domain | This is the domain of the user to use for authenticating to the SMTP server. (optional) || || Username | This is the username to use for authenticating to the SMTP server. (optional) || || Password | This is the password to use for authenticating to the SMTP server. (optional) || || Port | This is the port number that the SMTP server is running on || {center} !StudyTrax-0012.png|width=500! {center} Once you have configured the application, click the "Save And Return" button in the toolbar. {center} !StudyTrax-0013.png|width=500! {center} h3. Directories {center} !Directories.JPG|width=500! {center} There are various files and directories that StudyTRAX needs to write to. These directories and files need to have write permission granted to the StudyTRAX Service Account that the application runs as. {note} If the log directory does not exist, you will be given a "create" link that you can click to create the directory. You should click this prior to clicking the grant button or an error will be generated. {note} If there are any red boxes, a "grant" link will be visible. You can click this to have the application grant the appropriate permissions to the folders and files. Once this is done, all the boxes should be green. {center} !DirectoriesGreen.JPG!{center} h3. SMTP {center} !SMTP.JPG! {center} Initially, the SMTP settings will show up in red. If the SMTP settings were configured correctly in the "Configure the System" above, the "Configured" box should be green. {center} !SMTPConfigured.JPG!{center} After the SMTP server has been setup correctly, you will need to click the "test" link that appears to the right in order to tell the application that the SMTP server settings are good. This will cause the "Tested" box to appear green if the application is able to successfully connect to the SMTP server and send email. {center} !SMTPTested.JPG!{center} {note}It is required that the "Tested" box go green. If for some reason you cannot configure an SMTP server or it will not register as green, you can edit the "studytrax.config" file and add a node (or edit it if it already exists) with a key of "Mail.Settings.Valid" and a value of "True". Once you have done this, click the "Refresh" button in the toolbar. {note} h3. External Address {center} !ExternalAddress.JPG! {center} The External Address tells StudyTRAX how it is accessed from the public internet. This address is used to generate URL's for resetting passwords as well as sending out notification emails (a URL may be provided to allow the notified user/subject to click and login to StudyTRAX). The full URL that StudyTRAX is attempting to download will be displayed if it is not accessible. h3. Configuration Complete If all steps were followed and completed successfully, StudyTRAX should be setup correctly and all boxes should be green. Click "Restart Application" to restart the application and return to the login page. {note}If you are doing a new installation, or upgrading from StudyTRAX 2.40, a new account will be created called "admin" with a password of "admin". This account will immediately require a password change. Also, this account is used to create user accounts.{note} {center} !StudyTrax-0015.png|width=500! {center} h3. Resolutions to potential problems # If it is not possible to either create the database or patch (when the version is not current) using the Summary tab, the "Database Tools" tab has instructions on how to manually perform these steps. # When patching a database that was restored from SQL Server 2000, if you get the following error: "Incorrect syntax near 'ps'", it means your database is running in SQL Server 2000 compatability mode. StudyTrax requires SQL Server 2005 or later. If you backup a database and then restore it on a newer version of SQL Server, the compatability level of the earlier version is retained. Thus, the compatability level needs to be updated. ## Check the compatability level by executing the following in SQL Server Managment Studio: sp_dbcmptlevel 'StudyTrax' ## A return value of 90 means SQL Server 2005 and 100 means SQL Server 2008. ## To set the compatability to SQL Server 2008: alter database StudyTrax set compatibility_level = 100 ## To set the compatability to SQL Server 2005: EXEC sp_dbcmptlevel StudyTrax,

Here are some helpful links for determining how to construct a connection string:

New Install

Center
Image Added

The server box will be green if the database server in the "Connection String" is accessible and all the permissions are correct. If not, you should be presented with options to perform the necessary actions to correct the problems.

Assuming that the "Server" box is green, there should be a "create" link in the red "Exist" box. Clicking this box will create the StudyTRAX database pointed to by the connection string. After clicking the link, a dialog will be presented to obtain the credentials of an account that has "DBO" permission to the master database.

Note

Using the StudyTRAX application to create the database will use all the standard defaults in SQL server. If you need to control where the database file (mdf) and log file (ldf) are located, the initial size, or any other attributes about the database, you will need to follow the manual process for creating the database.

Also, if "DBO" credentials are not available, the manual database creation process must be used

Center
Image Added

After clicking the "OK" button, a dialog will appear showing the progress of the database creation. When the word "Finished" appears in the dialog, an "X" will appear in the top right of the dialog that can be used to close it.

Center
Image Added

After closing the dialog, a status page will be presented explaining the state of the configuration.

Upgrading An Existing Version

Note

StudyTrax requires SQL Server 2005 or later. If you backup a database and then restore it on a newer version of SQL Server, the compatability level of the earlier version is retained. Thus, the compatability level needs to be updated.

  • Check the compatability level by executing the following in SQL Server Managment Studio: sp_dbcmptlevel 'StudyTrax'
  • A return value of 90 means SQL Server 2005 and 100 means SQL Server 2008.
  • To set the compatability to SQL Server 2008: alter database StudyTrax set compatibility_level = 100
  • To set the compatability to SQL Server 2005: EXEC sp_dbcmptlevel StudyTrax, 90;
Center
Image Added

If the connection string points to an existing installation of StudyTRAX, an option to patch the database will be shown. It should display the "DB Version" and the "Current" version that the application expects.

To upgrade the database to the latest version, click the "patch" link. After clicking the link, a dialog will be presented to obtain the credentials of an account that has "DBO" permission to the master database.

Note

If these credentials are not available, the manual database patch process must be used

Center
Image Added

After clicking the "OK" button, a dialog will appear showing the progress of the database patch. When the word "Finished" appears in the dialog, an "X" will appear in the top right of the dialog that can be used to close it.

Center
Image Added

Configuring the Application

To update the System Configuration, click on the "System Configuration" tab and click the "System Configuration" button (the gear to the right of the screen) and configure the application before granting permissions to the folders and files.

Center
Image Added

On the "Configuration Settings" page, you will need to configure several settings. While there are many settings that can be configured here, only some of them are required:

Application Settings

Log Directory

This is the directory where the StudyTRAX log files will be stored. This directory should not grow very large as most logs are only generated when the application starts/stops or errors are generated.

External Server Address

This is the address that should be used to access the server by all end users. If this is just being deployed internally, then a public DNS name is not necessary, but if it will be accessed via the Internet, you must provide a valid DNS name.
ex: https://studytrax.organization.com

Note

Note that HTTPS is used here. Since this URL will be used for resetting passwords and alerting subjects that they need to fill out forms, the HTTPS should be included.

Password Sender Address

This is the email address that will be used to send out emails when users request that their password be reset because they forgot it

SMTP Settings

Server

This is the DNS name or IP address of the SMTP server

Domain

This is the domain of the user to use for authenticating to the SMTP server. (optional)

Username

This is the username to use for authenticating to the SMTP server. (optional)

Password

This is the password to use for authenticating to the SMTP server. (optional)

Port

This is the port number that the SMTP server is running on

Center
Image Added

Once you have configured the application, click the "Save And Return" button in the toolbar.

Center
Image Added

Directories

Center
Image Added

There are various files and directories that StudyTRAX needs to write to. These directories and files need to have write permission granted to the StudyTRAX Service Account that the application runs as.

Note

If the log directory does not exist, you will be given a "create" link that you can click to create the directory. You should click this prior to clicking the grant button or an error will be generated.

If there are any red boxes, a "grant" link will be visible. You can click this to have the application grant the appropriate permissions to the folders and files. Once this is done, all the boxes should be green.

Center
Image Added

SMTP

Center
Image Added

Initially, the SMTP settings will show up in red. If the SMTP settings were configured correctly in the "Configure the System" above, the "Configured" box should be green.

Center
Image Added

After the SMTP server has been setup correctly, you will need to click the "test" link that appears to the right in order to tell the application that the SMTP server settings are good. This will cause the "Tested" box to appear green if the application is able to successfully connect to the SMTP server and send email.

Center
Image Added
Note

It is required that the "Tested" box go green. If for some reason you cannot configure an SMTP server or it will not register as green, you can edit the "studytrax.config" file and add a node (or edit it if it already exists) with a key of "Mail.Settings.Valid" and a value of "True".

Once you have done this, click the "Refresh" button in the toolbar.

External Address

Center
Image Added

The External Address tells StudyTRAX how it is accessed from the public internet. This address is used to generate URL's for resetting passwords as well as sending out notification emails (a URL may be provided to allow the notified user/subject to click and login to StudyTRAX).

The full URL that StudyTRAX is attempting to download will be displayed if it is not accessible.

Configuration Complete

If all steps were followed and completed successfully, StudyTRAX should be setup correctly and all boxes should be green. Click "Restart Application" to restart the application and return to the login page.

Note

If you are doing a new installation, or upgrading from StudyTRAX 2.40, a new account will be created called "admin" with a password of "admin". This account will immediately require a password change. Also, this account is used to create user accounts.

Center
Image Added

Resolutions to potential problems

  1. If it is not possible to either create the database or patch (when the version is not current) using the Summary tab, the "Database Tools" tab has instructions on how to manually perform these steps.
  2. When patching a database that was restored from SQL Server 2000, if you get the following error: "Incorrect syntax near 'ps'", it means your database is running in SQL Server 2000 compatability mode. StudyTrax requires SQL Server 2005 or later. If you backup a database and then restore it on a newer version of SQL Server, the compatability level of the earlier version is retained. Thus, the compatability level needs to be updated.
    1. Check the compatability level by executing the following in SQL Server Managment Studio: sp_dbcmptlevel 'StudyTrax'
    2. A return value of 90 means SQL Server 2005 and 100 means SQL Server 2008.
    3. To set the compatability to SQL Server 2008: alter database StudyTrax set compatibility_level = 100
    4. To set the compatability to SQL Server 2005: EXEC sp_dbcmptlevel StudyTrax, 90;