ProcksiFramework » History » Version 5
Anonymous, 08/05/2008 12:17 PM
Improved Installation Guide
| 1 | 5 | Anonymous | = ProCKSI Workbench = |
|---|---|---|---|
| 2 | 1 | Anonymous | |
| 3 | 5 | 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. |
| 4 | 1 | Anonymous | |
| 5 | 5 | 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. |
| 6 | 1 | Anonymous | |
| 7 | 5 | Anonymous | '''IMPORTANT''': Always test a new release before taking a new version online! |
| 8 | 5 | Anonymous | |
| 9 | 5 | Anonymous | == Preparations for '''TEST''' and '''RELEASE''' == |
| 10 | 5 | Anonymous | |
| 11 | 5 | 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): |
| 12 | 1 | Anonymous | {{{ |
| 13 | 5 | Anonymous | mkdir /home/procksi/logs |
| 14 | 5 | Anonymous | mkdir /home/procksi/locks |
| 15 | 1 | Anonymous | }}} |
| 16 | 1 | Anonymous | |
| 17 | 5 | Anonymous | |
| 18 | 5 | Anonymous | == Installation and Configuration of a ''TEST'' version == |
| 19 | 5 | Anonymous | |
| 20 | 5 | 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''. |
| 21 | 5 | Anonymous | |
| 22 | 5 | Anonymous | Check out the current snapshot of the development version from the SVN repository. |
| 23 | 1 | Anonymous | {{{ |
| 24 | 5 | Anonymous | svn co https://psiren.cs.nott.ac.uk/repos/procksi/ProCKSI-Workbench/trunk /home/procksi/TEST |
| 25 | 1 | Anonymous | }}} |
| 26 | 1 | Anonymous | |
| 27 | 5 | 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: |
| 28 | 1 | Anonymous | {{{ |
| 29 | 5 | Anonymous | ln -s /home/procksi/TEST /home/procksi/test |
| 30 | 1 | Anonymous | }}} |
| 31 | 1 | Anonymous | |
| 32 | 5 | 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. |
| 33 | 5 | Anonymous | {{{ |
| 34 | 5 | Anonymous | cd /home/procksi/test/install |
| 35 | 5 | Anonymous | ./setup.pl -i -env test |
| 36 | 5 | Anonymous | }}} |
| 37 | 1 | Anonymous | |
| 38 | 5 | Anonymous | Run the setup script again with adjusted parameters. Parameters that might need adjustment are: |
| 39 | 5 | Anonymous | - ''-server_base'': Should be ''/home/procksi/test'' |
| 40 | 5 | Anonymous | - ''-server_name'': URL and port number for this ''TEST'' version as given in the ''apache'' configuration file |
| 41 | 5 | Anonymous | - ''-server_admin'': Email address of the administrator or this ''TEST'' version |
| 42 | 5 | Anonymous | - ''-database_name'': Database that should be used for this ''TEST'' version |
| 43 | 5 | Anonymous | |
| 44 | 5 | Anonymous | In order to execute the installation for the given configuration, you must run the script ''with'' the parameter ''-x''. |
| 45 | 1 | Anonymous | {{{ |
| 46 | 5 | Anonymous | cd /home/procksi/test/install |
| 47 | 5 | Anonymous | ./setup.pl -i -env test -x |
| 48 | 1 | Anonymous | }}} |
| 49 | 1 | Anonymous | |
| 50 | 5 | Anonymous | Check that all links in ''/home/procksi/test/bin'' point to the correct files of the operating system. |
| 51 | 5 | Anonymous | |
| 52 | 5 | Anonymous | Having '''root privileges''', make sure that all permissions are set to '770', the user is ''procksi'' and the group is ''procksi_dev''. |
| 53 | 1 | Anonymous | {{{ |
| 54 | 5 | Anonymous | cd /home/procksi/test/admin |
| 55 | 5 | Anonymous | ./chall.sh |
| 56 | 5 | Anonymous | }}} |
| 57 | 5 | Anonymous | |
| 58 | 5 | Anonymous | |
| 59 | 5 | Anonymous | == Installation and Configuration of an official '''RELEASE''' == |
| 60 | 5 | Anonymous | |
| 61 | 5 | 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''. |
| 62 | 5 | Anonymous | |
| 63 | 5 | Anonymous | Check out the latest ''RELEASE'' from the SVN repository: |
| 64 | 5 | Anonymous | {{{ |
| 65 | 5 | Anonymous | svn co https://psiren.cs.nott.ac.uk/repos/procksi/ProCKSI-Workbench/tags/RELEASE /home/procksi/RELEASE |
| 66 | 5 | Anonymous | }}} |
| 67 | 5 | Anonymous | |
| 68 | 5 | 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: |
| 69 | 5 | Anonymous | {{{ |
| 70 | 5 | Anonymous | ln -s /home/procksi/RELEASE /home/procksi/latest |
| 71 | 5 | Anonymous | }}} |
| 72 | 5 | Anonymous | |
| 73 | 5 | 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. |
| 74 | 5 | Anonymous | {{{ |
| 75 | 1 | Anonymous | cd /home/procksi/latest/install |
| 76 | 5 | Anonymous | ./setup.pl -i -env latest |
| 77 | 1 | Anonymous | }}} |
| 78 | 3 | Anonymous | |
| 79 | 5 | Anonymous | In order to execute the installation for the given configuration, you must run the script ''with'' the parameter ''-x''. |
| 80 | 5 | Anonymous | {{{ |
| 81 | 5 | Anonymous | cd /home/procksi/test/install |
| 82 | 5 | Anonymous | ./setup.pl -i -env latest -x |
| 83 | 5 | Anonymous | }}} |
| 84 | 5 | Anonymous | |
| 85 | 1 | Anonymous | Check that all links in ''/home/procksi/latest/bin'' point to the correct files of the operating system. |
| 86 | 5 | Anonymous | |
| 87 | 5 | Anonymous | Having '''root privileges''', make sure that all permissions are set to '770', the user is ''procksi'' and the group is ''procksi_dev''. |
| 88 | 5 | Anonymous | {{{ |
| 89 | 5 | Anonymous | cd /home/procksi/latest/admin |
| 90 | 5 | Anonymous | ./chall.sh |
| 91 | 5 | Anonymous | }}} |