DHIS2 Live on Windows laptops/desktops (NOT for production servers!!)

Slides:



Advertisements
Similar presentations
COP 3530 JDK Environment Variables. COP 3530 JDK Environment Variables Environment Variables Environment variables are a set of dynamic values that can.
Advertisements

Getting Started To start the process, procure the Digital Signature Certificate Enrollment Kit from Signature World or its Registration Authorities. The.
Unit 8- Windows Customization.  Backup & restore, update, power.
Before start the Installation process, follow the following mandatory steps :  Sales Department will provide a Order No for New Installation.  Pass.
Installing JDK and Tomcat Vijayan Sugumaran Department of DIS Oakland University.
Michael Donovan, River Campus Libraries – 12/03 DocuShare Overview and Training.
Microsoft Office Illustrated Using Advanced Features.
Installing JDK Vijayan Sugumaran Department of DIS Oakland University.
Lab 03 Windows Operating Systems (Cont.). PYP002 Preparatory Computer ScienceWindows Operating System2 Objectives Develop a good understanding of 1. The.
Update the PATH variable Trying to run the command: “javac Ex1.java” you’ve may encountered the error: “javac is not recognized as internal or external.
Call: Practical Installation Process of NewGenLib OSS on Windows XP for Library automation Goutam Biswas Department of Library & Information.
Command Console Tutorial BCIS 3680 Enterprise Programming.
File sharing. Connect the two win 7 systems with LAN card Open the network.
Ch 9 Managing Active Directory User Accounts. Objectives Create Organizational Unit Creating User Accounts in Active Directory Disabling, Enabling, and.
SERVLETS.
Windows Tutorial 9 Maintaining Hardware and Software
IS 426: Information Systems Construction in Modern Society Downloading and exploring oracle development environments.
Course ILT Folder and file management Unit objectives Explore the contents of a hard disk and view file and folder attributes by using Windows Explorer.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. M I C R O S O F T ® Preparing for Electronic Distribution Lesson 14.
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
1 Introduction to PostgreSQL. 2 Documents PostgreSQL 8 for Windows (*) Beginning Databases with PostgreSQL From Novice to Professional, Second Edition.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Servlets Environment Setup. Agenda:  Setting up Java Development Kit  Setting up Web Server: Tomcat  Setting up CLASSPATH.
Installing the SAFARIODBC.EXE For use with Excel May 3, 2002.
1 Mobile Computing Set Up Copyright 2015 by Janson Industries.
Microsoft Windows 7 Essential Introduction to Windows 7.
Microsoft Windows Vista Chapter 1 Fundamentals of Using Microsoft Windows Vista.
baltrad node installation for beginners On Ubuntu Jesper Ellerbæk Nielsen Aalborg University, DK.
Microsoft Windows 7 Part 1 Fundamentals of Using Windows 7.
1 Installation When this module is complete, you will be able to:  Set a static IP address for your laptop  Install the snom ONE software  Navigate.
How to Tag a Corpus Using Stanford Tagger. Accuracy All tokens: 97.32% Unknown words: 90.79%
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Installation and Testing.
Microsoft ® Outlook ® 2010 Training Mailbox management 1: Creating folders.
( ) 1 ISYE 7210—Fall 2005 Design of Real-Time Interactive Simulations (in Java) Initial Notes Christine M. Mitchell Director & Professor Center for.
Session Objectives • Login to PeopleSoft Test Framework(PTF)
Introduction to Derby. RHS – What is Derby…? Derby is a DBMS –Database –GUI for administration –GUI for data maintenance Best part; integrated.
Dr. Gina Green Class Setup.
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
Proxy Installer for Windows Squid: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response.
 If we set java settings permanently they are available from all command prompts even after system restart.
SOML Large Optics Daily Reporting Guide to using the new ETSEDMS server for Large Optics Daily Reporting.
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
System Requirements for e-tendering portal
Installing MySQL BCIS 3680 Enterprise Programming.
MySQL Getting Started BCIS 3680 Enterprise Programming.
Windows Installation Tutorial NASA ARSET For Python help, contact: Justin Roberts-Pierel
Microsoft Windows 7 Chapter 3 File and Folder Management.
1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was.
So – You want to learn how to put an article onto the state website. (Note: If you have not done so, you will need to review the web training provided.
Java On the ENB 116 Computers The JDK is now available on the ENB 116 computers. You can use a classroom computer rather than your own laptop or CIRCE.
…the basics…. Wildland Fire Information and Technology Server Requirements ● Windows 7 Professional or Windows 2003/2008 Server ● Windows 8/10 (discussion)
HYPACK PROJECTS HYPACK Projects What’s in a Project  ‘ A Project contains all of the information about a specific survey in a separate folder.
Tomcat Setup BCIS 3680 Enterprise Programming. One-Click Tomcat Setup 2  This semester we’ll try to set up Tomcat with a PowerShell script.  Preparation.
How to install JavaCV in Eclipse. Make sure to download and install all these before you proceed Eclipse for Java EE developers (current is Juno)
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
INTERNET APPLICATIONS CPIT405 Install a web server and analyze packets.
MySQL Getting Started BCIS 3680 Enterprise Programming.
Installation.  System Requirement : Win2k Server / Win2k Professional / WinXP Win2k Server / Win2k Professional / WinXP Database (Microsoft Access) Database.
PuTTY Introduction to Web Programming Kirkwood Continuing Education by Fred McClurg © Copyright 2016, All Rights Reserved ssh client.
CACI Proprietary Information | Date 1 Upgrading to webMethods Product Suite Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8,
SOP of Transferring PecStar Database October 2013.
Installing RMS 3.0 Contractor Mode
Windchill WorkGroup Manager (WGM) for Inventor installation
The Data Geekery SQL Masterclass Setup Instructions
DHIS2 Live on Windows laptops/desktops (NOT for production servers!!)
Windows Operating Systems (Cont.)
Access: Queries IV Participation Project
Windows Installation Tutorial
Setting up home folders and roaming profiles
Presentation transcript:

DHIS2 Live on Windows laptops/desktops (NOT for production servers!!) Knut Staring January 2016

Preparation Java 8 (JRE): http://java.com/en/download/manual.jsp PostgreSQL 9.5 (or later):http://www.enterprisedb.com/products-services-training/pgdownload#windows dhis2-live.zip http://www.dhis2.org/downloads Notepad++ https://notepad-plus-plus.org/download/v6.9.html Gow: https://github.com/bmatzelle/gow

Java and Postgres installation Install Java 8 with defaults Install PostgreSQL 9.5 and be sure to remember the password. In the final prompt, UNTICK the Stack Builder option

Add Postgres to Windows Path Start button -> Right click Computer ->Properties –> Advanced System Settings-> Advanced -> Environment Variables Select “Path” and Edit. Go to the end and add a semicolon After the new semicolon, add C:\Program Files\PostgreSQL\9.5\bin Click OK, OK, OK

PgAdmin Open PgAdmin and log in Right-click Login Roles and enter “dhis” for Role name. In the “Definition” tab, enter “dhis” for the password (twice) Right-click on “Databases” and select “New Database…” Enter “dhis2” for “Name” and “dhis” for “Role”

Demo database Skip this slide if you want an empty database Download the demo data from https://www.dhis2.org/download/resources/2.22/dhis2-demo.zip Unzip the download Open a Command Prompt window and navigate to the new unzipped folder Type the following on the command line: psql –U dhis dhis2 < default.sql

DHIS2 Live Unzip the downloaded DHIS2 Live package In subfolder “conf” open “dhis.conf” in Notepad++ or WordPad (not NotePad) Remove all the “#” characters Add a “#” character in front of the top 5 lines

dhis.conf should look like this #hibernate.dialect = org.hibernate.dialect.H2Dialect #hibernate.connection.driver_class = org.h2.Driver #hibernate.connection.url = jdbc:h2:./database/dhis2;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE #hibernate.connection.username = sa #hibernate.connection.password = hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect hibernate.connection.driver_class = org.postgresql.Driver hibernate.connection.url = jdbc:postgresql:dhis2 hibernate.connection.username = dhis hibernate.connection.password = dhis hibernate.hbm2ddl.auto = update

Start up Put a shortcut to dhis2-live.exe on your dashboard and click on it DHIS2 will start and open your browser to http://localhost:8082 with and empty database If this does not work, try http://127.0.0.1:8082

Updating the version of DHIS Download a new version of DHIS2 from http://dhis2.org/downloads Stop DHIS2 Live Go to the folder webapps/dhis and delete everything Copy the new dhis2.war to the same folder Rename to dhis2.zip and unzip

Backup and restore Startbutton -> “command” Backup Restore Use cd to navigate to where you want to have your backups Backup pg_dump –U dhis –f dhis2sl_2016.sql -d dhis2 Restore Create a new empty database in PgAdmin, eg. dhis2_sl3 psql –U dhis –f dhis2sl_2016.sql –d dhis2_sl3

Optional: Multiple DHIS2 Live More than one DHIS2 Live can run simultaneously They must be on different ports In subfolder “conf” open “jetty.port” Change the port number (stay above 8000) Change database name in dhis.conf