Line | |
---|
1 | To deploy the submission script. |
---|
2 | |
---|
3 | Assuming apache2 installed: |
---|
4 | |
---|
5 | # apt-get install libgeo-postcode-perl libdbd-pg-perl libcgi-fast-perl libapache2-mod-fastcgi |
---|
6 | Copy submit.fcgi to a location that the web server will use as CGI (eg /usr/lib/cgi-bin) |
---|
7 | # a2enmod fastcgi |
---|
8 | # /etc/init.d/apache2 reload |
---|
9 | |
---|
10 | Done! |
---|
11 | |
---|
12 | ---------- |
---|
13 | in practice we will want to use some explict process manager stuff. |
---|
14 | Either FastCGIServer directives, or the external stuff (FastCgiExternalServer |
---|
15 | and some stuff to make the thing run) as this will make it easier to poke |
---|
16 | things when the code changes without reloading apache. |
---|
17 | |
---|
18 | Here is one example (requires cgi-fcgi from libfcgi0) |
---|
19 | |
---|
20 | cgi-fcgi -start -connect /var/lib/apache2/fastcgi/submit.sock /path/to/submit.fcgi 10 |
---|
21 | |
---|
22 | will kick off 10 instances. |
---|
23 | |
---|
24 | Then in Apache conf: |
---|
25 | |
---|
26 | FastCgiExternalServer /usr/lib/cgi-bin/npemap/submit.fcgi -connect submit.sock |
---|
27 | ---------- |
---|
28 | |
---|
29 | Above not necessarily true. Try libapache2-mod-fcgid. |
---|
30 | |
---|
31 | You want to set the DocumentRoot to the /static directory in SVN, and have a |
---|
32 | ScriptAlias to the /cgi directory on /cgi of the site. |
---|
Note: See
TracBrowser
for help on using the repository browser.