1 | Linux Installation Instructions: |
---|
2 | |
---|
3 | 1. Install PostgreSQL and Apache Tomcat |
---|
4 | 2. Create a user 'gscf' with password 'dbnp', a database 'gscf' |
---|
5 | $ psql template0 |
---|
6 | ... |
---|
7 | template0=# CREATE USER gscf WITH PASSWORD 'dbnp'; |
---|
8 | CREATE USER |
---|
9 | template0=# CREATE DATABASE gscf; |
---|
10 | CREATE DATABASE |
---|
11 | template0=# GRANT ALL PRIVILEGES ON DATABASE gscf TO gscf; |
---|
12 | GRANT |
---|
13 | template0=# |
---|
14 | 3. Deploy gscf-X.Y.Z.war on Apache Tomcat |
---|
15 | cp gscf-X.Y.Z.war /path/to/tomcat/webapps |
---|
16 | 4. Access the application by browsing to: |
---|
17 | http://server.domain.name:8080/gscf-X.Y.Z/ |
---|
18 | |
---|
19 | It is also possible to allow a more user friendly URL for the end user |
---|
20 | by using the Apache Webserver as a proxy (Apache + mod_jk + mod_proxy |
---|
21 | + mod_rewrite). |
---|
22 | |
---|
23 | 1. define the AJP connector in Apache's worker.properties |
---|
24 | file (/etc/apache2/worker.properties): |
---|
25 | ... |
---|
26 | worker.gscf.type=ajp13 |
---|
27 | worker.gscf.host=localhost |
---|
28 | worker.gscf.port=8009 |
---|
29 | ... |
---|
30 | 2. define an Apache virtual host configuration: |
---|
31 | <VirtualHost *:80> |
---|
32 | ServerName my.domain.name |
---|
33 | ServerAlias www.my.domain.name |
---|
34 | |
---|
35 | ErrorLog /var/log/apache2/gscf-error.log |
---|
36 | CustomLog /var/log/apache2/gscf-access.log combined |
---|
37 | |
---|
38 | ServerAdmin you@yourdomain.com |
---|
39 | |
---|
40 | <IfModule mod_jk.c> |
---|
41 | JkMount /* gscf |
---|
42 | </IfModule> |
---|
43 | |
---|
44 | <IfModule mod_rewrite.c> |
---|
45 | RewriteEngine on |
---|
46 | RewriteLog "/var/log/apache2/domain-rewrite.log" |
---|
47 | |
---|
48 | RewriteRule ^/gscf-([0-9\.]{1,})(.*)$ $2 [NC,NE] |
---|
49 | RewriteRule ^/(.*)$ /gscf-X.Y.Z/$1 [L,PT,NC,NE] |
---|
50 | </IfModule> |
---|
51 | </VirtualHost> |
---|
52 | |
---|