Book Image

Koha 3 Library Management System

Book Image

Koha 3 Library Management System

Overview of this book

Koha is the first full-featured open source library management system that is widely used for efficiently managing libraries. However, setting up and maintaining Koha is no walk in the park. It is not as straightforward as setting up the other popular LAMP applications.This practical guide provides all the essential information that is needed to make the task of installing and configuring Koha really seem simple and easy. It demonstrates how to set up Koha and its various aspects – installation, configuration, application administration, and data migration. It also covers troubleshooting, software maintenance, software customization, and other advanced topics.The book starts with installing and configuring the LAMP stack and the Koha application to meet your needs. It then goes deeper into setting up various rules and configuring settings for Koha. It also covers data migration of catalog records, software maintenance, and customization of the application. Chapters are also dedicated to providing an insight into advanced topics such as LDAP integration and Internationalization. Filled with numerous code samples and screenshots, this book will tour you through setting up Koha for evaluation or test purposes. It also includes loads of tips for troubleshooting and maintenance activities. By the end of this book, you will have gained the knowledge to get the most out of your Koha installation.
Table of Contents (19 chapters)
Koha 3 Library Management System
Credits
About the Authors
About the Reviewers
Preface
Index

An orientation to Koha's installation


In this section we'll learn about:

  • What components we will need to install

  • What installation tools to use and when

  • The implications of choosing one Linux distribution over another

  • Where to get help when you run into installation problems

Koha's architecture

First, let us take a quick look at Koha's architecture. Koha runs on the Linux, Apache2, MySQL, Perl (LAMP) platform:

  • Linux: The operating system

  • Apache2: The web server

  • MySQL: The database server

  • Perl: Koha is written in the Perl programming language

What do we need to install?

We will install various packages related to:

  • The Koha architecture above—Linux, Apache, MySQL, and Perl

  • The Koha application itself

  • Build and compiler programs that help with the installation

  • Various Perl and non Perl packages that Koha uses, along with their own prerequisites

Installation tools

Let us take a look at the various tools we will use to install Koha's software stack. These tools are:

  • Package manager: To install Linux packages

  • Make utility: To install Perl modules

  • CPAN shell: To install Perl modules that are not available as Linux packages

  • Git: To download the Koha application

Package manager

A package manager makes installation easy by automatically installing prerequisites, tracking versions and updates, and verifying checksums. Your choice of the package manager will usually depend on the Linux distribution you use. Here are some popular package managers:

  • APT: On Debian or Ubuntu

  • YaST: On openSuSE

  • YUM: On CentOS

Make utility

Perl programs such as Koha or the various Perl modules it uses can be installed using a series of commands:

  • perl Makefile.PL: This command checks for prerequisites and creates a configuration file needed by make

  • make: This compiles the software and creates executables

  • make test: It runs test cases to ensure proper installation, flags errors, and warnings in case of problems

  • make Install: This installs the executable files into proper directories in the server

CPAN shell

CPAN (Comprehensive Perl Archive Network)—is an archive of Perl modules.

The CPAN shell is a tool that automates the download and installation of Perl modules from the archive including the execution of the perl Makefile.PL, make, make test, and make install commands given above.

Learn more about CPAN here: http://www.cpan.org/.

Git

Git is Koha's version control system. Git simplifies and automates the download of software from Koha's online repository. We use Git not only during installation, but also while installing software updates. If you wish to make software changes of your own, Git will help merge those changes with new versions of Koha.

Learn more about Git here: http://git-scm.com/.

Choosing between Linux Perl packages and CPAN modules

CPAN is the largest archive of Perl modules. Perl modules are always available on CPAN. Many, but not all of Koha's Perl prerequisites are available as packages in a distribution's sources.

The recommended approach in such a scenario is to use Linux packages where available. If you don't find packages for a certain module, then use CPAN to install it.

The Linux package manager can manage all prerequisites of a module. CPAN only knows about Perl prerequisites, and cannot install any non-Perl prerequisites. For this reason, you will likely have smoother installations with the package manager in comparison to CPAN.

Choosing a Linux distribution

It appears that Debian is the most popular when it comes to Koha. Some of the installation tasks are simpler in this distribution. Also you might get better community support from a large pool of Debian Koha users.

However, if you are skilled on another distribution, it might make sense to use that. Installation on Ubuntu is very similar to that on Debian. There are many Koha users on Fedora, CentOS, or openSuSE. Installation documents, live CDs, and other sorts of help are becoming available for these distributions as well.

In any case, once you are past the installation stage, it does not really matter distribution you are on.

Getting help—Koha's community resources

If you face trouble with the installation, Koha's community resources can be of excellent help:

  • Mailing lists: Koha's mailing lists are very active and you are likely to get timely help. Join the mailing lists via this page: http://koha-community.org/support/koha-mailing-lists/.

  • Mailing lists archives: Many of the discussions are indexed by search engines. If you run into trouble, it is likely someone else had a similar problem before you, so just search for solutions using your favourite search engine.

  • IRC chat: Many of Koha's developers are available on this live chat forum. Join here: http://koha-community.org/support/.

  • Wiki: Koha's wiki might have useful material - http://wiki.koha-community.org/.

  • Installation documents: Up-to-date installation documents are available in Koha's application folder.