How to - Install Bahmni on AWS

While installing Bahmni 0.88 on AWS as mentioned in https://bahmni.atlassian.net/wiki/pages/viewpage.action?pageId=34439320 I faced problems which have been listed here Installing Bahmni on AWS Then I performed following steps to complete the installation successfully on AWS -

  1. Select AWS instance that meets hardware requirements specified here – https://bahmni.atlassian.net/wiki/display/BAH/System+Requirements If it is for demo purpose t2.micro may work.

  2. Install - UltraServe CentOS 6.8 AMI APPLICATION - 2016.09.2-1 x86_64 HVM GP2 ami-05a3d76a which is listed under Community AMI

  3. Make sure that the attached Volume has enough space. If it is demo purpose at least >10Gb.

  4. Launch the instance and connect using SSH

  5. Creating Swap Space – https://bahmni.atlassian.net/wiki/pages/viewpage.action?pageId=34439320

  6. Installing EPEL – Depending on the configuration select appropriate RPM sudo yum install –y ftp://rpmfind.net/linux/centos/6.8/extras/x86_64/Packages/epel-release-6-8.noarch.rpm

  7. Installing SCL – Depending on the configuration select appropriate RPMs sudo yum install –y ftp://rpmfind.net/linux/centos/6.8/extras/x86_64/Packages/centos-release-scl-rh-2-3.el6.centos.noarch.rpm sudo yum install –y ftp://rpmfind.net/linux/centos/6.8/extras/x86_64/Packages/centos-release-scl-7-3.el6.centos.noarch.rpm

  8. Installing the selected Bahmni command line version from Step 2 mentioned in - https://bahmni.atlassian.net/wiki/display/BAH/Install+Bahmni+on+CentOS

  9. Installing MySQL-Python - sudo yum install –y ftp://rpmfind.net/linux/centos/6.8/os/x86_64/Packages/MySQL-python-1.2.3-0.3.c1.1.el6.x86_64.rpm

  10. Post installation of Bahmni Command line version, carrying out remaining actions for the selected Bahmni version from Step 2 mentioned in - https://bahmni.atlassian.net/wiki/display/BAH/Install+Bahmni+on+CentOS

  11. In case of transaction check error during bahmni-erp installation do yum-complete-transaction --cleanup-only as mentioned in Bahmni Installation Error: The following packages have pending transactions: bahmni-erp-noarch and rerun bahmni -i local install

  12. Once the installation is successful allow Inbound HTTP traffic by configuring the appropriate security group attached with the EC2 instance.

  13. Perform Step 3 - Access the Application as mentioned in - https://bahmni.atlassian.net/wiki/display/BAH/Install+Bahmni+on+CentOS

2 Likes

Thank you very much for such detailed information. I have linked to this thread from the Cloud installation wiki page for others to be able to easily find: https://bahmni.atlassian.net/wiki/pages/viewpage.action?pageId=34439320

CentOS 6.8 related packages on RPMFind have been moved under 6.9 so steps 6, 7 and 9 listed above should be changed as follows:

  1. Installing EPEL – Depending on the configuration select appropriate RPM sudo yum install –y ftp://rpmfind.net/linux/centos/6.9/extras/x86_64/Packages/epel-release-6-8.noarch.rpm
  1. Installing SCL – Depending on the configuration select appropriate RPMs sudo yum install –y ftp://rpmfind.net/linux/centos/6.9/extras/x86_64/Packages/centos-release-scl-rh-2-3.el6.centos.noarch.rpm sudo yum install –y ftp://rpmfind.net/linux/centos/6.9/extras/x86_64/Packages/centos-release-scl-7-3.el6.centos.noarch.rpm
  1. Installing MySQL-Python - sudo yum install –y ftp://rpmfind.net/linux/centos/6.9/os/x86_64/Packages/MySQL-python-1.2.3-0.3.c1.1.el6.x86_64.rpm
2 Likes

Bahmni 0.90-302 installs successfully without any Concept dictionary.

Following steps used to install Bahmni 0.90-302 on AWS

  1. Steps 1-7 of this thread itself
  2. 2 steps (wget and python) outlined under “0.90 Known Issues
  3. First 2 steps of (Please note 0.90 Known issues states not to install setuptools using pip that’s the reason to execute only first 2 steps mentioned on this talk thread) this
  4. Step 8 of this thread itself to install Bahmni Command Line Tool by replacing the first command by yum install https://dl.bintray.com/bahmni/rpm/rpms/bahmni-installer-0.90-302.noarch.rpm
  5. Step 9-11 of this thread itself.

Please use the updated links given in the original thread above and make sure to update local file as needed.

4 Likes

Latest links for Installation of bahmni 0.91 version

  1. Step 1-5 same as above thread

  2. Step 6 Installing EPEL

    yum install http://vault.centos.org/6.9/extras/x86_64/Packages/epel-release-6-8.noarch.rpm

  3. Step 7 Installing SCl

    yum install http://vault.centos.org/6.9/extras/x86_64/Packages/centos-release-scl-rh-2-3.el6.centos.noarch.rpm

    yum install http://vault.centos.org/6.9/extras/x86_64/Packages/centos-release-scl-7-3.el6.centos.noarch.rpm

  4. Step 8

    yum upgrade python-setuptools

    yum install https://dl.bintray.com/bahmni/rpm/rpms/bahmni-installer-0.91-70.noarch.rpm

    bahmni --help

    curl -L https://goo.gl/R8ekg5 >> /etc/bahmni-installer/setup.yml

    cat /etc/bahmni-installer/setup.yml

    echo “export BAHMNI_INVENTORY=local” >> ~/.bashrc

    source ~/.bashrc

  5. Step 9 Installing MySQL-Python

    yum install http://vault.centos.org/6.9/os/x86_64/Packages/MySQL-python-1.2.3-0.3.c1.1.el6.x86_64.rpm

  6. Step 10

    bahmni install

1 Like

Steps 6, 7 and 9 are required only for Bahmni version <= 0.91.

For .92 on Community version of CentOS 7 available on AWS no additional components mentioned above are required to be installed separately except for installing zlib 1.2.11 manually.

2 Likes