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 ...

Get Koha 3 Library Management System now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.