Hi all,
Can someone help on how to determine a convenient location for hibernate.properties configuration file for dhis2?
Thanks,
João
Kind regards
Hi all,
Can someone help on how to determine a convenient location for hibernate.properties configuration file for dhis2?
Thanks,
João
Kind regards
Hi Joao,
You can put it really any where you like, but ideally, where it can only be read by the process user which is running your Tomcat server. By default, on a Linux server, you can put it in the /opt/dhis2/ directory, DHIS2 will look for if you have not configured anything else. If you want to put it some place else, you will either need to define an environment varibale or use the setenv.sh script of Tomcat to tell DHIS2 where to look for the file.
More information here.
Regards,
Jason
On Tue, Jun 30, 2015 at 9:39 AM, Joao Mazuze Joao_Mazuze@chasssmt.com wrote:
Hi all,
Can someone help on how to determine a convenient location for hibernate.properties configuration file for dhis2?
Thanks,
João
Kind regards
João Gabriel Mazuze
National Database Manager
Projecto CHASS-SMT
Abt Associates Inc.
Av. Marginal, 4067
Cidade de Maputo, Moçambique
Fax: (+ 258) 21486767
Tel: (+ 258) 21493525/6/8
Cell: (+258) 82 4236279
- Somos um projecto financiado pelo PEPFAR-II, através da USAID, para reforçar o Sistema de Saúde das Provincias de Sofala, Manica e Tete. Pretendemos melhorar a ligação e integração do HIV com os Cuidados Primários de Saúde e outros a ele relacionados em coordenação com as Direcções Provinciais de Saúde e outros parceiros. Através do projecto CHASS-SMT, o Governo Americano apoia o Governo Moçambicano na melhoria da qualidade dos Serviços de Saúde no país.*
This message may contain privileged and confidential information intended solely for the addressee. Please do not read, disseminate or copy it unless you are the intended recipient. If this message has been received in error, we kindly ask that you notify the sender immediately by return email and delete all copies of the message from your system.
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp
–
Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049
Joao it really depends how it is that you have setup your servlet container(s) - ie its hard to think about hibernate.properties in isolation to everything else.
What it will often come down to is whether you run a single instance or many. If you run a single instance you can depend on /opt/dhis2 but otherwise its not a good idea (in fact was an old stupid idea of mine).
The “standard” way of setting env variables for tomcat seems to be, as jason says, inside
$CATALINA_BASE/bin/setenv.sh
or
$CATALINA_HOME/bin/setenv.sh
which of course raises the next question of how or where you set $CATALINA_BASE/HOME
Because there are so many variations on this theme I try to encourage folk to follow the process described in https://www.dhis2.org/doc/snapshot/en/implementer/html/ch20.html
The install.sh script in mentioned in that documentation (which somehow doesn’t appear) is available at https://github.com/dhis2/dhis2-tools.
On 30 June 2015 at 08:48, Jason Pickering jason.p.pickering@gmail.com wrote:
Hi Joao,
You can put it really any where you like, but ideally, where it can only be read by the process user which is running your Tomcat server. By default, on a Linux server, you can put it in the /opt/dhis2/ directory, DHIS2 will look for if you have not configured anything else. If you want to put it some place else, you will either need to define an environment varibale or use the setenv.sh script of Tomcat to tell DHIS2 where to look for the file.
More information here.
Regards,
Jason
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp
On Tue, Jun 30, 2015 at 9:39 AM, Joao Mazuze Joao_Mazuze@chasssmt.com wrote:
Hi all,
Can someone help on how to determine a convenient location for hibernate.properties configuration file for dhis2?
Thanks,
João
Kind regards
João Gabriel Mazuze
National Database Manager
Projecto CHASS-SMT
Abt Associates Inc.
Av. Marginal, 4067
Cidade de Maputo, Moçambique
Fax: (+ 258) 21486767
Tel: (+ 258) 21493525/6/8
Cell: (+258) 82 4236279
- Somos um projecto financiado pelo PEPFAR-II, através da USAID, para reforçar o Sistema de Saúde das Provincias de Sofala, Manica e Tete. Pretendemos melhorar a ligação e integração do HIV com os Cuidados Primários de Saúde e outros a ele relacionados em coordenação com as Direcções Provinciais de Saúde e outros parceiros. Através do projecto CHASS-SMT, o Governo Americano apoia o Governo Moçambicano na melhoria da qualidade dos Serviços de Saúde no país.*
This message may contain privileged and confidential information intended solely for the addressee. Please do not read, disseminate or copy it unless you are the intended recipient. If this message has been received in error, we kindly ask that you notify the sender immediately by return email and delete all copies of the message from your system.
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp
Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049
–
Hi Bob and Jason,
On the installation guideline at https://www.dhis2.org/doc/snapshot/en/implementer/html/ch20.html that i read according to you recomendations but i am facing some difficulties on how get dhis2-tools package from apt repository, can you help me to? I have read the sentence bellow but it seems incomplete.
Once your base system is properly installed and secured you can proceed to install the dhis2-tools package from the apt repository at http://apt.dhis2.org. The easiest way to do so is to run the install.sh script available at …
Kind regards,
João
Joao it really depends how it is that you have setup your servlet container(s) - ie its hard to think about hibernate.properties in isolation to everything else.
What it will often come down to is whether you run a single instance or many. If you run a single instance you can depend on /opt/dhis2 but otherwise its not a good idea (in fact was an old stupid idea of mine).
The “standard” way of setting env variables for tomcat seems to be, as jason says, inside
$CATALINA_BASE/bin/setenv.sh
or
$CATALINA_HOME/bin/setenv.sh
which of course raises the next question of how or where you set $CATALINA_BASE/HOME
Because there are so many variations on this theme I try to encourage folk to follow the process described in https://www.dhis2.org/doc/snapshot/en/implementer/html/ch20.html
The install.sh script in mentioned in that documentation (which somehow doesn’t appear) is available at https://github.com/dhis2/dhis2-tools.
On 30 June 2015 at 08:48, Jason Pickering jason.p.pickering@gmail.com wrote:
Hi Joao,
You can put it really any where you like, but ideally, where it can only be read by the process user which is running your Tomcat server. By default, on a Linux server, you can put it in the /opt/dhis2/ directory, DHIS2 will look for if you have not configured anything else. If you want to put it some place else, you will either need to define an environment varibale or use the setenv.sh script of Tomcat to tell DHIS2 where to look for the file.
More information
here.
Regards,
Jason
On Tue, Jun 30, 2015 at 9:39 AM, Joao Mazuze Joao_Mazuze@chasssmt.com wrote:
Hi all,
Can someone help on how to determine a convenient location for hibernate.properties configuration file for dhis2?
Thanks,
João
Kind regards
João Gabriel Mazuze
National Database Manager
Projecto CHASS-SMT
Abt Associates Inc.
Av. Marginal, 4067
Cidade de Maputo, Moçambique
Fax: (+ 258) 21486767
Tel: (+ 258) 21493525/6/8
Cell: (+258) 82 4236279
- Somos um projecto financiado pelo PEPFAR-II, através da USAID, para reforçar o Sistema de Saúde das Provincias de Sofala, Manica e Tete. Pretendemos melhorar a ligação e integração do HIV com os Cuidados Primários de Saúde e outros a ele relacionados em coordenação com as Direcções Provinciais de Saúde e outros parceiros. Através do projecto CHASS-SMT, o Governo Americano apoia o Governo Moçambicano na melhoria da qualidade dos Serviços de Saúde no país.*
This message may contain privileged and confidential information intended solely for the addressee. Please do not read, disseminate or copy it unless you are the intended recipient. If this message has been received in error, we kindly ask that you notify the sender immediately by return email and delete all copies of the message from your system.
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp
–
Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp
That is why Bob added the last paragraph
On Jun 30, 2015 11:24 AM, “Joao Mazuze” Joao_Mazuze@chasssmt.com wrote:
Hi Bob and Jason,
On the installation guideline at https://www.dhis2.org/doc/snapshot/en/implementer/html/ch20.html that i read according to you recomendations but i am facing some difficulties on how get dhis2-tools package from apt repository, can you help me to? I have read the sentence bellow but it seems incomplete.
Once your base system is properly installed and secured you can proceed to install the dhis2-tools package from the apt repository at http://apt.dhis2.org . The easiest way to do so is to run the install.sh script available at …
Kind regards,
João
From: Bob Jolliffe [mailto:bobjolliffe@gmail.com]
Sent: 30 June 2015 10:46
To: Jason Pickering
Cc: Joao Mazuze; dhis1-users
Subject: Re: [Dhis2-users] hibernate file
Joao it really depends how it is that you have setup your servlet container(s) - ie its hard to think about hibernate.properties in isolation to everything else.
What it will often come down to is whether you run a single instance or many. If you run a single instance you can depend on /opt/dhis2 but otherwise its not a good idea (in fact was an old stupid idea of mine).
The “standard” way of setting env variables for tomcat seems to be, as jason says, inside
$CATALINA_BASE/bin/setenv.sh
or
$CATALINA_HOME/bin/setenv.sh
which of course raises the next question of how or where you set $CATALINA_BASE/HOME
Because there are so many variations on this theme I try to encourage folk to follow the process described in https://www.dhis2.org/doc/snapshot/en/implementer/html/ch20.html
The install.sh script in mentioned in that documentation (which somehow doesn’t appear) is available at https://github.com/dhis2/dhis2-tools.
On 30 June 2015 at 08:48, Jason Pickering jason.p.pickering@gmail.com wrote:
Hi Joao,
You can put it really any where you like, but ideally, where it can only be read by the process user which is running your Tomcat server. By default, on a Linux server, you can put it in the /opt/dhis2/ directory, DHIS2 will look for if you have not configured anything else. If you want to put it some place else, you will either need to define an environment varibale or use the setenv.sh script of Tomcat to tell DHIS2 where to look for the file.
More information
here.
Regards,
Jason
On Tue, Jun 30, 2015 at 9:39 AM, Joao Mazuze Joao_Mazuze@chasssmt.com wrote:
Hi all,
Can someone help on how to determine a convenient location for hibernate.properties configuration file for dhis2?
Thanks,
João
Kind regards
João Gabriel Mazuze
National Database Manager
Projecto CHASS-SMT
Abt Associates Inc.
Av. Marginal, 4067
Cidade de Maputo, Moçambique
Fax: (+ 258) 21486767
Tel: (+ 258) 21493525/6/8
Cell: (+258) 82 4236279
- Somos um projecto financiado pelo PEPFAR-II, através da USAID, para reforçar o Sistema de Saúde das Provincias de Sofala, Manica e Tete. Pretendemos melhorar a ligação e integração do HIV com os Cuidados Primários de Saúde e outros a ele relacionados em coordenação com as Direcções Provinciais de Saúde e outros parceiros. Através do projecto CHASS-SMT, o Governo Americano apoia o Governo Moçambicano na melhoria da qualidade dos Serviços de Saúde no país.*
This message may contain privileged and confidential information intended solely for the addressee. Please do not read, disseminate or copy it unless you are the intended recipient. If this message has been received in error, we kindly ask that you notify the sender immediately by return email and delete all copies of the message from your system.
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp
–
Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp
This message may contain privileged and confidential information intended solely for the addressee. Please do not read, disseminate or copy it unless you are the intended recipient. If this message has been received in error, we kindly ask that you notify the sender immediately by return email and delete all copies of the message from your system.
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp
Cutting and pasting from the install.sh file, all you need to run (you can cut and paste this into your terminal) is:
echo ‘deb http://apt.dhis2.org/amd64 /’ > /etc/apt/sources.list.d/dhis2.list
wget -O - http://apt.dhis2.org/keyFile |apt-key add -
apt-get update -y
apt-get install dhis2-tools nginx postgresql
On 30 June 2015 at 10:25, Knut Staring knutst@gmail.com wrote:
That is why Bob added the last paragraph
On Jun 30, 2015 11:24 AM, “Joao Mazuze” Joao_Mazuze@chasssmt.com wrote:
Hi Bob and Jason,
On the installation guideline at https://www.dhis2.org/doc/snapshot/en/implementer/html/ch20.html that i read according to you recomendations but i am facing some difficulties on how get dhis2-tools package from apt repository, can you help me to? I have read the sentence bellow but it seems incomplete.
Once your base system is properly installed and secured you can proceed to install the dhis2-tools package from the apt repository at http://apt.dhis2.org . The easiest way to do so is to run the install.sh script available at …
Kind regards,
João
From: Bob Jolliffe [mailto:bobjolliffe@gmail.com]
Sent: 30 June 2015 10:46
To: Jason Pickering
Cc: Joao Mazuze; dhis1-users
Subject: Re: [Dhis2-users] hibernate file
Joao it really depends how it is that you have setup your servlet container(s) - ie its hard to think about hibernate.properties in isolation to everything else.
What it will often come down to is whether you run a single instance or many. If you run a single instance you can depend on /opt/dhis2 but otherwise its not a good idea (in fact was an old stupid idea of mine).
The “standard” way of setting env variables for tomcat seems to be, as jason says, inside
$CATALINA_BASE/bin/setenv.sh
or
$CATALINA_HOME/bin/setenv.sh
which of course raises the next question of how or where you set $CATALINA_BASE/HOME
Because there are so many variations on this theme I try to encourage folk to follow the process described in https://www.dhis2.org/doc/snapshot/en/implementer/html/ch20.html
The install.sh script in mentioned in that documentation (which somehow doesn’t appear) is available at https://github.com/dhis2/dhis2-tools.
On 30 June 2015 at 08:48, Jason Pickering jason.p.pickering@gmail.com wrote:
Hi Joao,
You can put it really any where you like, but ideally, where it can only be read by the process user which is running your Tomcat server. By default, on a Linux server, you can put it in the /opt/dhis2/ directory, DHIS2 will look for if you have not configured anything else. If you want to put it some place else, you will either need to define an environment varibale or use the setenv.sh script of Tomcat to tell DHIS2 where to look for the file.
More information
here.
Regards,
Jason
On Tue, Jun 30, 2015 at 9:39 AM, Joao Mazuze Joao_Mazuze@chasssmt.com wrote:
Hi all,
Can someone help on how to determine a convenient location for hibernate.properties configuration file for dhis2?
Thanks,
João
Kind regards
João Gabriel Mazuze
National Database Manager
Projecto CHASS-SMT
Abt Associates Inc.
Av. Marginal, 4067
Cidade de Maputo, Moçambique
Fax: (+ 258) 21486767
Tel: (+ 258) 21493525/6/8
Cell: (+258) 82 4236279
- Somos um projecto financiado pelo PEPFAR-II, através da USAID, para reforçar o Sistema de Saúde das Provincias de Sofala, Manica e Tete. Pretendemos melhorar a ligação e integração do HIV com os Cuidados Primários de Saúde e outros a ele relacionados em coordenação com as Direcções Provinciais de Saúde e outros parceiros. Através do projecto CHASS-SMT, o Governo Americano apoia o Governo Moçambicano na melhoria da qualidade dos Serviços de Saúde no país.*
This message may contain privileged and confidential information intended solely for the addressee. Please do not read, disseminate or copy it unless you are the intended recipient. If this message has been received in error, we kindly ask that you notify the sender immediately by return email and delete all copies of the message from your system.
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp
–
Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp
This message may contain privileged and confidential information intended solely for the addressee. Please do not read, disseminate or copy it unless you are the intended recipient. If this message has been received in error, we kindly ask that you notify the sender immediately by return email and delete all copies of the message from your system.
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp