I changed the DHIS2_HOME folder to the another user called '’Jux” and then create the environmental variable /home/Jux/DHIS2_HOME/dhis in the tomcat file in etc/init.d. I finally turn the tomcat file into execution file by doing the chmod 755 tomcat.
Thanks for everything. But I will be coming with another question about our central server in a few minute.
···
Ola Hodne Titlestad (Mr)
HISP
Department of Informatics
University
of Oslo
Mobile: +47 48069736
Home address: Eftasåsen 68, 0687 Oslo, Norway. Googlemaps link
Knut,
Please I am sorry for my late response.
Kindly find the attached file as per request.
From the environmental variable the tomcat is not seeing the database.
From: knutst@gmail.com
Date: Fri, 13 Sep 2013 08:01:01 +0200
Subject: Re: [Dhis2-users] How to Link Tomcat 7 and Postgresql 9.2
I really don’t know where to put this export statement; because I already tried it on the ~/.bashrc file but it is not work. I tried it on the /etc/environment; it is not working. I am not start Tomcat using bin/startup.sh because I already enable it to run automatically.
Please find the attached view screen of my dhis screen.
I already completed the installation but i can’t get access to the
database that i had imported. During my research i have seeing a lot of
procedures to do it but they seem not to be working. Please can you help
me with a reliable solution. If possible can you send a your messenger
ID (Skype or gtalk) so that we can do the process together. Thanks in
advance for your help.
Kindly note that I am not having any errors but I can only login to the dhis using the default username/password (admin/district). This simply means the database that I had imported is not seeing the tomcat.
Most of the journals said this is my problem “export DHIS2_HOME='/home/dhis/config”
On my configuration DHIS2_HOME directory is found inside the home folder of the root; therefore my “export DHIS2_HOME=/home/DHIS2_HOME/dhis
Please I don’t know if this is were I am getting it all wrong. Please help
the initial problem was likely that the user starting up DHIS was not the same as the user’s .bashrc file you set the DHIS2_HOME variable in. To avoid this problems and make it more predictable it is recommended to set DHIS2_HOME inside a tomcat/bin/setenv.sh file, ie. directly for the tomcat instance you are running.
I changed the DHIS2_HOME folder to the another user called '’Jux” and then create the environmental variable /home/Jux/DHIS2_HOME/dhis in the tomcat file in etc/init.d. I finally turn the tomcat file into execution file by doing the chmod 755 tomcat.
Thanks for everything. But I will be coming with another question about our central server in a few minute.
Are you sure /home/DHIS2_HOME/dhis is a valid path to a folder/directory on your local system and that the file hibernate.properties is located in that folder?
Knut,
Please I am sorry for my late response.
Kindly find the attached file as per request.
From the environmental variable the tomcat is not seeing the database.
From: knutst@gmail.com
Date: Fri, 13 Sep 2013 08:01:01 +0200
Subject: Re: [Dhis2-users] How to Link Tomcat 7 and Postgresql 9.2
I really don’t know where to put this export statement; because I already tried it on the ~/.bashrc file but it is not work. I tried it on the /etc/environment; it is not working. I am not start Tomcat using bin/startup.sh because I already enable it to run automatically.
Please find the attached view screen of my dhis screen.
I already completed the installation but i can’t get access to the
database that i had imported. During my research i have seeing a lot of
procedures to do it but they seem not to be working. Please can you help
me with a reliable solution. If possible can you send a your messenger
ID (Skype or gtalk) so that we can do the process together. Thanks in
advance for your help.
Kindly note that I am not having any errors but I can only login to the dhis using the default username/password (admin/district). This simply means the database that I had imported is not seeing the tomcat.
Most of the journals said this is my problem “export DHIS2_HOME='/home/dhis/config”
On my configuration DHIS2_HOME directory is found inside the home folder of the root; therefore my “export DHIS2_HOME=/home/DHIS2_HOME/dhis
Please I don’t know if this is were I am getting it all wrong. Please help