Check for update and upgrade if available
sudo apt update
sudo apt upgrade
Add Koha Community Repository & Trusted Repository Key
sudo echo deb http://debian.koha-community.org/koha stable main | sudo tee /etc/apt/sources.list.d/koha.list
sudo wget -O- http://debian.koha-community.org/koha/gpg.asc | sudo apt-key add –
Update Software Repository
apt-get update
Install Koha Software
sudo apt install koha-common –y
Port Configuration: Open following file to change port number.
sudo nano /etc/koha/koha-sites.conf
Default it is 80
Change to 8080 and save it
Installing MariaDB Server
sudo apt install mariadb-server mariadb-client –y
Secure MariaDB server using following command:
sudo mysql_secure_installation
It will ask for password. Set up a root password for MariaDB
Apply the following commands to enable rewrite & cgi
sudo a2enmod rewrite cgi && sudo systemctl restart apache2
Create a Koha instance with the name of your library or any other ‘iitr’.
sudo koha-create --create-db iitr
We have assigned 8080 port for the Koha staff client and 80 for OPAC. Open the following file and add a new port.
sudo nano /etc/apache2/ports.conf
Add following line below Listen 80
Listen 8080
Run following command & restart apache server. (change iitr to your previous settings)
sudo a2dissite 000-default && sudo a2enmod deflate && sudo a2ensite iitr
Restart apache server
sudo systemctl restart apache2
Run the following command to install “Locale::Language” perl module.
sudo apt install liblocale-codes-perl
Restart memcached server:
sudo systemctl restart memcached
Enable & Start Plack for Koha Performance Improvement (change iitr)
sudo koha-plack --enable library && sudo koha-plack --start iitr
Go to your web browser and see the link below