Difference between revisions of "Instalasi Senayan"

From OnnoWiki
Jump to navigation Jump to search
 
(53 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==
 +
 
 +
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
 
Siapkan dependencies
  
  # apt-get install apache2 mysql-server libmysqlclient15-dev libphp-adodb libgd2-xpm libgd2-xpm-dev \
+
  sudo su
  php5-mysql php5-gd php5-curl php-pear
+
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
  
Download source code Senayan dari Web dari
+
sudo update-alternatives --config php
  
http://senayan.diknas.go.id/web/
 
http://senayan.diknas.go.id/web/?q=node/1
 
  
Copykan source code senayan ke folder Web
+
Edit
  
  # cp senayan3-stable5.tar.gz /var/www/
+
  vi /etc/php/8.2/apache2/php.ini
# cd /var/www
+
vi /etc/php/8.2/cli/php.ini
  
Buka source code senayan
+
Masukan di file php.ini, parameter berikut,
  
  # tar zxvf senayan3-stable5.tar.gz
+
  extension=yaz.so
  
Siapkan database MySQL
+
Restart Apache
  
  # mysql -u root -p
+
  /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:
 
  password:
  mysql> create database senayan;
+
  create database senayan;
  mysql> GRANT ALL PRIVILEGES ON senayan.* TO 'senayanuser'@'localhost' IDENTIFIED BY 'password_senayanuser';
+
  GRANT ALL PRIVILEGES ON senayan.* TO 'senayanuser'@'localhost' IDENTIFIED BY 'password_senayanuser';
  mysql> GRANT ALL PRIVILEGES ON senayan.* TO 'senayanuser' IDENTIFIED BY 'password_senayanuser';
+
  GRANT ALL PRIVILEGES ON senayan.* TO 'senayanuser' IDENTIFIED BY 'password_senayanuser';
  mysql> quit
+
  quit
 +
 
 +
Bagi anda yang masih belajar di LAN lokal, dengan asumsi password root 123456, dapat menggunakan
  
Masukan template database ke MySQL
+
mysql -u root -p123456
  
  # mysql -u root -p senayan < /var/www/senayan3-stable5/sql/install/senayan.sql
+
  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
  
Edit konfigurasi Web Senayan
+
Restart,
  
  # vi /var/www/senayan3-stable5/sysconfig.inc.php
+
  sudo systemctl restart mariadb
 +
sudo systemctl status mariadb
  
define('DB_HOST', 'localhost');
+
==Install SLiMS via Web==
define('DB_PORT', '3306');
 
define('DB_NAME', 'senayan');
 
define('DB_USERNAME', 'senayanuser');
 
define('DB_PASSWORD', 'password_senayanuser');
 
  
 
Lakukan
 
Lakukan
  
  # chown -Rf www-data.www-data /var/www/senayan3-stable5
+
  chown -Rf www-data.www-data /var/www/html/slims
  
 
Akses ke Web Digital Library Senayan Melalui
 
Akses ke Web Digital Library Senayan Melalui
  
  http://localhost/senayan3-stable5/index.php
+
  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
  
username admin
 
password admin
 
  
 +
Akses Admin
  
 +
http://ip-address/slims/admin/
 +
http://192.168.0.189/slims/admin/
 +
http://192.168.3.16/slims/admin/
  
 
==Pranala Menarik==
 
==Pranala Menarik==
  
 
* [[Linux Howto]]
 
* [[Linux Howto]]
 +
* [[Tip Membangun Server Sendiri]]

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