Month: June 2016

  • Catatan Instalasi SPSE v3.6sp3 dan v4.1.0

    Biar tidak lupa, hasil .bash_history yang telah dirapikan, tuts detail versi sebelum nya silakan merujuk ke Instalasi SPSE 3.6 SP2 dan SPSE 4.0.

    yum update
    yum -y install psmisc httpd-devel gcc-c++ pcre-devel libxml2-devel httpd postgresql-server make mod_security mod_evasive unzip rsync lynx elinks vim tcptraceroute nmap htop lshw iperf httperf pktstat
    yum install nano
    cd /usr/local/src
    unzip SourceSPSE.zip
    cd SourceSPSE

    rpm -ivh epel-release-6-8.noarch.rpm
    unzip apache2-centos.zip
    unzip jce_policy-8.zip
    tar -zxvf jdk-8u60-linux-x64.tar.gzip
    mv jdk1.8.0_60 jdk1.8.0
    mv UnlimitedJCEPolicyJDK8/* ../jdk1.8.0/jre/lib/security/
    cat settingapache.txt | cat >> /etc/httpd/conf/httpd.conf

    unzip play-1.3.3-prod.zip
    mv play-1.3.3-prod ../play-1.3.3

    mkdir -p /home/file/file_latihan
    mkdir -p /home/file/file_prod
    mkdir -p /home/appserv

    mv epns-lat-3.6sp3 /home/appserv/
    mv spse-lat-4.1 /home/appserv/

    /etc/init.d/postgresql initdb
    /etc/init.d/postgresql start
    chkconfig postgresql on
    chkconfig httpd on

    /etc/init.d/iptables stop
    chkconfig iptables off
    sed -i “s/enforcing/disabled/g” /etc/selinux/config

    su – postgres
    psql
    create user epns password ‘epns’;
    \q
    createdb -U postgres -O epns epns_latihan;
    psql -U postgres -d epns_latihan -f /usr/local/src/SourceSPSE/epns_lat_barsel.sql
    exit

    nano /var/lib/pgsql/data/pg_hba.conf
    /etc/init.d/postgresql restart

    nano /etc/hosts
    nano /etc/httpd/conf/httpd.conf
    nano /home/appserv/epns-lat-3.6sp3/spse3
    nano /home/appserv/epns-lat-3.6sp3/webapp/WEB-INF/classes/application.properties
    nano /home/appserv/spse-lat-4.1/spse4
    nano /home/appserv/spse-lat-4.1/webapp/conf/application.conf
    chmod 755 /home/appserv/epns-lat-3.6sp3/spse3
    chmod 755 /home/appserv/spse-lat-4.1/spse4
    /etc/init.d/httpd restart
    cd /home/appserv/epns-lat-3.6sp3/
    ./spse3 start

    cd /home/appserv/spse-lat-4.1/
    ./spse4 start

    catatan tambahan :

    /usr/sbin/setsebool httpd_can_network_connect true
    service httpd restart

    grep -rl ‘SecDefaultAction’ /etc/httpd/*
    nano /etc/httpd/conf/httpd.conf
    service httpd restart