
Setting Up DHIS2 Server on Windows Laptop for Testing
Learn how to install DHIS2 Live on a Windows laptop for testing purposes. Follow steps to configure Java, PostgreSQL, load the database, and start up DHIS2. Utilize images for guidance throughout the process.
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
DHIS2 Live Installation of the DHIS2 server on a Windows laptop (for testing/demo, not for production)
Java and database engine Is your Windows 32 or 64 bit? Right click on Computer ->Properties Java Run installer with default options Postgres Port 5432. Password can be dhis In the final window, UNTICK the Stack Builder option
Add Postgres to Windows Path Right click on Computer ->Properties > Advanced System Settings-> Advanced -> Environment Variables Select Path and Edit. At the end, add a semicolon After the new semicolon, add C:\Program Files\PostgreSQL\9.3\bin Click OK, OK, OK
PgAdmin Open PgAdmin. Password dhis Right-click Login Roles and make new Role dhis . In the Definition tab, enter dhis for the password (twice) Right-click on Databases and select New Database Call it dhis2 with owner dhis
Loading the database Open a Command Prompt (type cmd) Go to where the .sql file is Type the following on the command line (you must use the REAL filename for the sql file) psql U dhis dhis2 < FILENAME.sql
DHIS2 Live Unzip DHIS2 Live In subfolder conf open hibernate.properties in WordPad The crucial thing is to have your new database name at the end of this line: hibernate.connection.url = jdbc:postgresql:dhis2 Any line that starts with # has been commented out
The file 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=FALS E #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 Use cd to navigate to where you want to have your backups Backup pg_dump U dhis f dhis2sl_20101214.pgdump -d dhis2 Restore Create a new empty database in PgAdmin, eg. Dhis2sl3 psql U dhis f dhis2sl_20101214 d dhis2sl3
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 hibernate.properties