Updated README.txt to include PostgreSQL notes
[koha.git] / README.txt
1 Koha - award-winning GPL Integrated Library System
2
3 Koha aims to be a full-featured Integrated Library System. Developed
4 initially in New Zealand by Katipo Communications Ltd and first deployed
5 in January of 2000 for Horowhenua Library Trust, it is currently
6 maintained by a team of software providers and library technology staff
7 from around the globe.
8
9
10 STRUCTURE
11 =========
12
13 Koha 3.0 has been restructured from Koha 2.2 to use Zebra,
14 a high-performance, general-purpose structured text indexing and
15 retrieval engine.  Zebra speaks Z39.50, building on one of Koha's most
16 useful features.
17
18 General library data is held in MySQL, and Koha 3.0 supports MySQL 5,
19 using foreign keys and other recent features.
20
21 Apache 2 is the recommended web server and VirtualHost configuration
22 files are generated for it.
23
24
25 INSTALLATION
26 ============
27
28 Koha 3.0 comes with a new installer, based on MakeMaker, the tool that
29 is usually used to install CPAN modules.  This means that if you know
30 how to customise CPAN-installed modules, the same things should work
31 for you with Koha.  If not, don't worry.  If you want to customise the
32 installation more than described below, run "man ExtUtils::MakeMaker"
33
34 Koha 3.0 introduces multi-dbms support. With this release you may elect
35 to install over MySQL 5 or PostgreSQL 8.2.5. Further databases will
36 be added over time.
37
38 You need to have a server running MySQL 5 or PostgreSQL 8.2.5, Zebra
39 and some webserver (preferably Apache) before installing Koha.
40  
41 MySQL 5: Create a database called 'koha,' owned by 'kohaadmin'
42 user, with a password set. Note: kohaadmin must have at least the
43 following privileges: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP.
44
45 PostgreSQL 8.2.5: Create a database called 'koha,' owned by 'kohaadmin' 
46 user, with a password set. Note: kohaadmin must be a superuser.
47
48 Default installation instructions:
49
50 0. export DB_PASS=thePasswordYouChose
51 1. perl Makefile.PL
52 2. make
53 3. sudo make install
54 4. ln -s /usr/share/koha/etc/koha-httpd.conf /etc/apache2/sites-available/koha
55 5. a2enmod enable rewrite
56 6. a2ensite koha && /etc/init.d/apache2 reload
57 7. zebrasrv -c /usr/share/koha/etc/koha-conf.xml
58 8. Browse to http://servername:8080/ and answer the questions
59
60 OR if you want to install all dependencies from CPAN and are root, you can
61 replace steps 1-3 with "perl install-CPAN.pl" but this is non-standard and
62 may not be safe.  Nevertheless, it's pretty cool when it works.
63
64 The defaults will install Koha to places that follow relevant standards,
65 such as the File Hierarchy Standard.  If you want to install Koha to a
66 different directory like /opt/koha, then replace step 1 with:
67 1a. export PREFIX=/opt/koha
68 1b. export CGI_DIR=/opt/koha/cgi
69 1c. export LOG_DIR=/opt/koha/log
70 1d. perl Makefile.PL PREFIX=/opt/koha
71
72 You can change most of the defaults in a similar way, such as DB_HOST.
73 For full instructions on how to override the default settings, run
74 perldoc rewrite-config.PL
75
76
77 IF YOU HAVE PROBLEMS
78 ====================
79
80 IF THIS IS A PRE-RELEASE TREE: please contact developers by email via
81 http://lists.nongnu.org/mailman/listinfo/koha-devel
82 or
83 http://dir.gmane.org/gmane.education.libraries.koha.devel
84
85 IF THIS IS A RELEASED VERSION: please see the support pages at
86 http://www.koha.org/
87
88 Released versions usually have three-digit numbers, like 3.00.01,
89 while other version number styles are usually snapshots or previews.
90
91
92 DEVELOPER NOTES
93 ===============
94
95 For instructions on how to package releases, run perldoc Makefile.PL