Completed notes.
[ZOOM-Perl-moved-to-github.git] / archive / test-server / test-server.notes
1 $Id: test-server.notes,v 1.2 2005-12-14 09:30:26 mike Exp $
2
3 To run the test-suite, this module needs an up-to-date Zebra server
4 (as of Tue Dec 13 17:41:05 GMT 2005) running on test.indexdata.com
5 port 2118, using isam:b and recognising a normal user "user" with
6 password "frog" and an administrator "admin" with password "fish".
7
8 To provide this, I needed to build an up-to-date Zebra in a custom
9 universe, so as not to interfere with the Debian packages used
10 elsewhere on test, and to start the server with appropriate
11 configuration.  Here's how I did it:
12
13         ssh test
14         mkdir -p universe/usr/src
15         cd universe/usr/src
16         cvs -q -d ":pserver:mike@bagel.indexdata.dk:/home/cvsroot" co yaz
17         cvs -q -d ":pserver:mike@bagel.indexdata.dk:/home/cvsroot" co zebra
18         cvs -q -d ":pserver:mike@bagel.indexdata.dk:/home/cvsroot" co ZOOM-Perl
19         cd yaz
20         ./buildconf.sh
21         LDFLAGS=-L/home/mike/universe/usr/lib CPPFLAGS=-I/home/mike/universe/usr/include ./configure --prefix=/home/mike/universe
22         make
23         make install
24         cd ../zebra
25         ./buildconf.sh
26         LDFLAGS=-L/home/mike/universe/usr/lib CPPFLAGS=-I/home/mike/universe/usr/include ./configure --prefix=/home/mike/universe
27         make
28         make install
29         cd ../ZOOM-Perl/archive
30         sudo cp test-server.init /etc/init.d/zoom-perl-server
31         cd /etc/rc2.d
32         sudo ln -s ../init.d/zoom-perl-server S99zoom-perl-server
33         sudo /etc/init.d/zoom-perl-server start
34
35 On test, two ranges of ports are left open through the firewall:
36         2100-2120 are open, meant for Z servers
37         8001-8020 are open, meant for web services
38 We arbitrarily choose port 2118 for this service.
39