04/12/2019

Install Koha Software on Ubuntu 16.04 & 18.04 LTS

By Technical Digit

Open Terminal and get ready for Install Koha Software on Ubuntu Machine.

Update Ubuntu OS using following commands

sudo su 

apt-get update

apt-get upgrade

Install Leafpad text editor

apt-get install leafpad

Add Koha community repository

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

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

Update the software repository

sudo apt update

Install Koha

sudo apt install koha-common

Server Configuration

In this step, need to edit network information like domain name and port numbers. 

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

Here I change the port number of Koha staff client to 8080. Find the following line in the file and make changes.
INTRAPORT=”8080″

 

Install MariaDB server

Here we use MariaDB server instead of MySQL server. Apply the following commands one by one to add MariaDB repository and install the MariaDB Server.

sudo apt-get install software-properties-common

sudo apt-key adv –recv-keys –keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8

sudo add-apt-repository ‘deb [arch=amd64,arm64,ppc64el] http://mirrors.up.pt/pub/mariadb/repo/10.4/ubuntu bionic main’

sudo apt update

sudo apt install mariadb-server

Assign Root password for MariaDB

sudo mysqladmin -u root password ‘newpass’       [Replace ‘newpass‘]

Apply the following commands to create Apache configuration files.

sudo a2enmod rewrite
sudo a2enmod cgi
sudo service apache2 restart

Create a Koha instance with the name library. 

sudo koha-create –create-db library

We have assigned 8080 port for the Koha staff client and 80 for OPAC.
Open the following file and add a new port.

sudo leafpad /etc/apache2/ports.conf

Copy-paste following line below Listen 80

Listen 8080

Restart Apache,

sudo service apache2 restart

Enable modules and sites

sudo a2dissite 000-default
sudo a2enmod deflate
sudo a2ensite library
sudo service apache2 restart

Locate Koha default master password:

Run Following Command:

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

Note: Password will display in terminal, please copy and paste in login interface of koha staff client.
Restart memcached: 

sudo service memcached restart

Enable & Start Plack for Koha Performance Improvement: 

sudo koha-plack –enable library
sudo koha-plack –start  library
sudo service apache2 restart

How to start Koha
Open following links,

http://127.0.1.1:8080 (Staff Client)
http://127.0.1.1:80 (Online Catalogue-OPAC)

 
 
Total Views: 6385
https://technicaldigit.com/install-koha-software-on-ubuntu-16-04-18-04-lts/
technicaldigit.com
crawl=CC-MAIN-2022-27
127339
application/http; msgtype=response
sha1:TD5NQGQ2JOBNIU4XRDS6VFXINNFWPF6W
<urn:uuid:afa61a62-c039-4032-ae45-f0008bc860d7>
2022-06-25T23:17:02Z
217.21.77.221
text/html
sha1:NXUTROHH6TQQIM57L77EC4BJFG3KCUQ4
<urn:uuid:4dcd808c-5c41-4ab4-a1ca-01a4361e0dd1>
https://technicaldigit.com/install-koha-software-on-ubuntu-16-04-18-04-lts/
response
<urn:uuid:dc79bcec-4b68-4200-a57e-8d104ed69a26>
isPartOf: CC-MAIN-2022-27
publisher: Common Crawl
description: Wide crawl of the web for June/July 2022
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-163
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.3-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/