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

Last change on this file since 79 was 70, checked in by Dominic Hargreaves, 15 years ago

remove use of Date::Format (fixes #15)

File size: 989 bytes
RevLine 
[29]1To deploy the submission script.
2
3Assuming apache2 installed:
4
[70]5# apt-get install libgeo-postcode-perl libdbd-pg-perl libcgi-fast-perl libapache2-mod-fastcgi
[29]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
[32]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
[67]27You want to set the DocumentRoot to the /static directory in SVN, and have a
28ScriptAlias to the /cgi directory on /cgi of the site.
Note: See TracBrowser for help on using the repository browser.