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

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

More notes

File size: 1.0 KB
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
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
12----------
13in practice we will want to use some explict process manager stuff.
14Either FastCGIServer directives, or the external stuff (FastCgiExternalServer
15and some stuff to make the thing run) as this will make it easier to poke
16things when the code changes without reloading apache.
17
18Here is one example (requires cgi-fcgi from libfcgi0)
19
20cgi-fcgi -start -connect /var/lib/apache2/fastcgi/submit.sock /path/to/submit.fcgi 10
21
22will kick off 10 instances.
23
24Then in Apache conf:
25
26FastCgiExternalServer /usr/lib/cgi-bin/npemap/submit.fcgi -connect submit.sock
27----------
28
29Above not necessarily true. Try libapache2-mod-fcgid.
30
31You want to set the DocumentRoot to the /static directory in SVN, and have a
32ScriptAlias to the /cgi directory on /cgi of the site.
Note: See TracBrowser for help on using the repository browser.