CARA RE-INSTALASI SPSE 4.3 BUAT LATIHAN ATAU SIMULASI SPSE 4.3 CENTOS 7
Ok Gaeesss ….. Sobat Pengelola LPSE di seluruh Indonesia, kali ini kami Pengelola LPSE Kabupaten Lombok Tengah akan sedikit berbagi tentang pengetahuan kami, bagaimana cara menginstallasi Sistem Pengadaan Secara Elektronik (SPSE) Versi 4.3 untuk Latihan sehari-hari dengan tidak bermaksud sedikit pun mengurangi kewenangan Mas2 dan Mba2 Tim ITO LKPP dalam menjalankan tugas Instalasi SPSE ke LPSE seluruh Indonesia.
Ok Gaess… saya asumsikan Temen2 sudah memiliki 1 (satu) unit server selain server Production SPSE, yang telah terhubung internet dengan OS Centos 7.
LANGKAH PERSIAPAN
Lakukan Install httpd
sudo yum install httpd
sudo systemctl enable httpd.service
sudo systemctl restart httpd.service
sumber : https://www.linode.com/docs/web-servers/apache/install-and-configure-apache-on-centos-7/
Lakukan Install PHP 7
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install yum-utils
yum-config-manager --enable remi-php70
yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo php-pgsql
php -v
sumber : https://tecadmin.net/install-postgresql-server-centos/
Lakukan Install PostgreSQL minimal versi 10
rpm -Uvh https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm
yum install postgresql10-server postgresql10
/usr/pgsql-10/bin/postgresql-10-setup initdb
systemctl start postgresql-10.service
systemctl enable postgresql-10.service
su - postgres -c "psql"
CREATE USER epns password 'epns';
\q
exit
sudo -u postgres createdb -O epns epns_latihan
Copas backup database SPSE Latihan letakkan di folder home
sudo -u postgres pg_restore -Fc -v -d epns_latihan /home/epns_latihan.backup
sumber : https://tecadmin.net/install-postgresql-server-centos/
mkdir /home/appserv
mkdir /home/file
mkdir /home/file/file_prod
mkdir /home/file/file_latihan
copykan semua paket di SPSE Production di folder /usr/local/src/
ke folder /usr/local/src/ di SPSE Latihan.
copikan folder /home/appserv/spse di SPSE Production ke folder /home/appserv/spselat di SPSE Latihan
sumber : http://kloxo.web.id/?p=44
LANGKAH INSTALASI SPSE 4.3 LATIHAN ATAU SIMULASI SPSE 4.3
Rename file /etc/httpd/conf/httpd.conf
mv /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.old
nano /etc/httpd/conf/httpd.conf
Copas script ini :
ServerRoot "/etc/httpd"
Listen 80
Include conf.modules.d/*.conf
User apache
Group apache
ServerAdmin root@localhost
<Directory />
AllowOverride none
Require all denied
</Directory>
DocumentRoot "/var/www/html"
<Directory "/var/www">
AllowOverride None
# Allow open access:
Require all granted
</Directory>
<Directory "/var/www/html">
Options +Indexes +FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
<Files ".ht*">
Require all denied
</Files>
ErrorLog "logs/error_log"
LogLevel warn
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog "logs/access_log" combined
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
</IfModule>
<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>
<IfModule mime_module>
TypesConfig /etc/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</IfModule>
AddDefaultCharset UTF-8
<IfModule mime_magic_module>
MIMEMagicFile conf/magic
</IfModule>
EnableSendfile on
IncludeOptional conf.d/*.conf
Alias /latihan43 /home/appserv/spselat
Alias /file_latihan /home/file/file_latihan
Alias /file_prod /home/file/file_prod
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
ProxyTimeout 600
ProxyPass /latihan43 http://localhost:9009/latihan43 retry=0
ProxypassReverse /latihan43 http://localhost:9009/latihan43 retry=0
SetOutputFilter DEFLATE
DeflateBufferSize 65536
DeflateCompressionLevel 9
DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
DeflateMemLevel 9
DeflateWindowSize 15
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch "Windows 98" gzip-only-text/html
BrowserMatch "MSIE [45]" gzip-only-text/html
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \.(?:gif|jpeg|jpe|jpg|png|ico|t?gz|zip|rar|pdf|doc|xls|dat)$ no-gzip dont-vary
LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
CustomLog /var/log/httpd/deflate_log deflate
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
<VirtualHost *:80>
LogLevel warn
CustomLog /var/log/httpd/access.log combined
ServerAdmin lpseloteng.helpdesk@gmail.com
DocumentRoot /var/www/html
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log combined
<directory "/var/www/html">
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
DirectoryIndex index.php
</directory>
RedirectMatch ^/$ /latihan43/
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript application/x-httpd-php
SetInputFilter DEFLATE
SetOutputFilter DEFLATE
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.simulasi.lpse.lomboktengahkab.go.id
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<IfModule mod_evasive20.c>
DOSHashTableSize 6194
DOSPageCount 25
DOSSiteCount 80
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 10
</IfModule>
CTRL+X
Y
Enter
httpd -t
Kalo sudah OK … Lanjutkan
systemctl restart httpd
cd /usr/local/src/
tar -xzvf modsecurity265.tar.gz
cd /usr/local/src/modsecurity265/curl-7.28.1/
./configure
make
make install
cd ../modsecurity-apache_2.6.5/
./configure –with-apxs=/usr/sbin/apxs
make
make install
/usr/sbin/setsebool httpd_can_network_connect true
systemctl restart httpd
setsebool -P httpd_can_network_connect 1
yum install ntp ntpd -y
ntpdate -u 0.pool.ntp.org
date
nano /home/appserv/spselat/webapp/conf/application.conf
Edit bagian ini saja :
http.path=/latihan43
db.url=jdbc:postgresql://localhost:5432/epns_latihan
http.port=9009
Jangan lupa SIMPAN
cd /home/appserv/spselat
Edit file spse4 pada bagian ini saja :
JAVA_HOME=/usr/local/src/jdk1.8.0
SPSE4_HOME=/home/appserv/spselat
Jangan lupa SIMPAN
chmod 755 spse4
Sekarang coba start Aplikasi SPSE 4.3 Latihannya
./spse4 start
Tunggu sebentar
netstat -tupln | grep java
Kalo sudah muncul port 9009
Lakukan ini :
yum install lynx -y
lynx localhost
Kalo sudah bisa loading, silahkan coba akses di browser kesayangan Anda …
Untuk Update Jaim, silahkan Gaess komunikasi dengan PIC masing-masing ya… atau kunjungi LPSE Support
Semoga menjadi pengingat kitah semua…. Kalo masih belum Up silahkan isi di kolom komentar.
Terima kasih Gaess.. semoga bermanfaat.
kalo file modsecurity265.tar di folder /src tidak ada, gmn pak?
Di versi 4.3 ngga dibutuhkan lagi mod_security
yth admin web rumahlpse.com, mohon ijin bolehkan saya latihan spse43 di https://www.simulasi.lpse.lomboktengahkab.go.id/latihan43/
Boleh
ijin tanya, bagaimana cara mereset pasword PPE di server alikasi latihan..
Kami punya backup database spse lama tahun 2015, apakah bisa di gunakan di spse 4.3 ini
Izin mas
mau coba instal versi latihan, tapi “pgdg-centos10-10-2.noarch.rpm” link nya sudah tidak bisa diakses. apa ada cara lain mas?