Warning |
---|
title | For Bahmni v0.92 or earlier |
---|
| Bahmni Release repo has been migrated out of Bintray. For installations, you will need to do the following for versions 0.92 or earlier Code Block |
---|
# Bahmni installer location
yum install https://repo.mybahmni.org/releases/bahmni-installer-0.92-155.noarch.rpm
# Setting up the RPM repo. Edit the setup.yml file and add the Bahmni Repo URL
bahmni_repo_url: https://repo.mybahmni.org/releases/
# Running the installer
bahmni -i local -aru https://repo.mybahmni.org/releases/ansible-2.4.6.0-1.el7.ans.noarch.rpm install
|
|
Expand |
---|
title | Installing Bahmni version 0.92 |
---|
| Steps for Installing Bahmni v0.92 This approach requires you to install the bahmni command line program first. Once "bahmni" command is installed, then you can choose your install settings, and related configurations to perform a specific Bahmni install. For now, we will install Bahmni with default configuration, and a demo database. For Advanced Installation steps, you can refer to this document later. All RPMs are hosted here. Code Block |
---|
#Prerequisite for the fresh installation of Bahmni
yum install -y https://kojipkgs.fedoraproject.org//packages/zlib/1.2.11/19.fc30/x86_64/zlib-1.2.11-19.fc30.x86_64.rpm
#Due to the non-availability of certain python distributions, the following steps needs to be executed to have a successful installation.
sudo yum install epel-release
sudo yum install python-pip
sudo pip install pip==v19.0
sudo pip uninstall click
sudo pip install click==v7.0
sudo pip install pyusb
sudo pip install babel==v0.9.6
sudo pip install decorator==v3.4.0
sudo pip install beautifulsoup4
# Install the bahmni command line program (Choose the version you want)
yum install https://repo.mybahmni.org/releases/bahmni-installer-0.92-155.noarch.rpm
# Confirm that the bahmni command is correctly installed (you should see a help message for the command)
bahmni --help
# Now setup a configuration file for bahmni command in /etc/bahmni-installer.
curl -L https://tinyurl.com/yyoj98df >> /etc/bahmni-installer/setup.yml
# Edit the setup.yml file and add the Bahmni Repo URL (for version 0.92 and earlier)
bahmni_repo_url: https://repo.mybahmni.org/releases/
# Confirm the contents of the file. It should look like this file: (https://goo.gl/R8ekg5)
cat /etc/bahmni-installer/setup.yml
# The above setup.yml, has a timezone entry. You can change it to suit your timezone if you like. For valid options
# please read this document: https://bahmni.atlassian.net/wiki/display/BAH/List+Of+Configurable+Installation+Variables
# Set the inventory file name to local in BAHMNI_INVENTORY environment variable. This way you won't need to use the '-i local' switch every time you use the 'bahmni' command
#You can also configure custom inventory file instead of local.
echo "export BAHMNI_INVENTORY=local" >> ~/.bashrc
source ~/.bashrc
# Now fire the installer
# For 0.92 or earlier
bahmni -aru https://repo.mybahmni.org/releases/ansible-2.4.6.0-1.el7.ans.noarch.rpm install
# or for 0.93
bahmni install
# The installation should be done in about 15 - 30 minutes depending on your internet speed.
# Verify installed components using the command:
yum list installed | grep bahmni |
|
Warning |
---|
title | Bahmni v0.91 or Earlier |
---|
| Bahmni v0.91 or earlier, does not work on CentOS v7.x, you need to choose either CentOS 6.7 or CentOS 6.9 for Bahmni v0.91 installation. |
Warning |
---|
| There's been a security advisory from OpenMRS for webservices.rest module. As part of security Advisory, who ever planning to install Bahmni or already have installed Bahmni of versions 0.89, v0.90, v0.91 those have to replace existing webservices.rest module with 2.24.0 version module. Expand |
---|
title | Steps to replace webservices.rest module |
---|
|
Code Block |
---|
#Go to openmrs modules path on Bahmni server
sudo cd /opt/openmrs/modules
# Stop openmrs service
sudo service openmrs stop
# Take a backup of existing webservice.rest module (Eg for Bahmni v0.91)
sudo mv webservices.rest-2.20.0.omod webservices.rest-2.20.0.omod.backup
# Download webservices.rest-2.24.0.omod using below command
sudo wget https://repo.mybahmni.org/packages/libraries/webservices.rest-2.24.0.omod
# Give ownership to bahmni user
sudo chown bahmni:bahmni webservices.rest-2.24.0.omod
# Start Openmrs service
sudo service openmrs start
|
|
For more details on security advisory, please refer to below talk threads https://talk.openmrs.org/t/critical-security-advisory-cve-2018-19276-2019-02-04/21607 https://talk.openmrs.org/t/update-for-cve-2018-19276-2019-02-04/21682 |
Warning |
---|
Please note, for Bahmni version 0.91 and earlier, we are no longer supporting Bahmni installation on CentOS 6.8 as centos has deprecated this version. You should have to choose either CentOS 6.7 or CentOS 6.9 for Bahmni installation. |
Expand |
---|
title | Installing Bahmni version 0.91 |
---|
| Steps for Installing Bahmni v0.91 This approach requires you to install the bahmni command line program first. Once "bahmni" command is installed, then you can choose your install settings, and related configurations to perform a specific Bahmni install. For now, we will install Bahmni with default configuration, and a demo database. For Advanced Installation steps, you can refer to this document later. All RPMs are available here. Code Block |
---|
#Prerequisite for the fresh installation of Bahmni
yum upgrade python-setuptools
# Prerequisite Click 7.0 for fresh installation of Bahmni
# Download Click 7.0 to /home/bahmni
wget https://files.pythonhosted.org/packages/f8/5c/f60e9d8a1e77005f664b76ff8aeaee5bc05d0a91798afd7f53fc998dbc47/Click-7.0.tar.gz -P /home/bahmni
# Extract tar file
cd /home/bahmni
tar -xvf Click-7.0.tar.gz
# Install Click 7.0
cd Click-7.0
python setup.py install
# Install the bahmni command line program (Choose the version you want).
yum install https://repo.mybahmni.org/releases/bahmni-installer-0.91-89.noarch.rpm #version 0.91
# Confirm that the bahmni command is correctly installed (you should see a help message for the command)
bahmni --help
# Now setup a configuration file for bahmni command in /etc/bahmni-installer.
curl -L https://goo.gl/R8ekg5 >> /etc/bahmni-installer/setup.yml
# Confirm the contents of the file. It should look like this file: (https://goo.gl/R8ekg5)
cat /etc/bahmni-installer/setup.yml
# Run below command to add mx_download_url to setup.yml file
printf "\nmx_download_url: https://repo.mybahmni.org/releases/mx-1.4.5-1-mdv2012.0.i586.rpm" >> /etc/bahmni-installer/setup.yml
# The above setup.yml, has a timezone entry. You can change it to suit your timezone if you like. For valid options
# please read this document: https://bahmni.atlassian.net/wiki/display/BAH/List+Of+Configurable+Installation+Variables
# Set the inventory file name to local in BAHMNI_INVENTORY environment variable. This way you won't need to use the '-i local' switch every time you use the 'bahmni' command
#You can also configure custom inventory file instead of local.
echo "export BAHMNI_INVENTORY=local" >> ~/.bashrc
source ~/.bashrc
# Now fire the installer
bahmni install
# The installation should be done in about 15 - 30 minutes depending on your internet speed.
# Verify installed components using the command:
yum list installed | grep bahmni |
|
Expand |
---|
title | Installing Bahmni version 0.90 |
---|
| Steps for Installing Bahmni v0.90 This approach requires you to install the bahmni command line program first. Once "bahmni" command is installed, then you can choose your install settings, and related configurations to perform a specific Bahmni install. For now, we will install Bahmni with default configuration, and a demo database. For Advanced Installation steps, you can refer to this document later. All RPMs are available here. Code Block |
---|
#Prerequisite for the fresh installation of Bahmni
yum upgrade python-setuptools
# Prerequisite Click 7.0 for fresh installation of Bahmni
# Download Click 7.0 to /home/bahmni
wget https://files.pythonhosted.org/packages/f8/5c/f60e9d8a1e77005f664b76ff8aeaee5bc05d0a91798afd7f53fc998dbc47/Click-7.0.tar.gz -P /home/bahmni
# Extract tar file
cd /home/bahmni
tar -xvf Click-7.0.tar.gz
# Install Click 7.0
cd Click-7.0
python setup.py install
# Install the bahmni command line program (Choose the version you want).
yum install https://repo.mybahmni.org/releases/bahmni-installer-0.90-308.noarch.rpm #version 0.90
# Confirm that the bahmni command is correctly installed (you should see a help message for the command)
bahmni --help
# Now setup a configuration file for bahmni command in /etc/bahmni-installer.
curl -L https://goo.gl/R8ekg5 >> /etc/bahmni-installer/setup.yml
# Confirm the contents of the file. It should look like this file: (https://goo.gl/R8ekg5)
cat /etc/bahmni-installer/setup.yml
# Run below command to add mx_download_url to setup.yml file
printf "\nmx_download_url: https://repo.mybahmni.org/releases/mx-1.4.5-1-mdv2012.0.i586.rpm" >> /etc/bahmni-installer/setup.yml
# The above setup.yml, has a timezone entry. You can change it to suit your timezone if you like. For valid options
# please read this document: https://bahmni.atlassian.net/wiki/display/BAH/List+Of+Configurable+Installation+Variables
# Set the inventory file name to local in BAHMNI_INVENTORY environment variable. This way you won't need to use the '-i local' switch every time you use the 'bahmni' command
#You can also configure custom inventory file instead of local.
echo "export BAHMNI_INVENTORY=local" >> ~/.bashrc
source ~/.bashrc
# Now fire the installer
bahmni install
# The installation should be done in about 15 - 30 minutes depending on your internet speed.
# Verify installed components using the command:
yum list installed | grep bahmni |
|
Expand |
---|
title | Installing Bahmni version 0.89 |
---|
| Steps for Installing Bahmni v0.89 This approach requires you to install the bahmni command line program first. Once "bahmni" command is installed, then you can choose your install settings, and related configurations to perform a specific Bahmni install. For now, we will install Bahmni with default configuration, and a demo database. For Advanced Installation steps, you can refer to this document later. All RPMs are available here. Code Block |
---|
# Prerequisite for the fresh installation of Bahmni
yum upgrade python-setuptools
# Install the bahmni command line program.
yum install https://repo.mybahmni.org/releases/bahmni-installer-0.89-193.noarch.rpm #version 0.89
# Confirm that the bahmni command is correctly installed (you should see a help message for the command)
bahmni --help
# Now setup a configuration file for bahmni command in /etc/bahmni-installer.
curl -L http://tiny.cc/defaultsetup >> /etc/bahmni-installer/setup.yml
# Confirm the contents of the file. It should look like this file: ( http://tiny.cc/defaultsetup )
cat /etc/bahmni-installer/setup.yml
# The above setup.yml, has a timezone entry. You can change it to suit your timezone if you like. For valid options
# please read this document: https://bahmni.atlassian.net/wiki/display/BAH/List+Of+Configurable+Installation+Variables
# Set the inventory file name to local in BAHMNI_INVENTORY environment variable. This way you won't need to use the '-i local' switch every time you use the 'bahmni' command
#You can also configure custom inventory file instead of local.
echo "export BAHMNI_INVENTORY=local" >> ~/.bashrc
source ~/.bashrc
# Now fire the installer
bahmni install
# The installation should be done in about 15 - 30 minutes depending on your internet speed.
# Verify installed components using the command:
yum list installed | grep bahmni
|
|
Expand |
---|
title | Installing Bahmni version 0.88 |
---|
| Steps for Installing Bahmni v0.88 This approach requires you to install the bahmni command line program first. Once "bahmni" command is installed, then you can choose your install settings, and related configurations to perform a specific Bahmni install. For now, we will install Bahmni with default configuration, and a demo database. For Advanced Installation steps, you can refer to this document later. All RPMs are available here. Code Block |
---|
# Prerequisite for the fresh installation of Bahmni
yum upgrade python-setuptools
# Install the bahmni command line program (Choose the version you want).
yum install https://repo.mybahmni.org/releases/bahmni-installer-0.88-101.noarch.rpm #version 0.88
# Confirm that the bahmni command is correctly installed (you should see a help message for the command)
bahmni --help
# Now setup a configuration file for bahmni command in /etc/bahmni-installer.
curl -L https://goo.gl/R8ekg5 >> /etc/bahmni-installer/setup.yml
# Confirm the contents of the file. It should look like this file: (https://goo.gl/R8ekg5)
cat /etc/bahmni-installer/setup.yml
# The above setup.yml, has a timezone entry. You can change it to suit your timezone if you like. For valid options
# please read this document: https://bahmni.atlassian.net/wiki/display/BAH/List+Of+Configurable+Installation+Variables
# Now fire the installer
bahmni -i local install #instead of local you can use your custom inventory file
# The installation should be done in about 15 - 30 minutes depending on your internet speed.
# Verify installed components using the command:
yum list installed | grep bahmni
|
|
Expand |
---|
title | Installing Bahmni version 0.87 |
---|
| Steps for Installing Bahmni v0.87 This approach requires you to install the bahmni command line program first. Once "bahmni" command is installed, then you can choose your install settings, and related configurations to perform a specific Bahmni install. For now, we will install Bahmni with default configuration, and a demo database. For Advanced Installation steps, you can refer to this document later. All RPMs are available here. Code Block |
---|
# Install the bahmni command line program (Choose the version you want).
yum install https://repo.mybahmni.org/releases/bahmni-installer-0.87-81.noarch.rpm #version 0.87
# Confirm that the bahmni command is correctly installed (you should see a help message for the command)
bahmni --help
# Now setup a configuration file for bahmni command in /etc/bahmni-installer.
curl -L https://goo.gl/R8ekg5 >> /etc/bahmni-installer/setup.yml
# Confirm the contents of the file. It should look like this file: (https://goo.gl/R8ekg5)
cat /etc/bahmni-installer/setup.yml
# The above setup.yml, has a timezone entry. You can change it to suit your timezone if you like. For valid options
# please read this document: https://bahmni.atlassian.net/wiki/display/BAH/List+Of+Configurable+Installation+Variables
# Now fire the installer
bahmni -i local install #instead of local you can use your custom inventory file
# The installation should be done in about 15 - 30 minutes depending on your internet speed.
# Verify installed components using the command:
yum list installed | grep bahmni
|
|
|