User manual

Chapter 4
koha@linux:/home/koha/kohaclone/misc # cd
/usr/lib/per15/vendor_perl/5.10.0/XML/SAX/
koha@linux:/usr/lib/per15/vendor_perl/5.10.0/XML/SAX # vi ParserDetails.
ini
[XML::LibXML::SAX::Parser]
http://xml.org/sax/features/namespaces = 1
Let us test the parser configuration again; a correct file will result in an output like
this:
koha @ linux: /home /koha /kohaclone /misc # . /sax_parser_print.pl
Koha wants something like:
XML::LibXML ::SAX::Parser= HASH(0x81fe220)
You have:
XML::LibXML ::SAX::Parser= HASH(0x834fc94)
Looks good.
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
[63]