Koha INSTALLATION

 

 Koha INSTALLATION




After installation of ubuntu 20.4 (Focal Fossa), right click on the mouse choose open terminal.

past the following comments in terminal.

Update Ubuntu using apt

 

sudo apt update

sudo apt upgrade -y


if the system asks for update make it "Remind me later"

it may confuse the process

Clear the apt-get packager manager cache


sudo apt clean


Install MariaDB-server dependence


sudo apt install -y mariadb-server


Provide MySQL/MariaDB root password

(If the password asks during the installation process, enter the password in the window.

Apply the following command, if the password window did not appear during the installation secure it)

Securing MariaDB

Run this command to improve the security of the MariaDB installation:

 

sudo mysql_secure_installation

 

(The script will prompt you to set up the root user password, remove the anonymous user, restrict root user access to the local machine and remove the test database.

In the end, the script will reload the privilege tables ensuring that all changes take effect immediately.

All steps are explained in detail and it is recommended to answer “Y” (yes) to all questions.)

Add Koha community repository (If you want stable/latest version of koha change oldstable to stable)

 

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

 

Add trusted repository key


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

 

Update software repository


sudo apt update

 

Install Koha and dependencies


sudo apt install -y koha-common

 

(takes 5 mins on a reasonably fast internet connection)

Edit initial config file


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


Edit INTRAPORT as 8080, OPACPORT as 80.

 

domain, and Memcached [for database, makes Koha faster] settings depending on install

Ensure rewrite and cgi are enabled


sudo a2enmod rewrite cgi

 

Restart Apache to take effect


sudo systemctl restart apache2

 

Setup the database for Koha


sudo koha-create --create-db library

 

Add new 8080 port (for IP based install) to Apache

 

sudo gedit /etc/apache2/ports.conf


(need to add Listen 8080 below Listen 80 )

Enable Virtual-host on Apache


sudo a2dissite 000-default

sudo a2enmod deflate

sudo a2ensite library

sudo systemctl restart apache2

 

Test to ensure everything is working

In the web browser, visit http://localhost or http://127.0.0.1 {Koha maintenance message}

In the web browser, visit localhost:8080 or 127.0.0.1:8080 It will prompt for username & password

It asks for a username Password

username --> koha_library

password --> executing below command –>


sudo koha-passwd library


Copy and paste the password from terminal

 

Causation

changing the password sometimes will make error

(Follow onscreen instructions/wizard create a library and a super librarian

Change Koha Master Password (optional)

Koha master password can be changed by editing the koha-conf.xml file

 

sudo sed -i 's/1MvFLNny4naCWmo@/kohalib/g' /etc/koha/sites/library/koha-conf.xml

(for single click changing password, use above command)

OR manually change

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

 

Under config, section find out the line password and change it

<config>

 <db_scheme>mysql</db_scheme>

 <database>koha_library</database>

 <hostname>localhost</hostname>

 <port>3306</port>

 <user>koha_library</user>

 <pass>1MvFLNny4naCWmo@</pass>

(change default password 1MvFLNny4naCWmo@ to kohalib) save it.

then change MySQL privileges

 

sudo mysql -uroot -p


[enter the MySQL Root password]


use mysql;

SET PASSWORD FOR 'Your koha user name'@'localhost' = PASSWORD('your koha password');

flush privileges;

quit;


 Restart Memcached Apache2 and MySQL


sudo systemctl restart memcached apache2 mysql


Enable Plack with Koha and Improve the Performance

sudo a2enmod headers proxy_http

sudo systemctl restart apache2

sudo koha-plack --enable library

sudo koha-plack --start  library

 

Restart server

sudo reboot

Check the local host after reboot.

http://localhost:8080

http://127.0.0.1:8080

Comments

Popular posts from this blog

Install Dspace 7.2 on Ubuntu 22.04 LTS

How to delete library data in koha using the command line

Total views