Tuesday, May 12, 2020

Koha Installation

To use Koha, You have to Install Ubuntu.

Ubuntu is a free and open-source Linux.
It is easy to Install and Run. 


In Ubuntu you can open terminal (Ctrl+Alt +T ). 


Open terminal then follow this commands :-

  • sudo su
  • Enter root password
  • sudo apt update
  • sudo apt upgrade
  • echo deb http://debian.koha-community.org/koha stable main | sudo tee /etc/apt/sources.list.d/koha.list

  • wget -O- http://debian.koha-community.org/koha/gpg.asc | sudo apt-key add -
  • sudo apt update
  • sudo apt install koha-common
  • sudo apt update
  • sudo apt upgrade
  • sudo nano /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" and 
INTRAPORT="80"
  • sudo apt install mariadb-server
  • sudo mysqladmin -u root password koha123  (and you can change password your choice )
  • sudo a2enmod rewrite
  • sudo a2enmod cgi
  • sudo service apache2 restart
  • sudo koha-create --create-db library

Add new port

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

Copy-paste following line below Listen 80

Listen 8080
  • sudo service apache2 restart
  • sudo a2dissite 000-default
  • sudo a2enmod deflate
  • sudo a2ensite library
  • sudo service apache2 restart
  • sudo service memcached restart



6 comments: