Enabling multiple instances is very helpful for maintaining different Koha instances on a single installation. Library instances will function as watertight compartments and be easy to maintain, separate libraries. Here are the steps to install multiple instances:
Add two different port numbers for the new Koha instance. Open the following Apache configuration file to add the port number.
Apply the following command to check that the intended ports are free to use (here we check 8081 and 8082):
sudo ss -tlnp | grep ':8081'
Add two new port numbers.
sudo mousepad /etc/apache2/ports.conf
Verify the existing port numbers assigned to the running Koha instance.
Add two new ports below the existing port numbers, for example,
Listen 8081
Listen 8082
Save and close the file.
sudo mousepad /etc/apache2/ports.conf
Verify the existing port numbers assigned to the running Koha instance.
Add two new ports below the existing port numbers, for example,
Listen 8081
Listen 8082
Save and close the file.
Create the new Koha instance
The default instance name is library. Assign a new instance name as you like, e.g. library1. Apply the following command to create the new instance,
sudo koha-create --create-db library1
Add the port numbers to the Koha new instance virtual host file. The virtual host of the new instance is available in a new folder inside the sites-available folder. Open the following file and change the instance name to your own.
sudo mousepad /etc/apache2/sites-available/library1.conf
Change the ServerName of the Staff Client and OPAC, depending on whether it's a domain name-based or IP-based installation (if it's a local installation). If it's a local installation, add localhost to see the change.
Save and close the file.
Restart the Apache server to take effect the changes.
sudo systemctl restart apache2
Open the Koha staff client and the OPAC of the new instance. Copy the following URL into the browser address bar,
Staff Client: localhost:8081
Restart the Apache server to take effect the changes.
sudo systemctl restart apache2
Open the Koha staff client and the OPAC of the new instance. Copy the following URL into the browser address bar,
Staff Client: localhost:8081
Online catalogue: localhost:8082
Open the Staff client and proceed with the web installer or restore the database backup that you have. Populate the data.
Zebra rebuild
To apply the Zebra rebuild command, give the new instance name,
Find Koha's new instance configuration file located in /etc/koha/sites/library1
To open it, apply the following command,
sudo mousepad /etc/koha/sites/library1/koha-conf.xml
Enable the Plack (optional) and other services, including a backup mechanism.

is there a possibility of installing koha in your website (bought through bluehost) and uploading the data into it?
ReplyDeleteYou can find a hosting service with the option of executing commands. Consider the pricing also.
Delete