0% found this document useful (0 votes)
18 views

Module Pimap System

Here are the key steps to start and stop services in ArcGIS Server Manager: To start a service: 1. Log in to ArcGIS Server Manager 2. Click Services 3. Select the service you want to start 4. Click the Start button To stop a service: 1. Log in to ArcGIS Server Manager 2. Click Services 3. Select the service you want to stop 4. Click the Stop button Services can be in one of three states - Stopped, Starting, or Started. The Start and Stop buttons allow you to manually control the state. Starting is useful after publishing or modifying a service, while stopping lets you take a service offline for

Uploaded by

abdul hadi jasni
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Module Pimap System

Here are the key steps to start and stop services in ArcGIS Server Manager: To start a service: 1. Log in to ArcGIS Server Manager 2. Click Services 3. Select the service you want to start 4. Click the Start button To stop a service: 1. Log in to ArcGIS Server Manager 2. Click Services 3. Select the service you want to stop 4. Click the Stop button Services can be in one of three states - Stopped, Starting, or Started. The Start and Stop buttons allow you to manually control the state. Starting is useful after publishing or modifying a service, while stopping lets you take a service offline for

Uploaded by

abdul hadi jasni
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 82

CONTENTS

ACEESS PHYSICAL SERVER PIMAP .......................................................................................................... 3


SERVER SPECIFICATION ...................................................................................................................... 3
SOFTWARE INFORMATION ................................................................................................................ 4
OPEN PORT INFORMATION................................................................................................................ 4
ACCEESS ARCGIS SERVER MANAGER AND LOCATION PATH ................................................................ 5
VIEWING A SERVCES IN MANAGER ................................................................................................... 6
STARTING AND STOPPING SERVICES ................................................................................................. 7
DELETING A SERVICES......................................................................................................................... 8
ARCGIS SERVER DIRECTORY PATH LOCATION ................................................................................... 9
ACCEESS ARCGIS DATASTORE AND LOCATION PATH ......................................................................... 11
ARCGIS DATASTORE DIRECTORY PATH LOCATION ......................................................................... 13
ACCESS ARCGIS WEB ADAPTOR ........................................................................................................... 16
ARCGIS WEB ADAPTOR: SERVER MANAGER ................................................................................... 16
ARCGIS WEB ADAPTOR: PORTAL FOR ARCGIS ................................................................................ 17
ACCESS PORTAL FOR ARCGIS ............................................................................................................... 18
PORTAL FOR ARCGIS FADERATE ...................................................................................................... 19
PORTAL FOR ARCGIS HOSTING SERVER ........................................................................................... 20
PORTAL FOR ARCGIS SSL ENABLE .................................................................................................... 21
PORTAL FOR ARCGIS MEMBERSHIP ................................................................................................. 21
PORTAL FOR ARCGIS DIRECTORY PATH LOCATION ......................................................................... 22
WEB SERVERS: INTERNET INFORMATION SERVICES ........................................................................... 23
DEFAULT WEB SITE FOLDER ............................................................................................................. 24
SECURE SOCKETS LAYER (SSL): BINDINGS ....................................................................................... 24
DATABASE SERVER: MICROSOFT SQL 2014 ......................................................................................... 27
ACCESS MS SQL 2014: SERVER MANAGEMENT STUDIO ................................................................. 27
MS SQL 2014 BACKUP PATH LOCATION .......................................................................................... 28
PUBLISHING DATA: ARCGIS DESKTOP TO ARCGIS SERVER ................................................................. 29
ADD NEW DATA FROM EXISTING ARCMAP ..................................................................................... 30
SHARE SERVICES TO ARCGIS SERVER FROM ARCMAP .................................................................... 36
PiMAP ADMINISTRATOR SYSTEM ........................................................................................................ 39
PiMAP ADMINISTRATOR BACK END CODE .......................................................................................... 45
PiMAP ADMINISTRATOR DATABASE CODE ......................................................................................... 57
BACKUP SYSTEM DATABSAE AND ARCGIS PRODUCT ......................................................................... 62

1
BASIC FULL BACUKUP SQL SERVER .................................................................................................. 62
BASIC FULL RESTORE SQL SERVER ................................................................................................... 67
AUTOMATE BASIC BACKUP .............................................................................................................. 69
BACKUP ARCGIS SERVER SITE .......................................................................................................... 73
RESTORE ARCGIS SERVER SITE ......................................................................................................... 76
PORTAL FOR ARCGIS BACKUP (WEBGISDR UTILITY) ....................................................................... 78
RESTORE PORTAL FOR ARCGIS......................................................................................................... 82

2
ACEESS PHYSICAL SERVER PIMAP

SERVER SPECIFICATION

This architecture provides an overview of overall system.

Physical Server

172.16.0.66

WINDOWS SERVER 2012 R2 STANDARD

Internal Network
Public Network

https://pimap.mbpp.gov.my:6443/arcgis/manager https://pimap.mbpp.gov.my:7443/arcgis
Public Network

Public Network

https://pimap.mbpp.gov.my/server/manager https://pimap.mbpp.gov.my/portal/home

https://pimap.mbpp.gov.my

3
SOFTWARE INFORMATION

The current software information provided to JABATAN PERANCANGAN PEMBANGUNAN are as


follows:

No Software Product Version Category

1 ArcGIS For Server 10.4.1


2 ArcGIS Data Store 10.4.1 Services
3 ArcGIS Web Adaptor 10.4.1
4 Portal For ArcGIS 10.4.1 Portal
5 Microsoft SQL 2014 Database
6 PiMAP System 1.0 Application

OPEN PORT INFORMATION

The current Port need to open in the Server are as follows:

No Software Product Port Category

1 ArcGIS For Server 6080,6443


2 ArcGIS DataStore 2443 Services
3 ArcGIS Web Adaptor 443
4 Portal For ArcGIS 7443 Portal
5 Microsoft SQL 1433 Database

4
ACCEESS ARCGIS SERVER MANAGER AND LOCATION PATH

 ArcGIS Server version 10.4.1 has been install on the GIS Server
 URL link for Accessing ArcGIS Server version 10.4.1:
https://pimap.mbpp.gov.my/server/manager

Figure 1: Accessing ArcGIS server Manager 10.4.1

 ArcGIS Server version 10.4.1 Current Username & Password during the installation and
configuration setup, in this situation our team has marge (Federate) two application which is
Portal for ArcGIS 10.4.1 and ArcGIS Server. The User must use the username & password by
using the Portal for ArcGIS 10.4.1 accessible.

Username: pimapadmin
Password:

5
VIEWING A SERVCES IN MANAGER

When you publish a map or image service, you may want a quick way to view it so you can verify that
the publishing process was successful. Although there are many ways to view a service, this topic lists
two quick methods you can use to check your service after publishing or during troubleshooting.

From Manager, you can launch your map or image service in a simple JavaScript-based web
application.

1. Log in to Manager.
2. Click Services.
3. Browse to your service and click the thumbnail image next to it. The service is launched in the
same simple web viewer window that you get with the Services Directory.

Figure 2: Viewing a services in manager

6
STARTING AND STOPPING SERVICES

Starting and stopping services are common actions you'll need to perform when administering ArcGIS
Server. For example, you may need to stop a service to change some of its properties and start it again
for the changes to take effect.

Starting a service

Starting a service makes it available for client access. When you start a service, the server instantiates
the minimum number of instances you specified. As clients request the service, the server returns an
available instance. If none are currently available, the server instantiates more instances to meet
demand until the maximum number of instances is reached. At this point, any new clients that make a
request for the service are placed in a queue for the next available instance.

Stopping a service

When you stop a service, the server immediately removes all instances of that service from the server.
This frees up any machine resources that were dedicated to the service. Clients that were using the
service may fail to work properly because the service is no longer available.

1. Open ArcGIS Server Manager and log in. If you need help with this step,
2. Click Services > Manage Services. The Manage Services module appears and reveals the Start
and Stop buttons. If the Stop button is greyed out, it means the service is currently
stopped. Conversely, if the Start button is greyed out, it means the service has already been
started and is currently running.
3. Click one of these commands. It is applied only to the service you selected in the module.

Figure 3: Starting and Stopping Services

7
DELETING A SERVICES

When you delete a service from ArcGIS Server, any client application using the service will no longer be
able to access it.

To delete a service from ArcGIS Server using Manager, follow these steps:

1. Open ArcGIS Server Manager and log in.


2. Click Services > Manage Services.
3. Locate your service in the Services module. If your service resides in a folder, navigate to that
folder and locate the service.
4. Click Delete. The service is deleted from your server.

Figure 4: Deleting a services

8
ARCGIS SERVER DIRECTORY PATH LOCATION

ArcGIS Server version 10.4.1 Directory Path installation:

 Drive C:\Program Files\ArcGIS\Server

Figure5: ArcGIS Server Path installation

ArcGIS Server version 10.4.1 Directory Path Keycodes:

 Drive C:\Program Files\ESRI\License10.4\sysgen


 *key code file needed during creating geodatabase

Figure 6: Key code Authorization location for Creating Enterprise Geodatabase

9
ArcGIS Server version 10.4.1 Directory Path Authorization key:

 Drive C:\PiMap\Authorization Key


 ArcGIS Server=ECP082327824

 Figure 7: Authorization Key for Activation ArcGIS Server

* Authorization key: file needed during activation ArcGIS Server

10
ACCEESS ARCGIS DATASTORE AND LOCATION PATH

ArcGIS Data Store is an application that lets user configure data storage for the hosting server used with
PIMAP ArcGIS portal. ArcGIS Data Store provides user with a convenient setup and configuration
experience that creates the following different types of data stores:

 Relational data store—Stores your portal's hosted feature layer data, including hosted feature
layers created as output from standard feature analysis tools run in the portal website or ArcGIS
Pro.
 Tile cache data store—Stores caches for user portal's hosted scene layers.
 Spatiotemporal big data store—Archives real-time observational data user can use with an
ArcGIS GeoEvent Server site that is federated with your portal. It also stores the results
generated using GeoAnalytics Tools run in the portal website or ArcGIS Pro

With ArcGIS Data Store, user can do the following:

 Publish large numbers of hosted feature layers.

Hosted feature layers that rely on the relational data store require a smaller memory footprint
to run, making it possible for you to publish many services with less hardware resources. When
user publish hosted feature layers, data is copied into the relational data store.

 Publish hosted scene layers to your portal.

If PHN portal's hosting server has a tile cache data store, user can publish hosted scene layers
from ArcGIS Pro to your portal or publish from scene layer packages directly in the portal web
site.

Note that publishing hosted scene layers from ArcGIS Pro also creates a feature layer. The
publisher determines whether the feature layer is a hosted feature layer or a feature layer that
references the data in the registered data source.

 Archive high volume, real-time observation data.

If user use ArcGIS GeoEvent Server to stream high volumes of real-time data, you can create a
spatiotemporal big data store and archive the GeoEvent observation data.

 Create backups of data stores automatically.

Backups ensure user can recover your data in the event of a disaster such as data corruption
or hardware failure. User can control when and where automatic backups of each data store
are created.

11
 Configure a failover data store for feature layer data and scene caches.

ArcGIS Data Store allows you to set up primary and standby relational data store machines, and
primary and standby tile cache machines. hosted feature layer and hosted scene layer tile
cache data is replicated from the primary machines to the standby machines, so if a primary
machine crashes, the standby machine can take its place with minimum downtime.

 Configure a highly available spatiotemporal big data store.

User can configure multiple spatiotemporal big data stores to balance data loads over multiple
machines and ensure availability of spatiotemporal data in the event of a machine failure.

 Perform analysis in Map Viewer.

portal's hosting server must use an ArcGIS Data Store relational data store to enable standard
feature analysis functionality in your portal. To use GeoAnalytics Tools, configure the hosting
server with a spatiotemporal big data store.

 Add files directly to Map Viewer.

Your portal's hosting server must use an ArcGIS Data Store relational data store to allow portal
members to add files to Map Viewer.

12
ARCGIS DATASTORE DIRECTORY PATH LOCATION

ArcGIS Data store 10.4.1 can verify by entering ArcGIS Server Manager, URL and Click on the Data store
menu tab.

 https://pimap.mbpp.gov.my/server/manager/site.html

Figure 8: Data store (managed database has been install for ArcGIS Server Manager

ArcGIS Data Store 10.4.1 Directory Path installation & Backup:

 Drive C:\arcgisdatastore
 Drive C:\arcgisdatastore\backup

Figure 9: Data Store 10.4.1 Directory Path

13
ArcGIS Data Store 10.4.1 Recovery Data store:

If user lose access to the data in your data store—for example, data store crashes or an editor deletes
the wrong data from a hosted feature layer—User can restore the data using backup files. The backup
files use for recovery are compressed. When restore the data, these files must be uncompressed to a
staging location. That means user need to have a staging location that can accommodate this data. By
default, the files are staged in your data directory.

 Restore a relational or tile cache data store after a crash


If the hardware stops functioning or the relational or tile cache data store is unavailable and
cannot be brought back online, install ArcGIS Data Store on a new machine and apply backup
files to the new installation using the restoredatastore utility. This re-creates the data store on
the new machine and keeps the data store registered with the existing GIS Server site.

1. Install ArcGIS Data Store on a new machine.

Do not proceed with configuration. Close the Data Store Configuration wizard when it opens
at the end of the installation.

2. Open a Command Prompt using the Run as Administrator option.


3. Run the restoredatastore utility from <ArcGIS Data Store installation
directory>\datastore\tools to restore the most recent backup of the relational or tile cache
data store.

Drive C:\Program Files\ArcGIS\DataStore\tools

Figure 10: Recover Data store from Crash

14
restoredatastore --store relational --target most-recent --source-loc
\\fortknox\backups\datastore --data-dir C:\arcgisdatastore --server-url
https://gisserver.domain.com:6443 --server-admin siteadmin --server-password MySApw

If the directory you specify with the --data-dir option does not already exist, the directory will
be created. If it does exist, you must have write access to it and it must be empty. If not, the
restore operation will fail.

4. Confirm that you want to restore the data store by typing yes.

15
ACCESS ARCGIS WEB ADAPTOR

 The ArcGIS Web Adaptor version must always match the version of its registered ArcGIS
Server site.
 Each ArcGIS Web Adaptor must have its own unique name; user cannot have two Web
Adaptors with the same name on a single web server. If a naming conflict is detected during
the installation, a warning message is displayed. user need to uninstall the earlier version with
the same name to resolve the conflict. Alternatively, user can change the name of one of the
Web Adaptors to proceed with the installation

ARCGIS WEB ADAPTOR: SERVER MANAGER

 ArcGIS Web Adaptor 10.4.1 name for ArcGIS Server Manager: server
Full URL after installing the Web Adaptor: https://pimap.mbpp.gov.my/server

 ArcGIS Web Adaptor 10.41 verifying checking on ArcGIS Server Manager


URL: https://pimap.mbpp.gov.my/server/manager/webadaptor.html

Figure 11: ArcGIS Web Adaptors verify for Server Manager

16
ARCGIS WEB ADAPTOR: PORTAL FOR ARCGIS

 ArcGIS Web Adaptor 10.4.1 name for Portal for ArcGIS: portal
Full URL after installing the Web Adaptor: https://pimap.mbpp.gov.my/portal

Figure 11: ArcGIS Web Adaptors verify for Portal

ArcGIS Web Adaptor 10.4.1 Directory Path installation:

 Drive C:\inetpub\wwwroot\server

Figure12: Path installation for ArcGIS Web Adaptor

17
ACCESS PORTAL FOR ARCGIS

 Portal for ArcGIS version 10.4.1 has been install on the server
 URL link for Accessing Portal for ArcGIS version 10.4.1:
https://pimap.mbpp.gov.my/portal/

Figure13: Accessing Portal for ArcGIS 10.4.1

 Portal for ArcGIS 10.4.1 Current Username & Password during the installation and
configuration setup, in this situation our team has marge (Federate) two application which is
Portal for ArcGIS 10.4.1 and ArcGIS Enterprise (Server). The User must use the username &
password by using the Portal for ArcGIS 10.4.1 accessible.

Username: portaladmin
Password:

18
PORTAL FOR ARCGIS FADERATE

 Portal for ArcGIS 10.4.1 Federate verify, we already set up the federation which user can
verify from entering the portal for ArcGIS, enter the organization tab menu and search the
server menu on the left panel or entering the fallowing URL:

https://pimap.mbpp.gov.my/portal/home/organization.html

Figure 14: Portal for ArcGIS Federate

19
PORTAL FOR ARCGIS HOSTING SERVER

 Portal for ArcGIS 10.4.1 enable Hosting server

Figure15: Portal for ArcGIS Hosting server enable

 Portal for ArcGIS 10.4.1 running and configuration only Allow access to the portal through
HTTPS only. Please make sure the Secure socket layer (SSL) if up to date.

20
PORTAL FOR ARCGIS SSL ENABLE

Figure 16: Portal for ArcGIS HTTPS enable

PORTAL FOR ARCGIS MEMBERSHIP

 Portal for ArcGIS 10.4.1 license Membership

Figure 17: Portal for ArcGIS Total Membership

21
PORTAL FOR ARCGIS DIRECTORY PATH LOCATION

Directory Path installation

 Drive C:\arcgisportal

Figure 18: Portal for ArcGIS installation path

22
WEB SERVERS: INTERNET INFORMATION SERVICES

IIS is a web server software package designed for Windows Server. It is used for hosting websites and
other content on the Web

 PiMAP Application is running on IIS web server

Figure 19: IIS web server

23
DEFAULT WEB SITE FOLDER
 C:\inetpub\wwwroot

Figure 20: Default web site path location

SECURE SOCKETS LAYER (SSL): BINDINGS


All PiMAP application including ArcGIS product is running on Https which need SSL for running in IIS
Current SSL: Provider COMODO CA Limited

Figure21: SSL expired date

24
Install your Wildcard SSL Certificate on IIS

Figure22: SSL installation

 Go to Start > Administrative Tools > Internet Information Services (IIS) Manager
 In the left menu, select the corresponding server name
 In the Features Pane, under Security, select Server Certificates
 In the Actions Pane, choose Complete Certificate Request
 Provide the location of the certificate

Note: Make sure that the name you give your Wildcard SSL Certificate (aka the friendly name)
includes an asterisk at the sub-domain level you’re attempting to encrypt (eg *.example.com).
Otherwise, you will not be able to bind the certificate properly.

25
Binding the Certificate

Figure23: SSL Bindings

 Start > Administrative Tools > Internet Information Services (IIS) Manager
 Go to Server Name > Sites > Your SSL-based site
 In the Actions Pane, choose Bindings
 In Site Bindings, if there is no existing https binding, choose Add and change type to HTTPS

Note: if there is already a https binding, select it and click Edit.

From the SSL Certificate drop down, choose the wildcard certificate that will be used for this site

26
DATABASE SERVER: MICROSOFT SQL 2014

Microsoft SQL Server is a relational database management system developed by Microsoft. As a


database server, it is a software product with the primary function of storing and retrieving data as
requested by PiMAP Application.

ACCESS MS SQL 2014: SERVER MANAGEMENT STUDIO

 To Access database Pimap User need to have login and password provide by database
administrator role

Figure24: MS SQL Server Management Studio

27
MS SQL 2014 BACKUP PATH LOCATION

Microsoft SQL 2014 Database Backup Path Directory

 C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\Backup\

Figure 25: Microsoft SQL Backup Path

28
PUBLISHING DATA: ARCGIS DESKTOP TO ARCGIS SERVER

All MXD format data are store in location

 C:\PiMap\MXD Version 4\MXD_SQL

Figure 26: MXD file path location

29
ADD NEW DATA FROM EXISTING ARCMAP

1. Open ArcMap and connect folder connection to data need to be added, make sure all data
are in GDB format

Figure 27: Folder Connection to Data

30
2. Connect to Database Connection

Figure 28: Database Connection

Database Platform: SQL Server

Instance: pimap.mbpp.gov.my or IP server

Authentication Type: Database Authentication

Database: Drop down and choose PiMAPGEOPORTAL database

31
3. Make Sure Connection are accepting and double click to the PiMAPGEOPORTAL database

Figure 28: Database Appear

4. Choose Feature Class category from the database ( Bahagian Jabatan) right click and click
import (Feature Class) Multiple or Single

Figure 29: Import feature class

32
5. Choose Data from connection folder to import insert the database connection

Figure 30: Import data from connection folder to sde

6. Once insert click OK and wait until the data finish to import inside the database connection
and check in the dataset

33
Figure 31: Check the import data

7. Once finish checking, drag the SDE data to Layer inside each category from MXD layer

Figure 32: Drag data to layer

8. Make sure the connection is source to datasetbase MS SQL to check, Right Click on selected
data layer > and view the data source is set to SQL > Save MXD

Figure 33: Layer Properties

34
Figure 34: Data Source

35
SHARE SERVICES TO ARCGIS SERVER FROM ARCMAP

1. Open The existing MXD file layer once complete modify the layer, Click File Menu > Share As >
Services

Figure 35: Share services,

36
2. Choose Overwrite an existing service if the data is for overwrite from PiMAP Services and click
Next

Figure 36: Overwrite services

3. ArcMap will Automatic find the services name as file name of MXD type, Click Continue

Figure 37: Auto selected services to overwrite

37
4. In services editor > click Analyze and make sure not Red colour waring issue. Then Click
Publish to Publish ArcGIS server services

Figure 38: Publishing Service Editor

38
PiMAP ADMINISTRATOR SYSTEM

1. Enter https://pimap.mbpp.gov.my

Figure 39: Main Page

2. Click at “Pengguna Berdaftar” button to login

Figure 40: Register Menu

39
3. At login popup. Enter username and password. Click Login

Figure 41: Administrator Login Menu

4. At administrator page. Click “Daftar Pengguna Baru” button to register user

Figure 42: Register New User Menu

40
5. Enter all the mandatory fill to register user. Click “Hantar” button to submit user registration

Figure 43: Register Form

41
6. Click administrator link at the right top header to go back at administrator page.

Figure 44: Administrator main menu

7. At administrator page, click at “Senarai Pengguna Berdaftar” button to view the list of
registered user

Figure 45: List of members

42
8. To edit user, click at the edit link

Figure 46: Members Register list

9. To delete user, click at the delete link

Figure 47: Delete Members

43
10. Click Logout to logout from the system

Figure 43: Administrator Logout

44
PiMAP ADMINISTRATOR BACK END CODE

1. Logo Majlis Bandaraya Pulau Pinang

Figure 44: Change Logo

Source Code Path: C: → inetpub → wwwroot → apps → application → views → main_view.php

Figure 45: Logo Code

Code to change image: Line 27

Image Path: C: → inetpub → wwwroot → apps → assets → images → 21-153x128-1.png

45
2. Logo Header Title

Source Code Path: C: → inetpub → wwwroot → apps → application → views → main_view.php

Figure 46: Logo Header

Code to change header title: Line 28

46
3. Logo PiMAP

Figure 47: Header title

Source Code Path: C: → inetpub → wwwroot → apps → application → views → main_view.php

Figure 48: Header title code

Line to change image: Line 65

Image Path: C: → inetpub → wwwroot → apps → assets → images → pimap_logo.png

47
4. Panduan Pengguna File

Figure 49: User Manual file

Source Code Path: C: → inetpub → wwwroot →apps → application → views → main_view.php

Figure 50: User Manual file code

Line to change: Line 41

Path to change panduan pengguna: apps → assets → pdf → panduan_penggunaan.pdf

48
5. Panduan Pengguna Word

Figure 51: User Manual file menu

Source Code Path: C: → inetpub → wwwroot →apps → application → views → main_view.php

Figure 52: User Manual file menu code

Line to change: Line 41

49
6. Borang Permohonan File

Figure 53: Manual Form menu

Source Code Path: C: → inetpub → wwwroot →apps → application → views → main_view.php

Figure 54: Manual Form menu code

Line to change: Line 44

Path to change panduan pengguna: apps → assets → pdf → Borang.pdf

50
7. Borang Permohonan Word

Figure 55: Manual Form menu word

Source Code Path: C: → inetpub → wwwroot →apps → application → views → main_view.php

Figure 55: Manual Form menu word code

Line to change: Line 44

51
8. Footer: Alamat Pejabat Majlis Bandaraya Pulau Pinang

Figure 56: Footer address

Source Code Path: C: → inetpub → wwwroot →apps → application → views → main_view.php

Figure 57: Footer address code

Line to change: Line 93

52
9. Footer: No Telefon Pejabat Majlis Bandaraya Pulau Pinang

Figure 58: Footer contact number

Source Code Path: C: → inetpub → wwwroot →apps → application → views → main_view.php

Figure 59: Footer contact number code

Line to change: Line 95

53
10. Footer: Alamat E-mel

Figure 60: Footer email

Source Code Path: C: → inetpub → wwwroot →apps → application → views → main_view.php

Figure 61: Footer email code

Line to change: Line 96

54
11. Footer: Hak Cipta

Figure 62: Footer copyright

Source Code Path: C: → inetpub → wwwroot →apps → application → views → main_view.php

Figure 63: Footer copyright code

Line to change: Line 118

55
12. Database Connection

Source Code Path: C: → inetpub → wwwroot → apps → application → config → database.php

Figure 64: Database connection folder

Line to change: Line 81

56
PiMAP ADMINISTRATOR DATABASE CODE

Database name: pimap_system

1. To open pimap_system database, login in SQL Server 2014


2. Expand folder Databases
3. Expand pimap_system folder
4. Expand tables folder
5. List of table is shown as below

Figure 65: Database Name

57
Table name: tbl_pengguna

1. tbl_pengguna is used when administrator register new user in the system. All the registered
user will be save in tbl_pengguna

Figure 66: Database tbl_pengguna

2. To edit or add user directly from database


3. Right click at the dbo.tbl_jabatan, choose edit top 1000 rows

Figure 67: Database top 1000 rows

58
Table name: tbl_jabatan

1. Tbl_jabatan is used to display dropdown list for ‘klasifikasi permohonan’ at ‘daftar penguna
baru’ in admin module

Figure 68: Database tbl_iabatan

2. To edit or add new jabatan at tbl_jabatan


3. Right click at dbo.tbl_jabatan, choose edit top 1000 rows

Figure 69: Database tbl_iabatan top 1000 rows

59
Table name: tbl_jabatan lain

1. Tbl_jabatan_lain is used to display dropdown list for ‘nama jabatan at ‘daftar penguna baru’
in admin module

Figure 70: Database tbl_iabatan lain

2. To edit or add new jabatan lain at tbl_jabatan lain


3. Right click at the dbo.tbl_jabatan_lain, choose edit top 1000 rows

Figure 71: Database tbl_iabatan lain top 1000 rows

60
Table name: ci_sessions

1. Table ci_sessions is used to record username, time and IP address when user login into PiMAP
system
2. To open ci_sessions table
3. Right click at dbo.ci_sessions, choose Select top 1000 rows

Figure 72: Database sessions top 1000 rows

61
BACKUP SYSTEM DATABSAE AND ARCGIS PRODUCT

BASIC FULL BACUKUP SQL SERVER

To perform a simple full backup, we can open SQL Server Management Studio and right-click on the
database we want to back up, then choose tasks then click back up.

Figure 73: Database backup

62
Figure 74: Database backup add location

Recovery model: actually, this cannot be changed. This is an indicator of what is available to be backed
up. Only databases in full and bulk-logged recovery model can be backed up using transaction log
backup type. As we are talking here about only full back up, so in all recovery models, a full backup can
be done.

Backup type:

Here you can choose the backup type you want:

 Full – backups everything in the database.


 Differential – backups only what is changed from last full backup.
 Transaction log – backups transaction file

Figure 75: Database type of backup

Backup component: this option allows you to check if you want to back up the entire database or to
choose specific files or filegroups to backup.

63
Backup to disk: here you can choose the folder and file name for your backup on local disk or share
location or your registered backup devices.

Figure 76: Backup method

64
Figure 77: Database backup file location

65
Select the following options:

1. Backup type: Full


2. Under Destination, Backup to: Disk
3. Now, by clicking on the “Add” button the following window will appear to select the path and
file name for the database backup file
4. Select the destination folder for the backup file and enter the “File name” with .bak extension

Figure 78: Database .bak format

Figure 79: Database success backup

66
5. Hit the OK button to finish the backup of your MS SQL Server Database. Upon the successful
completion of database backup, the following confirmation window will appear with a message
“The backup of database “yourdatabasename” completed successfully.

BASIC FULL RESTORE SQL SERVER

In order to restore a database from a backup file, follow the steps shown below:

1. Open your Microsoft SQL Server Management Studio and connect to your database.
2. Select the database >> Right-click >> Restore Database

Figure 80: Database Restore

3. Select the option “Backup media as File” and click on the Add button to add the backup file
location
4. Select the backup file you wish to restore and Hit the OK button

67
Figure 81: Database Restore location

You will get the confirmation windows with a message “The restoration of database
“yourdatabasename” completed successfully.” Now you know the procedure of backing up and
restoring MS SQL Server Database

68
AUTOMATE BASIC BACKUP

To automate and schedule a backup by using the SQL Server Maintenance Plan Wizard:

1. In the Object Explorer pane under the Management node right click Maintenance Plans and
select the Maintenance Plan Wizard option:

Figure 82: Database Automate wizard

2. In the Select Plan Properties window specify a plan name. To schedule a SQL Server Agent job,
click the Change button

Figure 83: Wizard plan

69
3. In new job schedule, set according base on your requirement backup and click OK

Figure 84: Wizard job schedule

4. In the Select Maintenance Plan Tasks select the Back Up Database Full option

Figure 85: Wizard maintenance task

70
5. Define your backup database, select your database and configure your file destination and click
next

Figure 86: Wizard select database

Figure 87: Wizard select database location

71
6. Select your report destination and email report if needed, Click Next to verify

Figure 89: Wizard report location

7. After verifying the choices and actions click Finish:

Figure 89: Wizard success backup automate

72
Maintenance Plans are more suitable for less experienced DBAs because they provide an easy to use
GUI, and do not require manually written maintenance scripts. The downside of Maintenance Plans is
that the tasks that Maintenance Plans provide are basic and don’t leave space for customization. A

Maintenance Plan is also atomic and is therefore not able to run multiple tasks. Each type of
maintenance task within a single Maintenance Plan can only be configured to run once within that Plan.
For example, if a task that is made to delete older backup files it will only delete one file type at a time.
Because of this multiple Maintenance Plans have to be created just to perform a single task, in some
cases, and every Maintenance Plan has to have a corresponding SQL Server Agent job to be scheduled.

BACKUP ARCGIS SERVER SITE

Server administrators often want to preserve periodic backups of their site configurations so that a
site can be restored in the event of hardware failure, human error, or other problems. To address this
need, ArcGIS Server allows you to make a backup of your site configuration. You make the backups on
a regular basis when your site is healthy. If your site has a problem, you can import a backup to
restore the site to its original state.

Information included in the backup Information not included


 Service configurations and service  Cache tiles and tiling schemes
properties  Data used by services (unless it was copied to
 Server object extensions (SOEs) a folder on the server automatically at
 Server object interceptors (SOIs) publish time)
 Registered data store item  Dynamically generated map images and
locations other temporary output
 Registered relational data store  Log messages (including Geoprocessing job
types statuses and messages)
 User and role information  Primary site administrator name and
 List of machines in the site password
 Clusters and their lists of machines  Statistics data
 Log settings  ArcGIS Web Adaptor configurations
 Statistics reports
 Scene tile cache configuration files
under arcgiscache/Hosted

73
To make a backup, you open a command prompt and run the Backup utility installed with ArcGIS
Server. You must supply the name and password of a user who has administrator privileges to the site
when running this utility. Your ArcGIS Server account needs write access to the folder where you will
place the backup.

You cannot make other administrative changes to your site while the backup is in progress.

1. ArcGIS server tools for backup location backup.py

C:\Program Files\ArcGIS\Server\tools\admin\backup.py

Figure 90: ArcGIS server backup.py

2. Run command as administrator server and command as bellow

 cd C:\Program Files\ArcGIS\Server\tools\admin
 backup.py
 hit enter

74
Figure 91: ArcGIS server backup.py command

3. Enter site URL in the format http(s)://<host>:<port>/arcgis: hit enter,

Example: https://yourdomain:6443/arcgis

4. Enter ArcGIS server manager user name & password and hit enter

5. Enter the absolute path to the folder that will hold the backup file (make a folder in windows
directory)

For example: D:\Backupserver\

6. Site has been successfully backed up and is available at this location

Figure 92: ArcGIS server backup.py success

75
RESTORE ARCGIS SERVER SITE

Once you have made a backup, you can restore it at any time. Use the following steps to perform a
restore:

 If the site has registered relational data store types, you must unregister all of them before
proceeding.

 Close ArcGIS Server Manager and any other application on your machine that is making a
connection to ArcGIS Server.

 Open a command prompt window using the Run as administrator option and run the Restore
utility installed with ArcGIS Server.

 Review and fix any issues listed in the response that require manual intervention.

 If your site included a Web Adaptor, the Web Adaptor will be reconfigured after the site is
restored.

 If your site has registered relational data store types after restoring, you must restart ArcGIS
Server on each machine in your site by restarting the Windows service.

1. ArcGIS server tools for backup location restore.py

C:\Program Files\ArcGIS\Server\tools\admin\backup.py

Figure 93: ArcGIS server Restore

76
2. Run command as administrator server and command as bellow

 cd C:\Program Files\ArcGIS\Server\tools\admin
 restore.py
 hit enter

Figure 94: ArcGIS server Restore command

3. Enter site URL in the format http(s)://<host>:<port>/arcgis: hit enter,

Example: https://yourdomain:6443/arcgis

4. Enter ArcGIS server manager user name & password and hit enter

Enter the path to the backup file generated by the backup utility

For example: D:\Backupserver\

5. Do you want to save the report of the restore operation to a local folder? hit (yes/no)
6. Action will continue to run restore and wait

Figure 95: ArcGIS server Restore command list

7. Site has been successfully restored. Import operation completed

77
Figure 96: ArcGIS server Restore success

PORTAL FOR ARCGIS BACKUP (WEBGISDR UTILITY)

You can create backups of your ArcGIS Enterprise deployment and restore the most recent backup in
the event of a failure or corruption. This allows you to recover the portal items, services, and data that
existed at the time you created the backup.

Restoring backups to recover your deployment is a good option if your users will accept some amount
of downtime and possible data loss, and your organization does not have the infrastructure or resources
to devote to a highly available deployment.

Backups can also be kept even if you implement other disaster recovery strategies. They provide extra
insurance that you can recover your deployment if your primary strategy fails. For example, if you
maintain a replicated deployment and both your primary and replicated deployments fail at the same
time (perhaps they were running on servers in the same building and the building loses power or there's
an electrical surge that destroys both servers), you still have a backup to which you can resort.

What's included in the backup?

Use the webgisdr utility to export backup files of the following components of your ArcGIS Enterprise
deployment:

 Your portal items and settings


 GIS services and settings
 If using ArcGIS Data Store, your managed database (relational data store) and hosted scene
layer cache databases (tile cache data store)

You have the option to create incremental backups between full backups. When you create an
incremental backup, the backup file contains all changes made since the last full backup

78
1. Make a copy of the template properties file. You can save the copy in the same directory as
the template or to a new directory.

The template properties file—webgisdr.properties—is installed in C:\Program


Files\ArcGIS\Portal\tools\webgisdr by default.

In this example,

 Create folder backup for example location D:\BackupPortal


 Copy webgisdr.properties from default file C:\Program
Files\ArcGIS\Portal\tools\webgisdr to D:\BackupPortal

Figure 97: Portal for ArcGIS webgisdr

 Edit webgisdr.properties

79
2. Basic Webgisdr.properties to edit

Example:

 SHARED_LOCATION= D: BackupPortal

Specify a shared location to store the Web GIS backup file. This is where the backups for
individual components will be saved to before being moved to the storage that you specify

 BACKUP_STORE_PROVIDER = FileSystem

Specify a storage provider to store the Web GIS backup: FileSystem, AmazonS3, or
AzureBlob.

 BACKUP_LOCATION = D:BackupPortal

Specify the Web GIS backup location if you've set the BACKUP_STORE_PROVIDER to
FileSystem

 PORTAL_ADMIN_URL =URL portal

Specify the URL to your portal.

Example:

# https://webadaptor.domain.com/context or

# https://portalmachine.domain.com:7443/arcgis

 PORTAL_ADMIN_USERNAME = username portal


 PORTAL_ADMIN_PASSWORD = password portal

Provide credentials for the portal administrator

 PORTAL_ADMIN_PASSWORD_ENCRYPTED =false

Initially, leave PORTAL_ADMIN_PASSWORD_ENCRYPTED set to false

 BACKUP_RESTORE_MODE =full

Specify the Web GIS backup mode: full or incremental.

80
3. Run Backup Command as administrator
4. Type cd C:\Program Files\ArcGIS\Portal\tools\webgisdr

Figure 98: Portal for ArcGIS run command

5. Type webgisdr --export –file [ path location of copy webgisdr]

Example:

webgisdr --export --file D:\BackupPortal\webgisdr.properties

6. Starting the WebGIS DR utility., wait until finish

Figure 98: Portal for ArcGIS starting webgisdr

81
RESTORE PORTAL FOR ARCGIS

1. Be sure the domain account that runs the ArcGIS Server, Portal for ArcGIS, and ArcGIS Data
Store has read access to the folder where the backup file is stored.
2. Edit webgisdr.Properties SHARED_LOCATION = to Backup PATH .webgissite
3. Open a command window on the Portal for ArcGIS machine, change directories to the
location of the webgisdr utility, and run the utility with the import option.
4. Open Command and path webgisdr tools, default path C:\Program
Files\Portal\tools\webgisdr
5. Type cd C:\Program Files\Portal\tools\webgisdr
6. Restore command
7. webgisdr --import –file [ path location of copy webgisdr]
8. for example
9. webgisdr --import --file D:\BackupPortal\webgisdr.properties

82

You might also like