source: trunk/INSTALLATION @ 630

Last change on this file since 630 was 630, checked in by duh, 8 years ago
  • add installation help file
File size: 1.4 KB
Line 
1Linux Installation Instructions:
2
31. Install PostgreSQL and Apache Tomcat
42. 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=#
143. Deploy gscf-X.Y.Z.war on Apache Tomcat
15        cp gscf-X.Y.Z.war /path/to/tomcat/webapps
164. Access the application by browsing to:
17        http://server.domain.name:8080/gscf-X.Y.Z/
18
19It is also possible to allow a more user friendly URL for the end user
20by using the Apache Webserver as a proxy (Apache + mod_jk + mod_proxy
21+ mod_rewrite).
22
231. 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        ...
302. 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
Note: See TracBrowser for help on using the repository browser.