Instalasi Senayan: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 38: Line 38:
  apt-get install net-tools apache2 mariadb-client mariadb-server libphp-adodb libgd3 libgd-dev \
  apt-get install net-tools apache2 mariadb-client mariadb-server libphp-adodb libgd3 libgd-dev \
  php-mysql php-gd php-curl php-pear
  php-mysql php-gd php-curl php-pear
Downgrade ke PHP 8
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update


Switch ke PHP 8
Switch ke PHP 8
Line 54: Line 47:
  sudo systemctl restart apache2
  sudo systemctl restart apache2
  sudo systemctl status apache2
  sudo systemctl status apache2
==Install YAZ==
Update Repository
apt update
apt install software-properties-commonsudo
add-apt-repository ppa:ondrej/php
apt update
grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/*
Step 1 - Install the PHP versions
In this case, PHP 7.0 and 7.1 will be installed
# PHP 7.0
apt-get install php7.0 php7.0-cli php7.0-dev php7.0-intl
# PHP 7.1
apt-get install php7.1 php7.1-cli php7.1-dev php7.0-intl
Step 2 - Install PEAR
yum install php-pear
pecl channel-update pecl.php.net
apt-get install libyaz-dev
pear upgrade --force
update-alternatives --config php-config
pecl install yaz
pear config-show | grep ext_dir
If necessary, move the extension to the correct PHP extension folder and add the extension to the corresponding php.ini file.
extension=yaz.so
Restart Apache
/etc/init.d/apache2 reload




Line 84: Line 112:
  quit
  quit


Masukan template [[database]] ke [[MySQL]]
mysql -u senayan -psenayan senayan < /var/www/html/slims/install/senayan.sql
mysql -u senayan -psenayan senayan < /var/www/html/slims/install/sampledata.sql
Restart,
Restart,


Line 93: Line 117:
  sudo systemctl status mariadb   
  sudo systemctl status mariadb   


Edit konfigurasi Web Senayan
Akses Web
 
vi /var/www/html/slims/sysconfig.inc.php
 
define('DB_HOST', 'localhost');
define('DB_PORT', '3306');
define('DB_NAME', 'senayan');
define('DB_USERNAME', 'senayanuser');
define('DB_PASSWORD', 'password_senayanuser');
 
Untuk anda yang masih belajar ada baiknya
 
define('DB_HOST', 'localhost');
define('DB_PORT', '3306');
define('DB_NAME', 'senayan');
define('DB_USERNAME', 'senayan');
define('DB_PASSWORD', 'senayan');


Lakukan
Lakukan
Line 118: Line 126:


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


  username admin
  username admin

Revision as of 04:45, 13 August 2023

Tampaknya DIKNAS mulai mengembangkan software open source untuk digital library dengan nama Senayan

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

Install dependency

Siapkan dependencies

sudo su
apt update
apt upgrade
apt-get install net-tools apache2 mariadb-client mariadb-server libphp-adodb libgd3 libgd-dev \
php-mysql php-gd php-curl php-pear

Switch ke PHP 8

sudo update-alternatives --config php

Restart,

sudo systemctl restart apache2
sudo systemctl status apache2

Install YAZ

Update Repository

apt update
apt install software-properties-commonsudo
add-apt-repository ppa:ondrej/php
apt update
grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/*

Step 1 - Install the PHP versions In this case, PHP 7.0 and 7.1 will be installed

  1. PHP 7.0

apt-get install php7.0 php7.0-cli php7.0-dev php7.0-intl

  1. PHP 7.1

apt-get install php7.1 php7.1-cli php7.1-dev php7.0-intl Step 2 - Install PEAR yum install php-pear

pecl channel-update pecl.php.net
apt-get install libyaz-dev
pear upgrade --force
update-alternatives --config php-config
pecl install yaz
pear config-show | grep ext_dir

If necessary, move the extension to the correct PHP extension folder and add the extension to the corresponding php.ini file.

extension=yaz.so

Restart Apache /etc/init.d/apache2 reload


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 senayan;
GRANT ALL PRIVILEGES ON senayan.* TO senayan@localhost IDENTIFIED BY 'senayan';
GRANT ALL PRIVILEGES ON senayan.* TO 'senayan' IDENTIFIED BY 'senayan';
quit

Restart,

sudo apt install mariadb-server
sudo systemctl status mariadb   

Akses Web

Lakukan

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

Akses ke Web Digital Library Senayan Melalui

http://192.168.0.189/slims/install/index.php
username admin
password admin

Pranala Menarik