testr server installation guide
DESCRIPTION
The TestR Server Installation Manual will guide you through the server installation process.TRANSCRIPT
TestR User GuideServer Installation
Save time. Save the environment.TestR - It’s testing, reinvented.
www.mytestr.com
Platform RequirementsApplication Components Installation Steps Tomcat Server Database Ssh and scp SyntaxDefault Paths
1 1 2 2 2 3 3
Table of Contents
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
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
.
.
.
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
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