Difference between revisions of "Instalasi Senayan"

From OnnoWiki
Jump to navigation Jump to search
 
(48 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
 +
 
 +
sudo update-alternatives --config php
  
Download [[source code]] [[Senayan]] dari [[Web]] dari
 
  
http://senayan.diknas.go.id/web/
+
Edit
http://senayan.diknas.go.id/web/?q=node/1
 
  
Copykan [[source code]] senayan ke folder [[Web]]
+
vi /etc/php/8.2/apache2/php.ini
 +
vi /etc/php/8.2/cli/php.ini
  
cp senayan3-stable14-patch1.tar.gz /var/www/
+
Masukan di file php.ini, parameter berikut,
cd /var/www
 
  
Buka [[source code]] [[senayan]]
+
extension=yaz.so
  
tar zxvf senayan3-stable14-patch1.tar.gz
+
Restart Apache
mv senayan3-stable14 senayan
 
  
Siapkan [[database]] [[MySQL]]
+
/etc/init.d/apache2 reload
  
  # mysql -u root -p
+
  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:
 
  create database senayan;
 
  create database senayan;
Line 30: Line 120:
 
  quit
 
  quit
  
Bagi anda yang masih belajar, ada baiknya menggunakan
+
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
  
# mysql -u root -p
+
==Install SLiMS via Web==
password:
+
 
create database senayan;
+
Lakukan
GRANT ALL PRIVILEGES ON senayan.* TO 'senayan'@'localhost' IDENTIFIED BY 'senayan';
 
GRANT ALL PRIVILEGES ON senayan.* TO 'senayan' IDENTIFIED BY 'senayan';
 
quit
 
  
 +
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/senayan/install/senayan.sql
+
  http://ip-address/slims/install/index.php
  mysql -u senayan -psenayan senayan < /var/www/senayan/install/sample_data.sql
+
  http://192.168.0.189/slims/install/index.php
  
Edit konfigurasi Web Senayan
+
Klik
  
  # vi /var/www/senayan/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/senayan
+
==Akses SLiMS==
  
Akses ke Web Digital Library Senayan Melalui
+
Akses Web
  
  http://localhost/senayan/index.php
+
  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==

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