How to Install SLiMS (Senayan Library Management System) 9 Bulian on Ubuntu 18.04

SLiMS is a web-based software for the Library Management System (Senayan Library Management System – SLiMS), which has many features with the aim of making it easy for libraries and librarians to carry out their work quickly and easily.

Some of the features include:

· Online Public Access Catalog (OPAC) with thumbnail document image support (for images of book covers), Simple Search and Advanced Search mode · Digital contents/files (PDF, DOC, RTF, XLS, PPT, Video, Audio, etc.): attachment in each bibliographic record is supported · Documents record detail in MODS (Metadata Object Description Schema) XML format · Documents record detail in JSON-LD format with schema.org · RSS (Really Simple Syndication) XML format for OPAC · OAI-PMH (Open Archives Initiative Protocol for Metadata Harvesting) in Dublin Core format for metadata harvesting purposes · and many more

SLiMS 9 Bulian was just released on February 1, 2020 with the addition of Urdu, Turkish and Russian for interface, security enhancements, and other features added.

Bulian or ironwood (Eusideroxylon zwageri Teijsm & Binn) or iron wood is a woody tree and is a typical plant of the island of Borneo. Since the release of Senayan3-stable14, SLiMS developers have used the unique Indonesian flora for the code name for the release of SLiMS as a form of appreciation and pride for Indonesia.

*0.Software and tools used*

The tools used in this tutorial are:

· Ubuntu 18.04 64bit VPS · The slims.getbox.xyz subdomain · Apache 2.4 · PHP 7.3 · MariaDB 10.4

*1.Install Apache*

This tutorial uses Ubuntu 18.04 and virtual host / subdomain slims.getbox.xyz for SLiMS.

Install Apache on Ubuntu

[INPUT]

1 2 sudo apt install apache2 sudo systemctl status apache2  

Create a virtual host

[INPUT]

1 2 cd /etc/apache2/sites-available sudo nano slims.getbox.xyz.conf

The contents of the virtual host configuration file

[INPUT]

1 2 3 4 5 6 7 8 9 10 11     ServerName slims.getbox.xyz     DocumentRoot /var/www/slims.getbox.xyz              Options Indexes FollowSymLinks MultiViews         AllowOverride All         Require all granted          ErrorLog /var/log/apache2/slims.getbox.xyz_error.log     CustomLog /var/log/apache2/slims.getbox.xyz_requests.log combined   

Create a directory for virtual host

[INPUT]

1 sudo mkdir /var/www/slims.getbox.xyz

Activate virtual host

[INPUT]

1 2 3 sudo a2ensite slims.getbox.xyz.conf sudo systemctl restart apache2 sudo systemctl status apache2

*2.Install PHP*

Install the PPA repository for PHP 7.3

[INPUT]

1 2 3 4 sudo apt install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt upgrade    

Install PHP along with the required extensions

[INPUT]

1 sudo apt install php7.3 php7.3-cli php7.3-common php7.3-mbstring php7.3-gd php7.3-intl php7.3-xml php7.3-mysql php7.3-zip php7.3-dev php-pear yaz libyaz5 libyaz5-dev libnet-z3950-zoom-perl

Install the Yaz library

[INPUT]

1 sudo pecl install yaz

Add extension = yaz.so in the php.ini configuration

[INPUT]

1 sudo nano /etc/php/7.3/apache2/php.ini

Configuring extensions in php.ini

[INPUT]

1 2 3 4 5 6 … ; extension=yaz.so ;extension=bz2 ;extension=curl …

Restart apache2 service

[INPUT]

1 2 sudo systemctl restart apache2 sudo systemctl status apache2

*3.Install MariaDB*

Install the MariaDB repository

[INPUT]

1 2 sudo apt-key adv –fetch-keys ‘https://mariadb.org/mariadb_release_signing_key.asc’ sudo add-apt-repository ‘deb [arch=amd64,arm64,ppc64el] http://mirror.biznetgio.com/mariadb/repo/10.4/ubuntu bionic main’

Install MariaDB server

[INPUT]

1 2 sudo apt install mariadb-server sudo systemctl status mariadb  

Secure the MariaDB installation

[INPUT]

1 2 3 4 5 6 7 8 9 sudo mysql_secure_installation   Enter current password for root (enter for none): ENTER Switch to unix_socket authentication [Y/n] n Change the root password? [Y/n] y Remove anonymous users? [Y/n] y Disallow root login remotely? [Y/n] y Remove test database and access to it? [Y/n] y   Reload privilege tables now? [Y/n] y    

Login to the mysql shell

Create a database of slims and their user

[INPUT]

1 2 3 4 5 SET GLOBAL log_bin_trust_function_creators = 1; CREATE DATABASE slims; CREATE USER ‘slims’@’localhost’ IDENTIFIED BY ‘rahasia’; GRANT ALL PRIVILEGES ON slims.* TO ‘slims’@’localhost’; FLUSH PRIVILEGES;  

*4.Install SLiMS*

Download and extract SLiMS 9 Bulian

[INPUT]

1 2 3 4 cd wget -c https://github.com/slims/slims9_bulian/releases/download/v9.0.0/slims9_bulian-9.0.0.tar.gz tar xzvf slims9_bulian-9.0.0.tar.gz sudo rsync -av slims9_bulian-9.0.0/ /var/www/slims.getbox.xyz/  

Change owner and directory permissions

[INPUT]

1 2 sudo chown -R $USER:www-data /var/www/slims.getbox.xyz   sudo chmod -R 775 /var/www/slims.getbox.xyz

Browse the domain/subdomain used for SLiMS. Click Get Started to start installing SLiMS.

Install SLiMS 9 Bulian – Getting Started

Check system requirements, whether they have been met. If it has not been met, configure it again. If everything is fulfilled click ‘Next’ to continue.

Install SLiMS 9 Bulian – System Requirements

Click Install SLiMS for installation.

Install SLiMS 9 Bulian – What do you want?

Enter the database, username, and password that was created before. Click Test Connection to test the database.

Install SLiMS 9 Bulian – Database information

If it works, click Connection OK. Next

Install SLiMS 9 Bulian – Connection database OK

Choose whether to install Sample Data to learn about SLiMS. Then enter the username and password for the SLiMS administrator. Then click Run the installation.

Install SLiMS 9 Bulian – Sample data & Super user profile

If the SLiMS install is successfully displayed the message ‘New SLiMS successfully installed.

Install SLiMS 9 Bulian – SLiMS successful installed

Remove the install directory

[INPUT]

1 2 cd /var/www/slims.getbox.xyz sudo rm -rf install

Browse the SLiMS domain/subdomain to display the front page

SLiMS 9 Bulian

*5.Install SSL Let’s Encrypt*

Install SSL from Let’s Encrypt for HTTPS

Install certbot

[INPUT]

1 2 3 4 sudo apt install curl sudo curl -O https://dl.eff.org/certbot-auto sudo mv certbot-auto /usr/local/bin/certbot-auto sudo chmod 0755 /usr/local/bin/certbot-auto

SSL request for subdomain slims.getbox.xyz

[INPUT]

1 sudo certbot-auto –apache -d slims.getbox.xyz

If you have questions to install the dependency package, answer y

Enter an email address for notifications if SSL is nearing expiration

[INPUT]

1 Enter email address (used for urgent renewal and security notices) (Enter ‘c’ to cancel): hai@musaamin.web.id

Approval of Terms of Service, answer A

[INPUT]

1 2 3 4 Please read the Terms of Service at https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must agree in order to register with the ACME server at https://acme-v02.api.letsencrypt.org/directory – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – (A)gree/(C)ancel: A

Share email to EFF, can be y or n

[INPUT]

1 2 3 Would you be willing to share your email address with the Electronic Frontier Foundation, a founding partner of the Let’s Encrypt project and the non-profit organization that develops Certbot? We’d like to send you email about our work encrypting the web, EFF news, campaigns, and ways to support digital freedom. – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – (Y)es/(N)o: N  

Select the redirect method to HTTPS, answer 2

[INPUT]

1 2 3 4 5 6 Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access. – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – 1: No redirect – Make no further changes to the webserver configuration. 2: Redirect – Make all requests redirect to secure HTTPS access. Choose this for new sites, or if you’re confident your site works on HTTPS. You can undo this change by editing your web server’s configuration. – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – Select the appropriate number [1-2] then [enter] (press ‘c’ to cancel): 2  

SSL/HTTPS installed successfully

[INPUT]

1 2 3 4 Congratulations! You have successfully enabled https://slims.getbox.xyz   You should test your configuration at: https://www.ssllabs.com/ssltest/analyze.html?d=slims.getbox.xyz

Browse the SLiMS domain to test whether HTTPS is active

SLiMS 9 Bulian with HTTPS

Good luck 🙂

Leave a Reply

Your email address will not be published.