Dokumen ini adalah panduan kepada agensi bagi Pemasangan Sistem e-Pelanggan JPA
- Apache telah dikonfigurasi (
DocumentRoot: /var/www/epelanggan
) - Muat turun kod sumber melalui pautan di atas
- Unzipkan pada
/var/www/epelanggan
#!/bin/bash | |
# | |
# Fresh tuning for XAMPP | |
# This scripts highly customize from https://github.com/h5bp/server-configs-apache | |
# | |
# Installation | |
# 1. Download this scripts and put tuning-xampp.sh on your XAMPP root (i.e C:\xampp) | |
# 2. Open Git Bash, chmod a+x tuning-xampp.sh | |
# 3. sh tuning-xampp.sh domain path - Example: sh tuning-xampp.sh apps.jpa.gov.my "C:/www" | |
# 4. Check Apache config by running: apache/bin/httpd -t |
<?php | |
/* | |
* Requirement: PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0 | |
* Ubuntu: | |
* apt-get install php5-intl | |
* | |
* RedHat: | |
* yum install libicu libicu-devel.x86_64 | |
*/ |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Login Page</title> | |
<!-- Bootstrap core CSS --> | |
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet"> |
#!/bin/bash | |
PHPMY="phpmyadmin" | |
OLDPHPMY=$PHPMY-$(date +%F-%H) | |
echo 'Check PMA latest release' | |
TARBALL_URL=$(curl -s https://api.github.com/repos/phpmyadmin/phpmyadmin/releases/latest 2>&1 | grep -oP '(?<="tarball_url":).*?[^\\],' | tr -d ",\"") | |
echo "Downloading $TARBALL_URL..." |
#!/usr/bin/env bash | |
ENV="production" | |
USER="hariadi" | |
SQLUSER="hariadi" | |
SQLPASS="rahsia" | |
HHVM=true | |
LANG=("ms_MY") | |
POSTGRESQL=false |
php artisan generate:migration create_users_table --fields="ic:string,name:string,email:string:unique,organization_id:integer:nullable,phone:string:nullable,position:string:nullable,grade:smallinteger:nullable,appointment_at,appointment_at_psd," | |
php artisan generate:migration create_organizations_table --fields="parent_id:integer:nullable,name:string,director_id:integer," | |
php artisan generate:migration create_applications_table --fields="user_id:integer,title:string,purpose:text:nullable,country:string:nullable,going_at,return_at,options:text:nullable,status:default('false'):index,approved_by:integer:index," | |
<?php | |
$agencies = [ | |
'38829' => 'Jabatan Perdana Menteri' | |
'38830' => 'Kementerian Kewangan' | |
'38831' => 'Kementerian Pengangkutan' | |
'38833' => 'Kementerian Kerja Raya' | |
'38834' => 'Kementerian Perdagangan Antarabangsa Dan Industri' | |
'38835' => 'Kementerian Sumber Manusia' | |
'38836' => 'Kementerian Perumahan Dan Kerajaan Tempatan' |