Koha Ubuntu Installation
Koha Ubuntu Installation
Koha Ubuntu Installation
04
Prepared by
Dr S S Kushwah,
Dy. Librarian,
National Law Institute University, Bhopal
shivpal_s@yahoo.com
Contents
Installation & Update of Operating System Ubuntu 16.04..................................................................1
Koha Installation..................................................................................................................................1
Install Koha..........................................................................................................................................2
Server Configuration............................................................................................................................2
MySQL Maria DB Installation.............................................................................................................2
Install MariaDB server.................................................................................................................2
Assign Root password for MySQL..............................................................................................3
Koha Instance Creation........................................................................................................................3
Add New Port in Apachi2....................................................................................................................3
Restart Apache,.....................................................................................................................................3
Change KOHA PAssword....................................................................................................................3
Backup Restore.....................................................................................................................................4
Install default Ubuntu 16.04 LTS & Update the system using following commands
Koha Installation
Add Koha community repository
or
Add the GPG key to your system so that you know that the packages haven't been tampered with:
Install Koha
Following command will install latest release of Koha.
The command will start to download Koha and required packages, during the process it will ask to
enter mail of system you may accept the default values.
The above errors are related with apache2-mpm-itk issue. Apply following commands. If you have
not found error related to apache2-mpm-itk, skip following section. Apply following commands in
a terminal (if above errors appear)
Server Configuration
In this step, need to edit network information like domain name and port numbers.
Find following line in the file and make changes, here I have changed port number of Koha Staff
Client to 8080.
INTRAPORT="8080"
Listen 8080
Restart Apache,
sudo service apache2 restart
Now enable the apache modules this config needs, enable koha's configuration, and restart apache.
Koha master login username and password is same as MySQL database (e.g. koha_library), where
data stored. First change the password of koha_library database. Then put new password in
/etc/koha/sites/library/koha-conf.xml. Apply following commands in Applications > Accessories >
Terminal
sudo su
mysql -uroot -p
use mysql;
SET PASSWORD FOR 'koha_library'@'localhost' = PASSWORD('koha123');
flush privileges;
quit;
Open the configuration file using any text editor. Use any text editor, gedit/leafpad. Leafpad is not
available, install;
The file will open. Scroll to bottom part of the file and find the line for password.
Backup Restore
Install Koha
Restoration of old Koha database to new one, first remove existing database in new
installation.
sudo su
mysql -uroot -p
Copy your database backup from your pen drive to home folder. Extract the backup file, the
extension will be .sql Then restore the old backup to new installation.
sudo su
koha-upgrade-schema library
9617383851
shivpal_s@yahoo.com