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

Setting up environment variables for the Linux shell


To run any of the Koha's programs from the Linux shell we need to set up up two environment variables properly—KOHA_CONF and PERL5LIB. Koha's Perl programs look at these variables to determine the location of the installation's configuration file – koha-conf.xml and the location of the application folder – kohaclone. In this section, we demonstrate how to setup these variables up for a single session and how to set these up to be persistent across sessions.

Setting up KOHA_CONF environment variable

The KOHA_CONF environment variable should point to Koha's configuration directory; in this book we have used /etc/koha-dev/etc/koha-conf.xml. To set up this variable, we use the export command:

koha@linux:/home/koha/kohaclone # export
KOHA_CONF=/etc/koha-dev/etc/koha-conf.xml

Let us test to make sure the variable is set correctly:

koha@libux:/home/koha/kohaclone # echo $KOHA_CONF 
/etc/koha-dev/etc/koha-conf.xml

Setting up PERL5LIB environment...