How do I migrate Intranet Connections to a new server? (Railo)

Moving SQL and Intranet Connections to a new Server

Your first step is to move your SQL database from the old server to the new server. The following steps will walk you through how to accomplish this. Following the move of SQL, you will then need to bring over the Intranet directory and all of its subfolders and contents to the new server, which is outlined at the end of this document. 

SQL Server Migration (from one SQL server to another)

Overview

  1. Install and Configure new SQL Server
  2. Create IntranetConnections database and login on New Server
  3. Backup existing production database and restore it to the new SQL database
  4. Create the SQL data source

Steps

  1. Install and Configure new SQL Server
  2. Install SQL Server as per the Microsoft installation instructions.
  3. Only note is to ensure that you have enabled Mixed Authentication (i.e. both SQL and Windows Authentication on the SQL server are enabled).

Creating the IntranetConnections SQL Database

  1. Open SQL Management Studio
  2. Right click Databases and select New Database…
  3. In the Database Name field type in IntranetConnections
  4. You can keep the rest of the default settings as per the screen below
  5. You should now have a database called IntranetConnections under the Databases heading in the left hand pane
  6. Create the IntranetConnections Login
  7. Right Click Logins (under Security) and select New Login…
  8. In the Name field type in IntranetConnections
  9. Change the default of Windows NT Authentication to SQL Server Authentication
  10. Enter a password or leave it blank. If entering a password, please note it down for later use when creating the datasource. If entering a password ensure that you uncheck the ‘Enforce Password Policy’, ‘Enforce Password Expiration’ and ‘User must change password at next login’ options. In the Database Field from the drop down box choose the database IntranetConnections (see image on next page)
  11. Now click on the User Mapping page
  12. Select the Database IntranetConnections by clicking in the checkbox
  13. Under Database Roles make sure public is checked and db_owner is checked
  14. Click on OK to finish creating the login

Moving your old SQL content to the new SQL IntranetConnections database

  1. First create a backup of your old production IntranetConnections database. You can do this via the SQL Management Studio.
  2. Right click the database name > Tasks (or All tasks) > Backup
  3. Backup the database to a location on Disk
  4. Copy the backup file (filename.bak) from the old server to the new server
  5. Open SQL Management Studio on the new server. Right click on the IntranetConnections database and choose Tasks  Restore  Database.
  6. Go to Options in the top left hand corner and choose ‘Overwrite the existing database’ from the Restore options menu. Click OK. Click OK again on the main backup screen to run the backup.
  7. Once the backup has completed, open a new query window pointing to the IntranetConnections database (you can select the database from the drop down). Enter the following into the query and execute it. If your SQL user created in the previous section is not called intranetconnections then replace the occurrence of that name in the query below with the appropriate name. This query repairs any orphaned user issues associated with the database transfer. 

    EXEC sp_change_users_login 'auto_fix', 'intranetconnections'

Create data source

Creating your IntranetConnections SQL Data source in the Railo Admin. 

Now that you have created your IntranetConnections SQL database and the IntranetConnections Login, you need to set up the SQLFunctions data source in the Railo Administrator for your new SQL database.

The following steps will walk you through creating additional data source for SQL.

  1. Go to the Railo Administrator through the browser: 
    http://ipaddress/railo-context/admin.cfm
  2. Click on Data Sources
  3. Create a new Data source called: SQLFunctions
  4. Select MSSQL - Microsoft SQL Server (Vendor jTDS) from the drop down list
  5. Enter in the name of your server
  6. For Database, type in: IntranetConnections
  7. For Username, type in: IntranetConnections
  8. For password, enter the password defined in Step 10 of 'Creating the IntranetConnections SQL Database'

Create the Mapping

Copy the settings from Step Six on the following KB article -- https://support.intranetconnections.com/hc/en-us/articles/214747538-How-to-I-create-a-test-site-on-my-production-server-Railo-

Replace all instances of 'TestIntranet' with 'Intranet' while following the above steps.

Final Steps

  1. Bring over the Intranet directory and all of its subfolders and files to the inetpub/wwwroot of the new server.
  2. Bring up the intranet site through your browser
  3. Click on Site Settings / Administrator Info
  4. Change the drive and path field to point to where you placed the Intranet directory on the new server (if applicable)
Have more questions? Submit a request

0 Comments

Article is closed for comments.