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