This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
instalasi:home [2019/08/20 11:56] admin_simralwiki |
instalasi:home [2019/11/21 20:39] (current) admin_simralwiki |
||
|---|---|---|---|
| Line 10: | Line 10: | ||
| * Java Runtime Environment (JRE) minimal versi 7 | * Java Runtime Environment (JRE) minimal versi 7 | ||
| * Sistem Operasi Linux atau Microsoft Windows | * Sistem Operasi Linux atau Microsoft Windows | ||
| + | |||
| + | Aplikasi SIMRAL bisa diinstal dengan menggunakan 2 metode: | ||
| + | |||
| + | * Instalasi secara manual | ||
| + | * Instalasi menggunakan Docker | ||
| + | |||
| + | Metode instalasi dengan menggunakan Docker lebih disarankan karena jauh lebih mudah dan bisa menggunakan sistem operasi apapun dengan syarat telah terinstal Docker Engine. | ||
| ===== Instalasi secara manual ===== | ===== Instalasi secara manual ===== | ||
| Line 108: | Line 115: | ||
| Untuk setiap tahun anggaran, aplikasi SIMRAL memiliki 3 skema database: | Untuk setiap tahun anggaran, aplikasi SIMRAL memiliki 3 skema database: | ||
| - | * **lived_sikd_kabkota_xxxx** : database framework aplikasi | ||
| - | * **sikd_kabkota_xxxx** : database SIMRAL | ||
| - | * **sikd_kabkota_xxxx_log** : database log SIMRAL | ||
| + | * **lived_sikd_kabkota_xxxx** : database framework aplikasi | ||
| + | * **sikd_kabkota_xxxx** : database SIMRAL | ||
| + | * **sikd_kabkota_xxxx_log** : database log SIMRAL | ||
| Setiap skema diatas tersedia dalam dalam bentuk mysql-dump dalam paket source code SIMRAL. Untuk restore setiap skema database bisa dilakukan melalui terminal mysql dengan perintah berikut, dengan terlebih dahulu masuk ke folder tempat file-file tersebut diatas: | Setiap skema diatas tersedia dalam dalam bentuk mysql-dump dalam paket source code SIMRAL. Untuk restore setiap skema database bisa dilakukan melalui terminal mysql dengan perintah berikut, dengan terlebih dahulu masuk ke folder tempat file-file tersebut diatas: | ||
| Line 126: | Line 133: | ||
| source lived_sikd_kabkota_xxxx.sql | source lived_sikd_kabkota_xxxx.sql | ||
| </code> | </code> | ||
| + | |||
| <code> | <code> | ||
| CREATE DATABASE sikd_kabkota_2020; | CREATE DATABASE sikd_kabkota_2020; | ||
| Line 131: | Line 139: | ||
| source sikd_kabkota_xxxx.sql | source sikd_kabkota_xxxx.sql | ||
| </code> | </code> | ||
| + | |||
| <code> | <code> | ||
| CREATE DATABASE sikd_kabkota_2020_log; | CREATE DATABASE sikd_kabkota_2020_log; | ||
| Line 137: | Line 146: | ||
| </code> | </code> | ||
| - | === Konfigurasi SIMRAL ==== | + | === Konfigurasi SIMRAL === |
| Terdapat 2 file yang perlu dikonfigurasi atau dibuat, yaitu: | Terdapat 2 file yang perlu dikonfigurasi atau dibuat, yaitu: | ||
| - | * **cfg/config_map.xml** : File mapping antara tahun anggaran dan file konfigurasi | ||
| - | * **cfg/appl_config_xxxx.php** : File konfigurasi tahun anggaran | ||
| - | Berikut adalah contoh file ''cfg/config_map.xml'' : | + | * **cfg/config_map.xml** : File mapping antara tahun anggaran dan file konfigurasi |
| + | * **cfg/appl_config_xxxx.php** : File konfigurasi tahun anggaran | ||
| + | Berikut adalah contoh file ''cfg/config_map.xml'' : | ||
| <code> | <code> | ||
| <?xml version="1.0" encoding="iso-8859-1" ?> | <?xml version="1.0" encoding="iso-8859-1" ?> | ||
| <config_map> | <config_map> | ||
| - | <item> | + | <item> |
| - | <title>2020</title> | + | <title>2020</title> |
| <cfg_file>appl_config_2020.php</cfg_file> | <cfg_file>appl_config_2020.php</cfg_file> | ||
| <default>1</default> | <default>1</default> | ||
| Line 155: | Line 165: | ||
| </code> | </code> | ||
| - | Sedangkan contoh file ''cfg/appl_config_xxxx.php'' seperti berikut : | + | Sedangkan contoh file ''cfg/appl_config_xxxx.php'' seperti berikut : |
| <code> | <code> | ||
| <?php | <?php | ||
| Line 162: | Line 173: | ||
| * | * | ||
| * @file appl_config.php | * @file appl_config.php | ||
| - | * @modul LIVED PHP Application Framework Configuration | + | * @modul LIVED PHP Application Framework Configuration |
| * @author Agus | * @author Agus | ||
| * @version LIVED V.1.0 | * @version LIVED V.1.0 | ||
| Line 168: | Line 179: | ||
| * @description Variabel-variabel konfigurasi dasar LIVED-Application Framework | * @description Variabel-variabel konfigurasi dasar LIVED-Application Framework | ||
| */ | */ | ||
| - | + | ||
| - | # Konfigurasi ADODB koneksi ke database application framework | + | # Konfigurasi ADODB koneksi ke database application framework |
| // ADODB Database Driver | // ADODB Database Driver | ||
| - | $db_type = "mysql"; | + | $db_type = "mysql"; |
| - | + | ||
| // ADODB Database Host | // ADODB Database Host | ||
| $db_host = "simralweb-db"; | $db_host = "simralweb-db"; | ||
| - | | + | |
| // ADODB Database User | // ADODB Database User | ||
| $db_user = "root"; | $db_user = "root"; | ||
| - | | + | |
| // ADODB Database Password | // ADODB Database Password | ||
| $db_pswd = "simral@d0ck3R"; | $db_pswd = "simral@d0ck3R"; | ||
| - | | + | |
| // Application Framework Database | // Application Framework Database | ||
| $db_appl = "lived_sikd_2020"; | $db_appl = "lived_sikd_2020"; | ||
| - | |||
| # Setting directory | # Setting directory | ||
| Line 194: | Line 204: | ||
| // Contoh untuk sistem operasi microsoft windows: (gunakan DOUBLE backslash untuk pemisahan direktori) | // Contoh untuk sistem operasi microsoft windows: (gunakan DOUBLE backslash untuk pemisahan direktori) | ||
| $base_path = "/var/www/html/simral"; | $base_path = "/var/www/html/simral"; | ||
| - | | + | |
| // URL LIVED-Application Framework, alamat url untuk mengakses LIVED | // URL LIVED-Application Framework, alamat url untuk mengakses LIVED | ||
| $web_path = "http://localhost/simral"; | $web_path = "http://localhost/simral"; | ||
| - | | + | |
| // Direktori data database mysql untuk keperluan backup | // Direktori data database mysql untuk keperluan backup | ||
| // $mysql_data_path = "/var/lib/mysql/"; | // $mysql_data_path = "/var/lib/mysql/"; | ||
| // $mysql_data_path = "D:\\AppServ\\MySQL\\data"; | // $mysql_data_path = "D:\\AppServ\\MySQL\\data"; | ||
| - | + | ||
| // Logo aplikasi di sebelah kiri (logo institusi) | // Logo aplikasi di sebelah kiri (logo institusi) | ||
| // Sebaiknya berformat GIF dengan transparansi, ukuran maksimal sekitar tinggi 80 pixel, lebar 80 pixel | // Sebaiknya berformat GIF dengan transparansi, ukuran maksimal sekitar tinggi 80 pixel, lebar 80 pixel | ||
| $header_logo_left = "images/logo.gif"; | $header_logo_left = "images/logo.gif"; | ||
| - | + | ||
| // Titel aplikasi | // Titel aplikasi | ||
| - | $header_application_title = "Sistem Informasi Perencanaan, Penganggaran dan Pelaporan"; | + | $header_application_title = "Sistem Informasi Perencanaan, Penganggaran dan Pelaporan"; |
| - | + | ||
| // Nama institusi 1 | // Nama institusi 1 | ||
| $header_title = "Pemerintah Kabupaten/Kota"; | $header_title = "Pemerintah Kabupaten/Kota"; | ||
| Line 217: | Line 227: | ||
| // Cakupan wilayah aplikasi | // Cakupan wilayah aplikasi | ||
| $kode_wilayah = "3510"; | $kode_wilayah = "3510"; | ||
| - | | + | |
| // Jumlah record/baris untuk tampilan form list | // Jumlah record/baris untuk tampilan form list | ||
| $record_per_page = 20; | $record_per_page = 20; | ||
| - | | + | |
| // Jasper Report Server | // Jasper Report Server | ||
| $jasper_server_address = "simralweb-report"; | $jasper_server_address = "simralweb-report"; | ||
| $jasper_server_port = 9999; | $jasper_server_port = 9999; | ||
| $jasper_dir = $base_path."\\modul\\sikd_2018"; | $jasper_dir = $base_path."\\modul\\sikd_2018"; | ||
| - | | + | |
| // Awalan phrase object id (harus angka!) | // Awalan phrase object id (harus angka!) | ||
| $object_model_pre_id = "9829"; | $object_model_pre_id = "9829"; | ||
| - | | + | |
| $default_latitude = "-6.752847"; | $default_latitude = "-6.752847"; | ||
| $default_longitude = "111.040011"; | $default_longitude = "111.040011"; | ||
| - | | + | |
| $enable_obj_log = true; | $enable_obj_log = true; | ||
| $log_db_type = "mysql"; | $log_db_type = "mysql"; | ||
| Line 239: | Line 249: | ||
| $log_db_name = "sikd_2020_log"; | $log_db_name = "sikd_2020_log"; | ||
| ?> | ?> | ||
| - | |||
| </code> | </code> | ||
| === Test Aplikasi SIMRAL === | === Test Aplikasi SIMRAL === | ||
| - | Gunakan browser untuk membuka aplikasi SIMRAL dengan alamat <code>http://<server_ip>/simral</code> | + | Gunakan browser untuk membuka aplikasi SIMRAL dengan alamat |
| - | Pada halaman login masukan user: ''admin'' dan password: ''#simr@lbppt'' | + | |
| - | Apabila berhasil akan muncul halaman awal aplikasi SIMRAL. | + | <code> |
| + | http://<server_ip>/simral | ||
| + | </code> | ||
| + | |||
| + | Pada halaman login masukan user: ''admin'' dan password: ''#s1mr@lbppt''. Apabila berhasil akan muncul halaman awal aplikasi SIMRAL. | ||
| === Konfigurasi Modul Aplikasi === | === Konfigurasi Modul Aplikasi === | ||
| - | Aplikasi SIMRAL didesain agar tiap modul bisa memiliki koneksi database masing-masing. Untuk itu perlu dilakukan konfigurasi koneksi pada tiap-tiap modul dengan cara melalui modul Administrator, menu Setup Aplikasi --> Modul | + | Aplikasi SIMRAL didesain agar tiap modul bisa memiliki koneksi database masing-masing. Untuk itu perlu dilakukan konfigurasi koneksi pada tiap-tiap modul dengan cara melalui modul Administrator, menu Setup Aplikasi –> Modul |
| + | |||
| + | {{:instalasi:list_modul.png?nolink&800x330}} | ||
| + | |||
| + | Kemudian klik pada nama salah modul, setelah muncul tampilan view modul, klik pada tombol edit pada toolbar sehingga muncul tampilan berikut: | ||
| + | |||
| + | {{:instalasi:edit_modul.png?nolink&800x403}} | ||
| + | |||
| + | Sesuaikan nama database host, user dan password, kemudian klik tombol simpan. Lakukan prosedur tersebut untuk semua modul. | ||
| === Jasper Report Server === | === Jasper Report Server === | ||
| + | |||
| + | Pastikan file lib/jasper_report/run_jasperserver memiliki attribute executable, jika belum gunakan perintah berikut: | ||
| + | |||
| + | <code> | ||
| + | sudo chmod +x /var/www/html/simral/lib/jasper_report/run_jasperserver | ||
| + | </code> | ||
| + | |||
| + | Untuk menjalankan Jasper Report Server gunakan perintah berikut: | ||
| + | |||
| + | <code> | ||
| + | cd /var/www/html/simral/lib/jasper_report | ||
| + | ./run_jasperserver | ||
| + | </code> | ||
| + | |||
| + | Jasperserver akan berhenti bila terminal ditutup. Untuk menjalankan jasperserver setiap kali sever di restart, isikan perintah diatas pada file ''/etc/rc.local'' | ||
| + | |||
| + | ===== Instalasi menggunakan Docker ===== | ||
| + | |||
| + | Kebutuhan teknis untuk instalasi SIMRAL dengan metode Docker adalah: | ||
| + | |||
| + | * Docker Engine minimal versi 18.06 | ||
| + | * Docker Compose | ||
| + | |||
| + | Sebelum melakukan instalasi, perlu dipersiapkan folder-folder tempat menyimpan data aplikasi SIMRAL agar bersifat persistent. Perintah berikut dengan asumsi pengguna memiliki home direktori ''/home/simral''. | ||
| + | |||
| + | <code> | ||
| + | cd ~ | ||
| + | mkdir docker-simral-web | ||
| + | mkdir docker-simral-web/simral-data | ||
| + | mkdir docker-simral-web/simral-data/cfg | ||
| + | mkdir docker-simral-web/simral-data/images | ||
| + | mkdir docker-simral-web/simral-data/mysql | ||
| + | </code> | ||
| + | |||
| + | Setelah folder-folder tersebut tersedia gunakan perintah berikut untuk instalasi SIMRAL: | ||
| + | |||
| + | <code> | ||
| + | cd docker-simral-web | ||
| + | curl -sSL https://simral.bppt.go.id/docker-simral-web/docker-compose.yaml> docker-compose.yaml | ||
| + | docker-compose up -d | ||
| + | </code> | ||
| + | |||
| + | Pastikan semua container berjalan dengan perintah berikut: | ||
| + | |||
| + | <code> | ||
| + | docker ps | ||
| + | </code> | ||
| + | |||
| + | yang akan menampilkan daftar container yang berjalan | ||
| + | |||
| + | <code> | ||
| + | CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | ||
| + | 4d95f45fa7e0 repo.ptik.bppt.go.id:5000/ptik/simral-web-app:1.0.0 "docker-php-entrypoi…" 22 hours ago Up 22 hours 0.0.0.0:82->80/tcp simralweb-app_1 | ||
| + | 77119d1811b5 phpmyadmin/phpmyadmin "/docker-entrypoint.…" 22 hours ago Up 22 hours 0.0.0.0:83->80/tcp simralweb-phpmyadmin_1 | ||
| + | 9dd15726854f repo.ptik.bppt.go.id:5000/ptik/simral-web-jasper:1.0.0 "/usr/bin/supervisord" 22 hours ago Up 22 hours 9999/tcp simralweb-report_1 | ||
| + | cb296af123e6 mysql:5.6 "docker-entrypoint.s…" 22 hours ago Up 22 hours 3306/tcp simralweb-db_1 | ||
| + | </code> | ||