Install Koha on Ubuntu
Install Koha on Ubuntu
Install Ubuntu 20.04 and update
Koha can install on various Ubuntu flavours like Xubuntu/Lubuntu. Xubuntu and Lubuntu are lightweight (fast performance) Ubuntu flavours. Download Linux iso file from either Xubuntu/Lubuntu from websites. Burn in a DVD or pen drive/DVD. Install the Linux operating system.
Open Terminal and get ready for installation
Open Applications > System Tools > Terminal and apply the commands one by one mentioned on this page.
This process will update the Linux operating system latest by downloading new packages.
sudo apt update
sudo apt upgrade
sudo apt -y install mousepad
echo deb http://debian.koha-community.org/koha oldstable 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 install -y koha-common
sudo a2enmod rewrite
sudo a2enmod cgi
sudo service apache2 restart
sudo koha-create --create-db library
Restart Apache,
sudo service apache2 restart
Enable modules and sites
sudo a2dissite 000-default
sudo a2enmod deflate
sudo a2ensite library
sudo service apache2 restart
sudo apt upgrade
Install Mousepad text editor
The mousepad is a lightweight text editor, which requires opening configuration files while the installation process of Koha.sudo apt -y install mousepad
Add Koha community repository
Add Koha software channel into
Ubuntu. Here we add old stable version of Koha. We can define which
version to install at the time of adding the repository. Visit the Koha Wiki for details. Apply the following two commands one by one:
wget -O- http://debian.koha-community.org/koha/gpg.asc | sudo apt-key add -
Update the software repository
sudo apt update
sudo apt update
Install MariaDB server
sudo apt install -y mariadb-server
Assign Root password for MariaDB
If
password asks during the installation process, enter the password in
the window. Apply following command, if the password window did not
appear during the installation,
sudo mysqladmin -u root password newpass [Replace 'newpass']
Install Koha
The following command will install the latest release of Koha.
sudo apt install -y koha-common
Server configuration
In this step, need to edit network information like domain name and port numbers.
sudo mousepad /etc/koha/koha-sites.conf
Here I change the port number of the Koha staff client to 8080. Find the following line in the file and make changes.
INTRAPORT="8080"
Koha instance creation
Apply the following commands to create Apache configuration files.
sudo a2enmod rewrite
sudo a2enmod cgi
sudo service apache2 restart
Create a Koha instance with the name library.
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 mousepad /etc/apache2/ports.conf
Copy-paste following line below Listen 80
Listen 8080
Restart Apache,
sudo service apache2 restart
Enable modules and sites
sudo a2dissite 000-default
sudo a2enmod deflate
sudo a2ensite library
sudo service apache2 restart
Setup the library
After the successful installation, need to create initial parameters (e.g. branch, item type, superuser creation etc) to start with Koha. We need to open the web interface of Koha and start the configuration of Koha to start.Restart Memcached service to open Koha web installer.
sudo service memcached restart
Open the following link in the web browser to open the staff client of Koha and set up the library,
http://127.0.1.1:8080
Enter into the Koha staff client using the Database username and password of koha_library. It can find from the file, /etc/koha/sites/library/koha-conf.xml. Apply the following file in a terminal.
sudo mousepad /etc/koha/sites/library/koha-conf.xml
Search (Ctrl+F) for the segment MySQL in the text editor. Note down the database username and password and log into Koha web installer.
if the koha have no export database
sudo mousepad /etc/koha/sites/library/koha-conf.xml
change the digit '0' to '1'
<backup_db_via_tools>1</backup_db_via_tools>
Change Koha default master password (Optional)
The
password for the Koha database name was created during the installation
process. The user can change the Koha database password. See the
following link,
Reference
Comments
Post a Comment