The In Out System is a reliable solution for managing user entries efficiently. Follow this step-by-step guide to install and configure it seamlessly.
1. Setting Up the PHP Environment
Begin by updating your package lists:
sudo apt-get update
Install the required dependencies and PHP modules:
sudo apt -y install software-properties-common
sudo apt-get -y install php php-{bcmath,bz2,intl,gd,mbstring,mysql,zip} libapache2-mod-php
Restart Apache for the changes to take effect:
sudo service apache2 restart
2. Downloading the Repository
Using Git (Recommended):
sudo apt-get install git
cd /usr/share/koha/opac/htdocs
sudo git clone --recursive https://github.com/omkar2403/inout.git
Manual Download:
Unzip and move the package:
unzip inout.zip
sudo mv inout /usr/share/koha/opac/htdocs
cd /usr/share/koha/opac/htdocs
Set proper permissions:
sudo chmod 755 -R inout/
3. Configuring the Database
Login to MySQL and create a new database:
mysql -uroot -p
create database lib;
grant all privileges on lib.* to 'admin'@'localhost';
flush privileges;
quit;
Restore the sample database:
cd /usr/share/koha/opac/htdocs/inout/DB/
sudo su
mysql -u admin -p lib < inout.sql
Edit dbconn.php
to update database connection details:
$servername = "localhost";
$username = "admin";
$password = "Admin@7676";
$db = "lib";
$koha = "koha_library";
$conn = mysqli_connect($servername, $username, $password, $db);
if (!$conn) {
die("Connection failed: " . mysqli_connect_error($conn));
}
Restart Apache:
sudo systemctl restart apache2
4. Accessing the System
Your In Out System is now live! Access it via: http://localhost/inout/login.php
Default Login Credentials
- Master: Username – master | Password – superuser
- Operator: Username – user | Password – 123456
- Library Admin: Username – admin | Password – library
Credit By –
Omkar Kakeru
Founder PlayTech