Koha Installation

Koha 24.05 · Ubuntu 22.04

Overview

Koha is an open-source integrated library system for cataloguing, circulation and managing library collections.

Version-specific referenceThese commands are retained as historical instructions for the stated versions. Validate them against current official guidance before using them on production systems. Source: Original tutorial
01System Preparation
sudo apt update

Refreshes the local package index using configured repositories.

sudo apt upgrade

Upgrades installed packages; review changes before proceeding.

02Install a Text Editor
sudo apt -y install mousepad

Installs the named packages and their dependencies.

03Configure Koha Repository

Two source alternatives appear in the original; “OR” separates them. Do not execute both without checking repository compatibility.

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

Original installation command or configuration value. Follow the surrounding steps for correct context.

Legacy or security-sensitive instruction — verify compatibility before execution.

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

Imports an APT signing key using a deprecated method. Refer to current upstream documentation before running.

Legacy or security-sensitive instruction — verify compatibility before execution.

sudo apt update

Refreshes the local package index using configured repositories.

sudo apt upgrade

Upgrades installed packages; review changes before proceeding.

sudo apt clean

Runs the original operation with administrator privileges; confirm paths and version requirements.

OR — alternative supplied in the original guide
echo deb http://debian.koha-community.org/koha oldstable main | sudo tee /etc/apt/sources.list.d/koha.list

Original installation command or configuration value. Follow the surrounding steps for correct context.

Legacy or security-sensitive instruction — verify compatibility before execution.

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

Imports an APT signing key using a deprecated method. Refer to current upstream documentation before running.

Legacy or security-sensitive instruction — verify compatibility before execution.

sudo apt update

Refreshes the local package index using configured repositories.

sudo apt upgrade

Upgrades installed packages; review changes before proceeding.

sudo apt clean

Runs the original operation with administrator privileges; confirm paths and version requirements.

04Install Required Software

MySQL and MariaDB are original alternatives. A password placeholder appears in the source.

sudo apt install koha-common

Installs the named packages and their dependencies.

sudo apt install mysql-server

Installs the named packages and their dependencies.

OR — alternative supplied in the original guide
sudo apt install -y mariadb-server

Installs the named packages and their dependencies.

sudo mysqladmin -u root password 	 newpass    [Replace 'newpass']

Runs the original operation with administrator privileges; confirm paths and version requirements.

Legacy or security-sensitive instruction — verify compatibility before execution.

sudo apt install -y koha-common

Installs the named packages and their dependencies.

05Configure Koha
sudo mousepad /etc/koha/koha-sites.conf

Opens a file in an editor for manual configuration.

INTRAPORT="8080"

Original installation command or configuration value. Follow the surrounding steps for correct context.

06Create Library Instance
sudo a2enmod rewrite

Runs the original operation with administrator privileges; confirm paths and version requirements.

sudo a2enmod cgi

Runs the original operation with administrator privileges; confirm paths and version requirements.

sudo service apache2 restart

Manages or checks a system service.

sudo koha-create --create-db library

Creates the named Koha library instance.

07Configure Web Server
sudo mousepad /etc/apache2/ports.conf

Opens a file in an editor for manual configuration.

Listen 8080

Original installation command or configuration value. Follow the surrounding steps for correct context.

Listen 8081

Original installation command or configuration value. Follow the surrounding steps for correct context.

sudo service apache2 restart

Manages or checks a system service.

sudo a2dissite 000-default

Runs the original operation with administrator privileges; confirm paths and version requirements.

sudo a2enmod deflate

Runs the original operation with administrator privileges; confirm paths and version requirements.

sudo a2ensite library

Runs the original operation with administrator privileges; confirm paths and version requirements.

sudo service apache2 restart

Manages or checks a system service.

08Access Koha
sudo service memcached restart

Manages or checks a system service.

http://127.0.1.1:8080

A URL in the original guide, not a shell command.

Legacy or security-sensitive instruction — verify compatibility before execution.

sudo mousepad /etc/koha/sites/library/koha-conf.xml

Opens a file in an editor for manual configuration.

About & Official Resources

Koha is an open-source integrated library system for cataloguing, circulation and managing library collections.