Installing Koha: Configure and start Zebra

  1. Installing Koha : Introduction
  2. Installing Koha: Create a User Account on Debian
  3. Installing Koha: Update Debian packages
  4. Installing Koha: Download koha and install required packages
  5. Installing koha: Create MySQL database
  6. Installing Koha: Configure the installer and install koha
  7. Installing Koha: Configure apache2 web server and run koha web installer
  8. Installing Koha: Configure and start Zebra

The last part in this series of posts will be configuring zebra, koha’s default search engine.
We will begin by making zebra auto-start with the following commands in succession.

sudo ln -s /usr/share/koha/bin/  /etc/init.d/koha-zebra-daemon
sudo update-rc.d koha-zebra-daemon defaults
sudo /usr/share/koha/bin/ start

Then finally add a cronjob that will run the zebra indexer every 5 minutes to pick-up new records that are added to the database so that they can be shown in the search results.
Open the crontab file with the following command:

sudo -u david crontab -e

At the bottom of the file, add the line below:

*/5 * * * * /usr/share/koha/bin/migration_tools/ -a -b -z

Save and close the file.

Otuoma Sanya

Otuoma Sanya is a full-time systems librarian, tech enthusiast and writer. His areas of interest are data mining, institutional repositories, library automation and web development using python Django.

Leave a Reply