My Blog List


Friday, March 17, 2023

How to install In Out Management System in Ubuntu connect with Koha

                   How to install In Out Management System in Ubuntu  connect with Koha



Latest In-Out management Installation Process.

INSTALLATION OF PHP 7.4

Open terminal and execute commands.

sudo apt-get update
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt -y install php7.4
sudo apt -y install php7.4-{bcmath,bz2,intl,gd,mbstring,mysql,zip}
sudo apt-get -y install libapache2-mod-php7.4
sudo service apache2 restart
php –v

Setup the OPAC folder

First, Download  the package of the software which contains two main files and copy it into the Home directory.

Download the stable version inout

Now we have to copy the inout directory into OPAC htdocs directory.

Open the terminal in the Home directory and apply the following commands.

sudo su

sudo mv /home/your home directory name/inout /usr/share/koha/opac/htdocs
cd /usr/share/koha/opac/htdocs

sudo chmod 777 -R inout 

                        or

Download Stable Version 5.2 of the package from the Release Panel in the koha htdocs directory

cd /usr/share/koha/opac/htdocs

wget https://github.com/omkar2403/inout/archive/refs/tags/V5.2.zip

Unzip the file

unzip V5.2.zip

Change the name of the directory

 mv inout-5.2 inout

Now remove the zip file as it is not required

rm V5.2.zip

Change the permission for inout directory

sudo chmod 777 -R inout

OR

Direct download inout in opac htdocs directory.

Run the commands

sudo apt install git

cd /usr/share/koha/opac/htdocs

git clone --recursive https://github.com/omkar2403/inout.git
sudo chmod 755 -R inout
sudo chown www-data:www-data -R inout

Setup the database:

Open the terminal and apply the following commands.

sudo su
mysql -uroot -p
[Enter MySQL Root password]
create database osmeinout;
grant all privileges on osmeinout.* to 'root'@'localhost'identified by' mysql root';
flush privileges;
Quit;

Where ‘root’ is the username and ‘mysqlroot’ is the password.
                            OR
You can create separate database & user for In Out Management system.

CREATE database osmeinout;
CREATE USER 'osmeinout'@'localhost' IDENTIFIED BY 'osme@123';
GRANT ALL PRIVILEGES ON *.* TO 'osmeinout'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
quit;

Where ‘osmeinout’ is the username and ‘osme@123’ is the password &  osmeinout is the database .

Inout sample datas restore 

Copy the inout.sql sample database file. 

File location  inout/ DB/ inout.sql (copy this file) and Paste to koha home directory.

Now restore the sample database which is present in the ‘inout’ directory by applying
the following command in the terminal (Open Terminal in ‘inout’ directory).

sudo su

mysql -uroot -p osmeinout < inout.sql

                      or

sudo su

mysql -uroot -p osmeinout < /usr/share/koha/opac/htdocs/inout/DB/inout.sql 
[Enter MySQL Root password]

Replace your MySqL password and koha database name in the file dbconn.php located in ‘inout/functions/dbconn.php’ directory at the line number 3 & 5. ( If you have changed the names of any other files apart from these two files please change them as shown in the image below)

sudo mousepad /usr/share/koha/opac/htdocs/inout/functions/dbconn.php



Restart Apache

sudo systemctl reload apache2 && sudo systemctl restart apache2

The system is ready now.
You can access it at address given below:
                or
Your ip eg:  http://192.168.1.10/inout/login.php

How to use it?
Logins:
There are 3 users for In Out System.

1. Operator (Controls Display Screen / main screen)
username : user
password : 123456

2. Admin of library (Controls Single library / location admin panel and reports)
username : admin
password : library

3. Master ( Controls all the library / location admin panel and reports)
username : master
password : superuser

Information courtesy:  Mr. Omkar Kakeru

Information courtesy:  Lib Power Tech

No comments:

Post a Comment