Difference between revisions of "Instalasi Senayan"

From OnnoWiki
Jump to navigation Jump to search
 
(27 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
  
Downgrade ke PHP 8
+
apt update
 +
apt upgrade
  
  sudo apt update  
+
==Install Apache==
  sudo apt install software-properties-common
+
 
  sudo add-apt-repository ppa:ondrej/php  
+
Install Apache, MariaDB, PHP
  sudo apt update
+
 
 +
  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
 
Switch ke PHP 8
Line 50: Line 84:
 
  sudo update-alternatives --config php
 
  sudo update-alternatives --config php
  
Restart,
+
 
 +
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 restart apache2
 
  sudo systemctl status apache2
 
  sudo systemctl status apache2
 
  
 
==Install SLiMS==
 
==Install SLiMS==
Line 79: 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==
  
Masukan template [[database]] ke [[MySQL]]
+
Lakukan
  
  mysql -u senayan -psenayan senayan < /var/www/html/slims/install/senayan.sql
+
  chown -Rf www-data.www-data /var/www/html/slims
mysql -u senayan -psenayan senayan < /var/www/html/slims/install/sampledata.sql
 
Restart,
 
  
sudo apt install mariadb-server
+
Akses ke Web Digital Library Senayan Melalui
sudo systemctl status mariadb 
 
  
Edit konfigurasi Web Senayan
+
http://ip-address/slims/install/index.php
 +
http://192.168.0.189/slims/install/index.php
  
vi /var/www/html/slims/sysconfig.inc.php
+
Klik
  
  define('DB_HOST', 'localhost');
+
  Get Started
define('DB_PORT', '3306');
 
define('DB_NAME', 'senayan');
 
define('DB_USERNAME', 'senayanuser');
 
define('DB_PASSWORD', 'password_senayanuser');
 
  
Untuk anda yang masih belajar ada baiknya
+
Pastikan
 +
  GD : installed
 +
  Mbstring : installed
 +
  Gettext : installed
 +
  PDO MySQL : installed
 +
  YAZ : installed
 +
Next
  
  define('DB_HOST', 'localhost');
+
  Install SLiMS
  define('DB_PORT', '3306');
+
  Text Connection
  define('DB_NAME', 'senayan');
+
  Connection OK, Next
define('DB_USERNAME', 'senayan');
+
  username admin
  define('DB_PASSWORD', 'senayan');
+
  password admin
 +
  Run Installation
  
Lakukan
+
Di CLI
  
  chown -Rf www-data.www-data /var/www/slims
+
  rm -Rf /var/www/html/slims/install/
  
Akses ke Web Digital Library Senayan Melalui
+
==Akses SLiMS==
  
http://192.168.0.189/slims/install/index.php
+
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