Difference between revisions of "Instalasi Senayan"

From OnnoWiki
Jump to navigation Jump to search
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
Tampaknya [[DIKNAS]] mulai mengembangkan [[software]] [[open source]] untuk [[digital library]] dengan nama [[Senayan]]
+
Tampaknya [[DIKNAS]] mengembangkan [[software]] [[open source]] untuk [[digital library]] dengan nama [[Senayan]] Library Management System di singkat SLiMS.
  
 
==Setup IP Statik==
 
==Setup IP Statik==
Line 28: Line 28:
 
                 - to: default
 
                 - to: default
 
                   via: 192.168.3.1
 
                   via: 192.168.3.1
 +
 +
 +
Edit
 +
 +
vi /etc/netplan/00-installer-config-wifi.yaml
 +
 +
Pastikan
 +
 +
network:
 +
  wifis:
 +
    wlp2s0:
 +
      addresses:
 +
        - 192.168.3.16/24
 +
      nameservers:
 +
        addresses: [8.8.8.8, 8.8.4.4]
 +
      routes:
 +
        - to: default
 +
          via: 192.168.3.1
 +
      access-points:
 +
        "IDontLikeSand15":
 +
          password: "Supersecure123"
 +
  version: 2
 +
  renderer: NetworkManager
  
 
==Install dependency==
 
==Install dependency==
Line 36: Line 59:
 
  apt update
 
  apt update
 
  apt upgrade
 
  apt upgrade
  apt-get install net-tools apache2 mariadb-client mariadb-server libphp-adodb libgd3 libgd-dev \
+
  apt -y install software-properties-common net-tools
  php-mysql php-gd php-curl php-pear
+
  add-apt-repository ppa:ondrej/php
 +
 
 +
apt update
 +
apt upgrade
  
Downgrade ke PHP 7
+
==Install Apache==
  
sudo apt update
+
Install Apache, MariaDB, PHP
sudo apt install software-properties-common
 
sudo add-apt-repository ppa:ondrej/php
 
sudo apt update
 
sudo apt install php7.4 php7.4-mysql php7.4-gd php7.4-curl
 
  
Switch ke PHP 7
+
apt-get -y install apache2 mariadb-client mariadb-server libphp-adodb libgd3 libgd-dev \
 +
php-mysql php-gd php-curl php-pear php php-cli php-dev php-intl php-mbstring
 +
 
 +
pecl channel-update pecl.php.net
 +
apt -y install yaz libyaz-dev
 +
 
 +
pear upgrade --force
 +
update-alternatives --config php-config
 +
pecl install yaz
 +
pear config-show | grep ext_dir
 +
 
 +
Switch ke PHP 8
  
 
  sudo update-alternatives --config php
 
  sudo update-alternatives --config php
 +
 +
 +
Edit
 +
 +
vi /etc/php/8.2/apache2/php.ini
 +
vi /etc/php/8.2/cli/php.ini
 +
 +
Masukan di file php.ini, parameter berikut,
 +
 +
extension=yaz.so
 +
 +
Restart Apache
 +
 +
/etc/init.d/apache2 reload
 +
 +
sudo systemctl restart apache2
 +
sudo systemctl status apache2
  
 
==Install SLiMS==
 
==Install SLiMS==
Line 74: Line 124:
 
  mysql -u root -p123456
 
  mysql -u root -p123456
  
  create database senayan;
+
  create database slims;
  GRANT ALL PRIVILEGES ON senayan.* TO senayan@localhost IDENTIFIED BY 'senayan';
+
  GRANT ALL PRIVILEGES ON slims.* TO slims@localhost IDENTIFIED BY 'slims';
  GRANT ALL PRIVILEGES ON senayan.* TO 'senayan' IDENTIFIED BY 'senayan';
+
  GRANT ALL PRIVILEGES ON slims.* TO 'slims' IDENTIFIED BY 'slims';
  quit
+
  QUIT
 +
 
 +
Restart,
 +
 
 +
sudo systemctl restart mariadb
 +
sudo systemctl status mariadb
 +
 
 +
==Install SLiMS via Web==
 +
 
 +
Lakukan
 +
 
 +
chown -Rf www-data.www-data /var/www/html/slims
  
Masukan template [[database]] ke [[MySQL]]
+
Akses ke Web Digital Library Senayan Melalui
  
  mysql -u senayan -psenayan senayan < /var/www/html/slims/install/senayan.sql
+
  http://ip-address/slims/install/index.php
  mysql -u senayan -psenayan senayan < /var/www/html/slims/install/sampledata.sql
+
  http://192.168.0.189/slims/install/index.php
  
Edit konfigurasi Web Senayan
+
Klik
  
  vi /var/www/html/slims/sysconfig.inc.php
+
  Get Started
  
  define('DB_HOST', 'localhost');
+
  Pastikan
define('DB_PORT', '3306');
+
  GD : installed
define('DB_NAME', 'senayan');
+
  Mbstring : installed
define('DB_USERNAME', 'senayanuser');
+
  Gettext : installed
  define('DB_PASSWORD', 'password_senayanuser');
+
  PDO MySQL : installed
 +
  YAZ : installed
 +
  Next
  
Untuk anda yang masih belajar ada baiknya
+
Install SLiMS
 +
Text Connection
 +
Connection OK, Next
 +
  username admin
 +
  password admin
 +
Run Installation
  
define('DB_HOST', 'localhost');
+
Di CLI
define('DB_PORT', '3306');
 
define('DB_NAME', 'senayan');
 
define('DB_USERNAME', 'senayan');
 
define('DB_PASSWORD', 'senayan');
 
  
Lakukan
+
rm -Rf /var/www/html/slims/install/
  
chown -Rf www-data.www-data /var/www/slims
+
==Akses SLiMS==
  
Akses ke Web Digital Library Senayan Melalui
+
Akses Web
  
http://localhost/slims/index.php
 
 
  http://ip-address/slims/index.php
 
  http://ip-address/slims/index.php
 +
http://192.168.0.189/slims/index.php
 +
http://192.168.3.16/slims/index.php
 +
 +
 +
Akses Admin
  
  username admin
+
  http://ip-address/slims/admin/
  password admin
+
  http://192.168.0.189/slims/admin/
 +
http://192.168.3.16/slims/admin/
  
 
==Pranala Menarik==
 
==Pranala Menarik==

Latest revision as of 05:45, 15 August 2023

Tampaknya DIKNAS mengembangkan software open source untuk digital library dengan nama Senayan Library Management System di singkat SLiMS.

Setup IP Statik

Edit

vi /etc/netplan/00-installer-config.yaml

Pastikan,

# This is the network config written by 'subiquity'
# network:
#   ethernets:
#     enp0s3:
#       dhcp4: true
# version: 2

network:
    version: 2
    renderer: networkd
    ethernets:
        enp0s3:
            addresses:
                - 192.168.3.16/24
            nameservers:
                addresses: [8.8.8.8, 8.8.4.4]
            routes:
                - to: default
                  via: 192.168.3.1


Edit

vi /etc/netplan/00-installer-config-wifi.yaml 

Pastikan

network:
  wifis:
    wlp2s0:
      addresses:
        - 192.168.3.16/24
      nameservers:
        addresses: [8.8.8.8, 8.8.4.4]
      routes:
        - to: default
          via: 192.168.3.1
      access-points:
        "IDontLikeSand15":
          password: "Supersecure123"
  version: 2
  renderer: NetworkManager

Install dependency

Siapkan dependencies

sudo su
apt update
apt upgrade
apt -y install software-properties-common net-tools
add-apt-repository ppa:ondrej/php
apt update
apt upgrade

Install Apache

Install Apache, MariaDB, PHP

apt-get -y install apache2 mariadb-client mariadb-server libphp-adodb libgd3 libgd-dev \
php-mysql php-gd php-curl php-pear php php-cli php-dev php-intl php-mbstring
pecl channel-update pecl.php.net
apt -y install yaz libyaz-dev
pear upgrade --force
update-alternatives --config php-config
pecl install yaz
pear config-show | grep ext_dir

Switch ke PHP 8

sudo update-alternatives --config php


Edit

vi /etc/php/8.2/apache2/php.ini
vi /etc/php/8.2/cli/php.ini

Masukan di file php.ini, parameter berikut,

extension=yaz.so

Restart Apache

/etc/init.d/apache2 reload
sudo systemctl restart apache2
sudo systemctl status apache2

Install SLiMS

Download source code Senayan dari Web dari (semoga Web-nya masih hidup)

cd /usr/local/src
wget https://github.com/slims/slims9_bulian/releases/download/v9.6.1/slims9_bulian-9.6.1.tar.gz
tar zxvf slims9_bulian-9.6.1.tar.gz
mv slims9_bulian-9.6.1 /var/www/html/slims
chown -Rf www-data.www-data /var/www/html/slims/

Siapkan database MySQL jika di operasikan di Internet

mysql -u root -p
password:
create database senayan;
GRANT ALL PRIVILEGES ON senayan.* TO 'senayanuser'@'localhost' IDENTIFIED BY 'password_senayanuser';
GRANT ALL PRIVILEGES ON senayan.* TO 'senayanuser' IDENTIFIED BY 'password_senayanuser';
quit

Bagi anda yang masih belajar di LAN lokal, dengan asumsi password root 123456, dapat menggunakan

mysql -u root -p123456
create database slims;
GRANT ALL PRIVILEGES ON slims.* TO slims@localhost IDENTIFIED BY 'slims';
GRANT ALL PRIVILEGES ON slims.* TO 'slims' IDENTIFIED BY 'slims';
QUIT

Restart,

sudo systemctl restart mariadb 
sudo systemctl status mariadb

Install SLiMS via Web

Lakukan

chown -Rf www-data.www-data /var/www/html/slims

Akses ke Web Digital Library Senayan Melalui

http://ip-address/slims/install/index.php
http://192.168.0.189/slims/install/index.php

Klik

Get Started
Pastikan
  GD : installed
  Mbstring : installed
  Gettext : installed
  PDO MySQL : installed
  YAZ : installed
Next
Install SLiMS
Text Connection
Connection OK, Next
  username admin
  password admin
Run Installation

Di CLI

rm -Rf /var/www/html/slims/install/

Akses SLiMS

Akses Web

http://ip-address/slims/index.php
http://192.168.0.189/slims/index.php
http://192.168.3.16/slims/index.php


Akses Admin

http://ip-address/slims/admin/
http://192.168.0.189/slims/admin/
http://192.168.3.16/slims/admin/

Pranala Menarik