EQuIS Database or Enterprise Server Migration

<< Click to Display Table of Contents >>

Navigation:  Administration and Configuration >

EQuIS Database or Enterprise Server Migration

The steps below outline the process for migrating an EQuIS Database and Enterprise installation from one server to another.

Step 1: Back up Database

Step 2: Back up Installation

Step 3: Validate Server

Step 4: Install Software

Step 5: Create User

Step 6: Configure Database Connection

Step 7: Update Application-Level Security Roles

Step 8: Configure Web.config

Step 9: Start Application Pool

Step 10: Apply Licenses

Step 11: Start Workflow

Step 12: Deploy Site

 

Step 1: Back up Database

 

Make a full database backup of the EQuIS Database.

Restore the EQuIS Database to the new server machine.

Clear out the ST_LICENSE table using “delete from ST_LICENSE”, or similar, via SQL Server Management Studio (SSMS).

Set up a backup schedule for the EQuIS Database on the new server.

 

Step 2: Back up Installation

 

Make a backup copy of the Enterprise Installation Directory from the old server (.\Program Files\EarthSoft\Enterprise7).

 

Step 3: Validate Server

 

On the new server:

Ensure that Microsoft .NET Framework Version 4.7 with ASP.NET and IIS is installed first, and that ASP.NET is turned on in IIS. When installed on a server, that is done on the Roles page of the Server Manager.

After installation, verify the IIS application pool and web application settings (e.g., adjust host header and virtual directory name as appropriate for your environment). We recommend that each web application run within its own unique application pool. Ensure that your web application is using an application pool with the following settings:

o.NET CLR Version: Version 4.0

oManaged Pipeline Mode: Integrated

oThe ApplicationPoolIdentity is recommended for the IIS application pool process model identity (Advanced Settings), if possible. If this is not feasible, NetworkService is recommended. The LocalSystem identity is the least secure configuration but is an acceptable option in controlled environments or on development systems, provided the implications are understood.

 

Step 4: Install Software

 

Download and install the software on the new server.

1.Download the EQuIS Enterprise software from the EarthSoft Community Center; verify this is the same build as the EQuIS Database.

2.Before unzipping the file, first check to make sure it has been unblocked. If it has not been unblocked, right-click on the file, select Properties and click Unblock in the bottom-right of the screen.

3.Unzip the file.

4.Install EQuIS Enterprise using the .EXE installer. Run the .exe installer as administrator and step through the Setup Wizard. Make sure to run the .EXE for the install. This ensures that the necessary components will be installed correctly.

 

If you receive IIS "Internal Server Errors" after installation, you may want to run the following command to make sure that ASP.NET is correctly registered with IIS:

 
%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i

 

Step 5: Create User

 

Create the SQL user for the Enterprise service account in SSMS.

 

Note: The EQuIS Enterprise 7 Database Schema includes new tables that support the permissions infrastructure within the EQuIS Enterprise application. These tables begin with the XT_ prefix. The SQL login (the service account login) created for and used by the EQuIS Enterprise application is the only login that should (and must) have full permissions to the XT_ tables.

 

All other SQL logins – especially the SQL logins used for ALS roles (e.g. ST_ROLE.CONNECTION_STRING) – must be denied INSERT, UPDATE, and DELETE permissions to all tables that start with the XT_AUTH prefix. If you do not deny INSERT, UPDATE, and DELETE permissions to these tables, you create a security vulnerability. Additionally, these logins should be denied UPDATE and DELETE permissions to the XT_AUDIT table (user logins should be granted INSERT permission to this table).

 

Step 6: Configure Database Connection

 

After the database has been successfully converted and updated, configure the database connection within the software as follows:

1.Browse to the connectionStrings.config file found in the installation folder (e.g. \Program Files\EarthSoft\Enterprise7).

2.Copy the connectionStrings.config file from the backup copy of the Enterprise Installation Directory (.\Program Files\EarthSoft\Enterprise7\bin) from Step 2 and paste it into the new installation /bin folder. Alternatively, recreate the connectionStrings.config file with a text editor (e.g. Notepad).

3.Modify the connectionString attribute with a proper connection string as appropriate for your database connection.

a.Example connection string for SQL Server with Windows Authentication
Data Source=dbserver;Integrated Security=SSPI;Database=licensedb;

b.Example connection string for SQL Server with SQL Authentication:
Data Source=dbserver;User ID=someusername;Password=somepassword;

c.Replace the dbserver, someusername, somepassword, and licensedb entries with the appropriate information. Make sure the semicolon at the end is maintained.

4.Save and close the file.

 

All other configuration information is stored in the ST_CONFIG tables. If desired, you may want to limit access to ST_CONFIG for Application-Level Security (ALS) logins.

 

Step 7: Update Application-Level Security Roles

 

Update the ST_ROLE table with updated connection strings for all ALS roles. This is important for users to connect to EQuIS Professional successfully with the Enterprise login.

 

/****** Script for SelectTopNRows command from SSMS  ******/
SELECT TOP (1000) [role_id]
,[role_name]
,[connection_string]
,[remark]
,[euid]
FROM [Equis7].[dbo].[st_role]
  ************* connection_string should match what’ is on the server or be null

 

Step 8: Configure Web.config

 

Copy the web.config file from the backup copy of the Enterprise Installation Directory (e.g. C:\Program Files\EarthSoft\Enterprise7\web.config) from Step 2 and paste it into the new installation folder.

 

If not using SSL (aka HTTPS), do the following:

1.Browse to your installation folder (e.g. C:\Program Files\EarthSoft\Enterprise7).

2.Open the web.config file with a text editor (e.g. Notepad).

3.Find this line:
<httpCookies requireSSL="true" lockItem="true"/>

4.Change requireSSL to be false, e.g.:
<httpCookies requireSSL="false" lockItem="true"/>

5.Save and close the file.

 

If running in a local IIS Server environment with Static Content is enabled in Windows Features, it may be necessary to comment out the staticContent block around lines 51-54 in the web.config file.

1.Browse to the installation folder (e.g. C:\Program Files\EarthSoft\Enterprise7).

2.Open the web.config file with a text editor (e.g. Notepad).

3.Find <staticContent> at approximately line 51.

4.Comment out the staticContent, as shown below:
    <!--<staticContent>
        <mimeMap fileExtension=".json" mimeType="application/json"/>
        <mimeMap fileExtension=".woff" mimeType="font/woff"/>
        <mimeMap fileExtension=".woff2" mimeType="font/woff2"/>
      </staticContent>-->

5.Save and close the file.

 

To use Windows Authentication, modify your .\Enterprise7\web.config file:

1.Open web.config in an XML or text editor.

2.Look for authentication mode (approximately line 19).

3.Change "none" to "Windows", as seen below:
<authentication mode="None" />
to
<authentication mode="Windows" />

 

Step 9: Start Application Pool

 

Start the EnterpriseAppPool application pool in IIS.

 

Step 10: Apply Licenses

 

Apply licenses for the software:

Obtain the new Server ID by running .\Enterprise7\bin\register.exe. The Server ID is on the Network Licenses tab of the Software Registration screen.

Copy and paste the new Server ID and contact EarthSoft Support. Wait for EarthSoft Support to send registration keys before moving forward.

Paste the new keys into the New Key Codes box of the same Network Licenses tab of the Software Registration screen.

 

Step 11: Start Workflow

 

Start the EQuIS Enterprise 7 Workflow service under Windows Services.

 

Step 12: Deploy Site

 

Open your web browser to your installed web application URL (e.g. https://localhost/equis7/default.aspx).

 

Log in using an Enterprise administrator account (default account credentials are administrator/admin).

 

Warning: For security reasons, change the default administrator password of "admin" immediately after initial login is successful.

 

Append "?action=deploy" to the URL after "default.aspx" to complete the deployment step, e.g.:
https://localhost/equis7/default.aspx?action=deploy

 

You should see an XML-format list of files that were successfully processed.