testr server installation guide

5
TestR User Guide Server Installation Save time. Save the environment. TestR - It’s testing, reinvented. www.mytestr.com

Upload: testr

Post on 06-Mar-2016

234 views

Category:

Documents


3 download

DESCRIPTION

The TestR Server Installation Manual will guide you through the server installation process.

TRANSCRIPT

Page 1: TestR Server Installation Guide

TestR User GuideServer Installation

Save time. Save the environment.TestR - It’s testing, reinvented.

www.mytestr.com

Page 2: TestR Server Installation Guide

Platform RequirementsApplication Components Installation Steps Tomcat Server Database Ssh and scp SyntaxDefault Paths

1 1 2 2 2 3 3

Table of Contents

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 3: TestR Server Installation Guide

Platform Requirements

java version "1.6.0_24" or greater

Tested on:

OpenJDK Runtime Environment (IcedTea6 1.11.9) (rhel-1.57.1.11.9.el6_4-x86_64) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

Web server/Application Server: Tomcat 7+ or greater

Database Server: MySQL : 5.1.67 + or greater

Operating Systems:

Tested on CentOS release 6.4 (Final)

TestR will also work on other versions of linux as long as there is Tomcat 7+, MySQL 5.1.67 and java 1.6+ support.

Windows server

TestR ServerInstallation

Application Components

a. TestRServer.war [Web Services Module]

b. TestRWeb.war [Admin Web Module]

c. TestR.sql [Database Script to create empty database structure]

d. TestR_Initialization.sql [Database script for initializing empty database]

Page 1

.

.

.

Page 4: TestR Server Installation Guide

Installation Steps

A. Tomcat Server

1. Copy TestRServer.war and TestRWeb.war to server using ‘scp’ command

2. Open terminal on server using ssh

3. cd /usr/share/tomcat7/webapps

4. Move the war files to webapps folder using ‘mv’

5. Go to bin folder of tomcat and startup tomcat server if not already started [cd /usr/share/tomcat7/bin/sh startup.sh]

B. Database

1. Copy TestR.sql and TestR_Initialization.sql to server

2. Log in to MySQL using credentials [mysql –u[username] –p[password]

3. After the MySQL command prompt appears, type the following command set global wait_timeout = 2147480;

4. Restart MySQL after this command using the following command /etc/init.d/mysqld restart

5. Type the following commands at the MySQL terminal a. ‘source TestR.sql’ –This will create the empty database structure

b. ‘source TestR_Initialization.sql’ - This will enter the minimum required data into the database

TestR ServerInstallation

Page 2

Page 5: TestR Server Installation Guide

Installation Steps (con’t)

C. Ssh and scp syntax

1. Sc: syntax

scp TestRServer.war [email protected]:~/ enter password when prompted scp [Full Path and File Name] [scp username]@[server ip]:~/

2. ssh: syntax

ssh [email protected] ssh [username]@[server ip]

enter password when prompted

TestR ServerInstallation

Default Paths

/var/www/vhosts/markr.ca

ssh will put the user who logged in at the above path

scp will put files copied to server in the above path

To see current folder/path type pwd

To list contents of a folder type ls

To change current folder type cd [new path]

To change current folder to root, use cd /

Page 3

To get version use:

OS: cat/etc/*-releasejava: java-version