How to Install Koha Open Source Library Software

Koha is the opensource Integrated Library System (ILS) and widely used by worldwide school, colleges, universities and special libraries. Koha can easily accessible through this website.

Koha

Koha comes with many features & due to this reason Koha can be used as inventory management software or as Point of Sales (POS) software. Through koha digital repository can be maintained easily by just few configurations. Koha provide unique searching feature which enable user to find books or records effectively within no time duration. Due to this reason mostly organization in the world used koha like library of Congress used koha software. Koha can be customized according to our needs due to its open source software and comes with a General Public License.

Prerequisite for the installation of Koha

Koha is open source software and run on linux environment. Koha can be installed on any flavor of Linux. Mostly people installed koha on Debian because Debian is an less resource hungry OS as compared to the other Linux OS.  Some basic requirements are mentioned below for the installation of Koha.

  • A Linux server – Debian is what most people use
  • Apache
  • MySQL (up to version 5.6) or MariaDB
  • Perl
  • Root access to the server
  • An advanced level of skills or hands on experience on command line, Apache, and MySQL tools

You should also have root access to the server, you should have a reasonable level of comfort working with Linux at the command line Interface, and a general understanding of database structure will also help.

Koha Open Source Library Software

You should also have root access to the server, you should have a reasonable level of comfort working with Linux at the command line level, and a general understanding of database structure will also help.

How to Install Koha Open Source Library Software using Ubuntu

Read out the below tutorial and follow the step wise guidelines you can easily install and Koha on Linux and Web Server.

Step 1: Update the Ubuntu

After that we have to update the package sources once:

sudo apt-get upgrade

Step 2: Setup a Repository

echo deb http://debian.koha-community.org/koha stable main | sudo tee /etc/apt/sources.list.d/koha.list

Step 3: Download and set the key

wget -O- http://debian.koha-community.org/koha/gpg.asc | sudo apt-key add –

Then update ubuntu and its packages

sudo apt-get update

sudo apt-get upgrade

sudo apt-get clean

Step 4: Install the koha on the following commands

sudo apt-get install koha-common

open the file “ /etc/koha/koha-sites.conf”  and change the INTRAPORT value to 8080 and OPACPORT value to 8081. and  Save the file

sudo nano /etc/koha/koha-sites.conf

Step 5: Installation of Database (Maria DB)

sudo apt-get install mariadb-server

Now rebuild apache module for the databases

  • sudo a2enmod rewrite
  • sudo a2enmod cgi
  • sudo service apache2 restart

Step 6: Now create DB for the KOHA

sudo koha-create –create-db library

Now instal secure Mysql setup

sudo mysql_secure_installation

   “(  The first answer is ‘n’ and the rest are all the defaults ‘Y’    )”

 Now add the port of apache web server for the listening of koha server

for example

Listen 8080

Listen 8081

sudo nano /etc/apache2/ports.conf

Now amend and restart the Apache modules

sudo a2enmod deflate

-sudo a2ensite library

sudo service apache2 restart

Step 7: Now Start Koha from Web Installation

  •  Generate the password for the koha using give below command

sudo xmlstarlet sel -t -v ‘yazgfs/config/pass’ /etc/koha/sites/library/koha-conf.xml;echo

  • Now open the koha through web browser

http://127.0.0.1:8080

Now login through  given username and password generated from above commands

username: koha_library

Password: ”use the above generated password” or

See from the file  “/etc/koha/sites/library/koha-conf.xml”

Step 8: Configure Koha from the Web

First, get your password:

sudo xmlstarlet sel -t -v 'yazgfs/config/pass' /etc/koha/sites/[YOUR INSTANCE NAME]/koha-conf.xml

Command to take a backup

mysqldump koha_library >backup-file-sql-25-07-2017.sql