ProcksiFramework » History » Version 6

Anonymous, 08/05/2008 12:17 PM
Improved Installation Guide

1 1 Anonymous
2 6 Anonymous
h1. [[ProCKSI]] Workbench
3 1 Anonymous
4 5 Anonymous
5 6 Anonymous
This section describes the installation and configuration of the server side of the [[ProCKSI]]-Workbench. This includes the configuration of the web server and the database.
6 1 Anonymous
7 6 Anonymous
The server component (incl. all user data and results) will be installed into the home directory of the user _procksi_. Therefore, make sure that it is on a separate partition / hard disk with much space. In the best case, this will be a RAID system.
8 1 Anonymous
9 6 Anonymous
*IMPORTANT*: Always test a new release before taking a new version online! 
10 6 Anonymous
11 6 Anonymous
12 6 Anonymous
h2. Preparations for *TEST* and *RELEASE*
13 6 Anonymous
14 6 Anonymous
15 6 Anonymous
Make sure that directories for log and lock files exist, which are shared by all *TEST* and *RELEASE* instances (see below for more information):
16 6 Anonymous
<pre>
17 1 Anonymous
  mkdir /home/procksi/logs
18 1 Anonymous
  mkdir /home/procksi/locks
19 6 Anonymous
</pre>
20 1 Anonymous
21 1 Anonymous
22 1 Anonymous
23 6 Anonymous
h2. Installation and Configuration of a _TEST_ version
24 1 Anonymous
25 6 Anonymous
26 6 Anonymous
In the following, any test version of the workbench is referred to as _TEST_, which could be either a tagged release or a snapshot of the current development version. _TEST_ should include the current date in order to distingish different snapshots from different days, e.g. _snapshot_2008-08-01_.
27 6 Anonymous
28 1 Anonymous
Check out the current snapshot of the development version from the SVN repository.
29 6 Anonymous
<pre>
30 1 Anonymous
  svn co https://psiren.cs.nott.ac.uk/repos/procksi/ProCKSI-Workbench/trunk /home/procksi/TEST
31 6 Anonymous
</pre>
32 5 Anonymous
33 6 Anonymous
Create a softlink from _TEST_ to a generic directory _/home/procksi/test_. The web server and the workbench itself assume that there is always such a generic directory:
34 6 Anonymous
<pre>
35 1 Anonymous
  ln -s /home/procksi/TEST /home/procksi/test
36 6 Anonymous
</pre>
37 1 Anonymous
38 6 Anonymous
Change into the installation directory, run the setup script once to see the default settings. Running the script _without_ the parameter _-x_ just displays the current configuration.
39 6 Anonymous
<pre>
40 1 Anonymous
cd /home/procksi/test/install
41 1 Anonymous
./setup.pl -i -env test
42 6 Anonymous
</pre>
43 1 Anonymous
44 5 Anonymous
Run the setup script again with adjusted parameters. Parameters that might need adjustment are:
45 6 Anonymous
  - _-server_base_: Should be _/home/procksi/test_
46 6 Anonymous
  - _-server_name_: URL and port number for this _TEST_ version as given in the _apache_ configuration file
47 6 Anonymous
  - _-server_admin_: Email address of the administrator or this _TEST_ version
48 6 Anonymous
  - _-database_name_: Database that should be used for this _TEST_ version
49 1 Anonymous
50 6 Anonymous
In order to execute the installation for the given configuration, you must run the script _with_ the parameter _-x_.
51 6 Anonymous
<pre>
52 1 Anonymous
cd /home/procksi/test/install
53 5 Anonymous
./setup.pl -i -env test -x
54 6 Anonymous
</pre>
55 5 Anonymous
56 6 Anonymous
Check that all links in _/home/procksi/test/bin_ point to the correct files of the operating system.
57 5 Anonymous
58 6 Anonymous
Having *root privileges*, make sure that all permissions are set to '770', the user is _procksi_ and the group is _procksi_dev_.
59 6 Anonymous
<pre>
60 5 Anonymous
  cd /home/procksi/test/admin
61 5 Anonymous
  ./chall.sh
62 6 Anonymous
</pre>
63 5 Anonymous
64 5 Anonymous
65 5 Anonymous
66 6 Anonymous
h2. Installation and Configuration of an official *RELEASE*
67 5 Anonymous
68 6 Anonymous
69 6 Anonymous
In the following, the latest official version of the workbench is referred to as _RELEASE_, which could be for instance _procksi_8-6-1_.
70 6 Anonymous
71 6 Anonymous
Check out the latest _RELEASE_ from the SVN repository:
72 6 Anonymous
<pre>
73 1 Anonymous
  svn co https://psiren.cs.nott.ac.uk/repos/procksi/ProCKSI-Workbench/tags/RELEASE /home/procksi/RELEASE
74 6 Anonymous
</pre>
75 1 Anonymous
76 6 Anonymous
Create a softlink from _RELEASE_ to a generic directory _/home/procksi/latest_. The web server and the workbench itself assume that there is always such a generic directory:
77 6 Anonymous
<pre>
78 5 Anonymous
  ln -s /home/procksi/RELEASE /home/procksi/latest
79 6 Anonymous
</pre>
80 5 Anonymous
81 6 Anonymous
Change into the installation directory, run the setup script once to see the default settings. Running the script _without_ the parameter _-x_ just displays the current configuration.
82 6 Anonymous
<pre>
83 1 Anonymous
cd /home/procksi/latest/install
84 5 Anonymous
./setup.pl -i -env latest
85 6 Anonymous
</pre>
86 5 Anonymous
87 6 Anonymous
In order to execute the installation for the given configuration, you must run the script _with_ the parameter _-x_.
88 6 Anonymous
<pre>
89 5 Anonymous
cd /home/procksi/test/install
90 1 Anonymous
./setup.pl -i -env latest -x
91 6 Anonymous
</pre>
92 1 Anonymous
93 6 Anonymous
Check that all links in _/home/procksi/latest/bin_ point to the correct files of the operating system.
94 1 Anonymous
95 6 Anonymous
Having *root privileges*, make sure that all permissions are set to '770', the user is _procksi_ and the group is _procksi_dev_.
96 6 Anonymous
<pre>
97 1 Anonymous
  cd /home/procksi/latest/admin
98 1 Anonymous
  ./chall.sh
99 6 Anonymous
</pre>