Difference between revisions of "Instalasi Senayan"

From OnnoWiki
Jump to navigation Jump to search
Line 3: Line 3:
 
Siapkan dependencies
 
Siapkan dependencies
  
  apt-get install apache2 mysql-server libmysqlclient15-dev libphp-adodb libgd2-xpm libgd2-xpm-dev \
+
  apt-get install apache2 mysql-server libmysqlclient-dev libphp-adodb libgd3 libgd-dev \
  php5-mysql php5-gd php5-curl php-pear
+
  php-mysql php-gd php-curl php-pear
  
 
Download [[source code]] [[Senayan]] dari [[Web]] dari (semoga Web-nya masih hidup)
 
Download [[source code]] [[Senayan]] dari [[Web]] dari (semoga Web-nya masih hidup)
  
  https://foss4lib.org/package/senayan/release/5-meranti
+
  cd /usr/local/src
  http://slims.web.id/web/?q=node/1
+
  wget https://github.com/slims/slims9_bulian/releases/download/v9.6.1/slims9_bulian-9.6.1.tar.gz
http://www.slims.web.id/download/slims5-meranti-update6.tar.gz
+
  tar zxvf slims9_bulian-9.6.1.tar.gz
http://www.slims.web.id/download/slims7-cendana-stable.tar.gz
+
  mv slims9_bulian-9.6.1 /var/www/html/slims
 
+
  chown -Rf www-data.www-data /var/www/html/slims/
  wget http://www.slims.web.id/download/slims7-cendana-stable.tar.gz
 
 
 
Copykan [[source code]] senayan ke folder [[Web]] & buka [[source code]]-nya
 
   
 
sudo su
 
cp slims7-cendana-stable.tar.gz /var/www/
 
cd /var/www/
 
tar zxvf slims7-cendana-stable.tar.gz
 
mv slims7_cendana-slims7-cendana slims
 
  chown -Rf www-data.www-data /var/www/slims
 
  
 
Siapkan [[database]] [[MySQL]]
 
Siapkan [[database]] [[MySQL]]
Line 41: Line 31:
 
  GRANT ALL PRIVILEGES ON senayan.* TO 'senayan' IDENTIFIED BY 'senayan';
 
  GRANT ALL PRIVILEGES ON senayan.* TO 'senayan' IDENTIFIED BY 'senayan';
 
  quit
 
  quit
 +
 +
GRANT ALL PRIVILEGES ON senayan.* TO senayan@localhost IDENTIFIED BY senayan;
 +
GRANT ALL PRIVILEGES ON senayan.* TO 'senayan' IDENTIFIED BY senayan;
 +
quit
 +
  
  

Revision as of 10:32, 13 August 2023

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

Siapkan dependencies

apt-get install apache2 mysql-server libmysqlclient-dev libphp-adodb libgd3 libgd-dev \
php-mysql php-gd php-curl php-pear

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

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


Masukan template database ke MySQL

mysql -u senayan -psenayan senayan < /var/www/slims/install/senayan.sql 
mysql -u senayan -psenayan senayan < /var/www/slims/install/sampledata.sql 

Edit konfigurasi Web Senayan

# vi /var/www/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

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

Akses ke Web Digital Library Senayan Melalui

http://localhost/slims/index.php
username admin
password admin


Pranala Menarik