Tuesday, February 18, 2020

installtion of koha linux command










Installation of Koha on Ubuntu

1.      Adding Koha Channel to Debian

It will install the current (latest) version of Koha. Apply following commands one by one

 Sudo su                             

Press Enter and type the password (password will not be visible) and again press Enter.

    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 -



2.   Update and upgrade the software

     apt-get update 
    
     apt-get upgrade


When prompted “Do you want to continue? [Y/n]”, Enter to continue.

           apt-get clean

3.   Installation of Koha package

  The following command will install the latest release of Koha

     sudo apt-get install koha-common

When prompted “Do you want to continue? [Y/n]”, Enter to continue

4.      Editing Network Information

    Define Koha Staff Interface and OPAC Interface ports (and domain names if necessary) at                  /etc/koha/koha-sites.conf

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

The command nanowill open the file in terminal for editing. For Staff Interface we may use the port 8080 as INTRAPORT and for OPAC Interface default port 80 can be used as OPACPORT.

So, change like INTRAPORT="8090"




5.      Installing MySQL Server

Install the Database (on same server); we are going to install mariaDB Server by following command:


sudo apt-get install mariadb-server

When prompted “Do you want to continue? [Y/n]”, Enter to continue.



  sudo apt-get install mariadb-client-10.1

  After completing run the MariaDB server installation again. It will install now.

     sudo apt-get install mariadb-server

  When prompted “Do you want to continue? [Y/n]”, Enter Y to continue.

                6.      Creating Apache Configuration files

          Apply following commands to create Apache configuration files.

     sudo a2enmod rewrite

     sudo a2enmod cgi

     sudo service apache2 restart


   7.      Creating Koha Instance

      Create a Koha instance with the name library.

      sudo koha-create --create-db library

               8.      Assign password for MariaDB root user

      Apply following commands one by one

      sudo mysql_secure_installation

     The current virsion of maridb comes with no default password. So when prompt for password, just press Enter and it will ask you to set new password. Type the password, retype the password for confirmation. Rest of the answers would be Yes and type Y and press Enter each time.


              9.      Listeningassigned ports

We have assigned 8080 port for the Koha staff client and 80 for OPAC.
                   Open the following file and Listen those ports

        sudo nano /etc/apache2/ports.conf
         Include the following line below Listen 80and save the file


          Include the following line below Listen 80and save the file

Listen 8090

Restart Apache Service.

sudo service apache2 restart

 10.      Enable modules and sites

Apply following commands one by one

sudo a2dissite 000-default

sudo a2enmod deflate

sudo a2ensite library

sudo service apache2 restart


11.      Running web installer

Go to your mozilla Firefox browser and copy paste the below link



Note:To retrieve Koha SuperUser’s username and password from koha-conf.xml file, run the following command at terminal.

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


Get the username and password from below part of the file:

<db_scheme>mysql</db_scheme>
<database>koha_library</database>
<hostname>localhost</hostname>
<port>3306</port>
<user>koha_library</user>
<pass>JkdfgrrowhQTK</pass>
<biblioserver>biblios</biblioserver>

12.       The installer itself prompts you to choose for setting up few basic configurations which lets you create a Library, Patron category, Item type, circulation Rule and a Admin user.

13.      For accessing OPAC, copy paste the below URL

                   http://127.0.1.1:80 (Online catalogue)

Note: Do not import any default values while running the web installer as the configuration must be done based on your requirement.








       





























No comments:

Post a Comment