DHIS2 Installation on Windows Local Server

DHIS2 Installation on Windows Local Server

DHIS2 Installation on Windows Local Server

The WAR file requires you to install a Java servlet container (like Tomcat or Jetty) and a relational database (PostgreSQL, MySQL and H2 are supported), and is recommended for server setups and environments with high volumes of data and traffic. The latest version is maintained with bug-fixes and minor improvements. You can always get the latest stable release at stable.dhis2.org. Check out the installation guide for Ubuntu Linux here. For the bleeding edge build check out the continuous integration server. WAR files are copied from our continuous integration server where you can find revision number and build time. DHIS2 Version upto 2.32, Download full package Note: Don’t start the tomcat in this step. Go to: My Computer (Right Click) → Properties → Advanced system settings → Environmental Variables

2.1 Under “System variables”, click on the “New” button and add the following:

Variable Name: DHIS2_HOME
Value: C:\DHIS2

2.2 Add JAVA_OPT as below: Variable Name: JAVA_OPTS Value: -Xms1024m -Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=1024m

2.3 JDK Path Variable: Add the path variable into the system variables: C:\Program Files (x86)\Java\jdk1.8.0_31\bin

3.1 Login to Pg-Admin-4: Please enter your master password that you set during installation

3.2 Right click “Login/Group Roles” and create new login role “dhis”

Don’t forget to allow login privilege:

3.3 Create password as `dhis` and then save:

3.4 Database Creation: Right click on `Databases` and create new database as “dhis2” & set owner as “dhis”

3.5 Create PostGIS extension: Right click on `Extensions` and select extension name as `postgis`

You can download from here Download now

# Hibernate SQL dialect
connection.dialect = org.hibernate.dialect.PostgreSQLDialect
# JDBC driver class
connection.driver_class = org.postgresql.Driver
# Database connection URL
connection.url = jdbc:postgresql:dhis2
# Database username
connection.username = dhis
# Database password
connection.password = dhis
# Database schema behavior, can be validate, update, create, create-drop
connection.schema = update

# Encryption password (sensitive)
 encryption.password = abcd

Download: https://www.dhis2.org/downloads

C:\Program Files (x86)\Apache Software Foundation\Tomcat 9.0\webapps

Location: C:\Program Files\Apache Software Foundation\Tomcat 9.0\bin


Username: admin
Password: district


If you face errors like `404-not-found` or `out of shared memory`, you can follow this post: 


DHIS2 instillation in linux

https://docs.dhis2.org/2.28/en/implementer/html/install_server_setup.html https://github.com/adeelshahid/dhis2-core-ansible

DHIS2 instillation in Mac OSX


Configure your domain and hosting in Digital Ocean Droplet


Last updated: 2019-06-18

Mohammad Julhas Sujan Developer, Solution Architect and Entrepreneur Cell: +8801989-442856 Email: julhaspustcse@gmail.com Skype: julhas08 http://www.julhas.com/