source: trunk/npemap.org.uk/documents/deployment.txt @ 32

Last change on this file since 32 was 32, checked in by Dominic Hargreaves, 13 years ago

Add external server example

File size: 873 bytes
Line 
1To deploy the submission script.
2
3Assuming apache2 installed:
4
5# apt-get install libgeo-postcode-perl libdbd-pg-perl libcgi-fast-perl libapache2-mod-fastcgi libtimedate-perl
6Copy 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
10Done!
11
12TODO: in practice we will want to use some explict process manager stuff.
13Either FastCGIServer directives, or the external stuff (FastCgiExternalServer
14and some stuff to make the thing run) as this will make it easier to poke
15things when the code changes without reloading apache.
16
17Here is one example (requires cgi-fcgi from libfcgi0)
18
19cgi-fcgi -start -connect /var/lib/apache2/fastcgi/submit.sock /path/to/submit.fcgi 10
20
21will kick off 10 instances.
22
23Then in Apache conf:
24
25FastCgiExternalServer /usr/lib/cgi-bin/npemap/submit.fcgi -connect submit.sock
26
Note: See TracBrowser for help on using the repository browser.