![]() ![]() Note: The installation directory is /usr/lib/jvm/java-11-openjdk-amd64 which may change depending on the java version. Step-4: Java InstallationĤ.1 To install OpenJDK run below command sudo apt-get install openjdk-11-jdk Remember to set a strong password of at least 24 characters. Note that the password must not be changed once it has been set and data has been encrypted as the data can then no longer be decrypted. The encryption.password property is the password used when encrypting and decrypting data in the database. # Database schema behavior, can be validate, update, create, create-drop As an example this location could be: sudo -u dhis_tl nano /var/A configuration file for PostgreSQL corresponding to the above setup has these properties: # Hibernate SQL dialectĬonnection.dialect = Ĭonnection.driver_class = ![]() The database connection information is provided to DHIS2 through a configuration file called nf. If you found ERROR: could not open extension control file “/usr/share/postgresql/14/extension/ntrol”: No such file or directory sudo apt-get install postgresql-14-postgis-3-scripts sudo -u postgres psql -c "create extension pg_trgm " dhis2 Step-3: Database Configurationģ.1. sudo -u postgres psql -c "create extension postgis " dhis2 DHIS2 will attempt to install the PostGIS extension during startup. Note: To remember, I set the same username and password for the user and postgres.Ģ.4 Create a database by invoking: sudo -u postgres createdb -O dhis_tl dhis2Ģ.5 The PostGIS extension is needed for several GIS/mapping features to work. See detail: how to Install PostgreSQL on Ubuntu: Ģ.2 Install Postgis: sudo apt-get install postgisĢ.3 Create a non-privileged user called dhis_tl by invoking: sudo -u postgres createuser -SDRP dhis_tlĮnter a secure password at the prompt. An example directory could be: sudo mkdir /var/Set ownership of the directory to ‘dhis_tl’ user created above sudo chown dhis_tl:dhis_tl /var/Install PostgreSQL by invoking: sudo apt-get update sudo apt-get install postgresql postgresql-contribĮnsure that the service is started: sudo systemctl start rvice This directory will also be used for apps, files and log files. For this tutorial, I set password ‘123456’.ġ.3 Creating the configuration directory: Start by creating a suitable directory for the DHIS2 configuration files. Make sure you set a strong password with random characters. ![]() Run again: sudo mkdir /var/Then to set the password for your account invoke: sudo passwd dhis_tl If you found ‘can not create director’ error then please create the following www directory as: cd /var sudo mkdir www cd ~ sudo dpkg-reconfigure tzdataĬreate a new directory: sudo mkdir /var/www/ Step-1: Basic configurationġ.1 Setting server time zone by invoking the below and following the instructions. We would like to setup DHIS2 under the /var/and configured virtual host. Tomcat: 9, PostgreSQL 12 and Java 11 (OpenJDK 11) DHIS2 can be launched on any Servlet container, including Tomcat and Jetty, as it is packaged as a typical Java Web Archive (WAR-file). The PostgreSQL database engine powers DHIS2. DHIS2 installation on Ubuntu 20.04 LTS – AWSĭHIS2 is compatible with all devices that have a Java JDK, including the most widely used ones like Windows, Linux, and Mac. ![]()
0 Comments
Leave a Reply. |