kenya-emr
# kenya-emr
kenya-emr
# 1. Download the installer
wget
github.com
# 2. Make it executable
chmod +x kenyaemr-installer.sh
# 3. Run the installer
sudo ./kenyaemr-installer.sh
# 4. Follow the interactive prompts
# Ubuntu/Debian
sudo apt update
sudo apt install openjdk-11-jdk
# CentOS/RHEL
sudo yum install java-11-openjdk-devel
# Ubuntu/Debian
sudo apt install mysql-server
# CentOS/RHEL
sudo yum install mysql-server
sudo systemctl start mysqld
sudo systemctl enable mysqld
sudo mysql_secure_installation
# Set root password and secure installation
# Create KenyaEMR database
sudo mysql -u root -p
CREATE DATABASE openmrs DEFAULT CHARACTER SET utf8;
CREATE USER 'openmrs'@'localhost' IDENTIFIED BY 'your_strong_password';
GRANT ALL PRIVILEGES ON openmrs.* TO 'openmrs'@'localhost';
FLUSH PRIVILEGES;
EXIT;
# Ubuntu/Debian
sudo apt install tomcat9
# CentOS/RHEL
sudo yum install tomcat
# Create directory
sudo mkdir -p /opt/kenyaemr
cd /opt/kenyaemr
# Download the latest KenyaEMR distribution
wget
sourceforge.net -O kenyaemr.war
# Deploy to Tomcat
sudo cp kenyaemr.war /var/lib/tomcat9/webapps/openmrs.war
# Set permissions
sudo chown -R tomcat:tomcat /var/lib/tomcat9/webapps/
# Create configuration directory
sudo mkdir -p /usr/share/tomcat9/.OpenMRS
# Create runtime properties file
sudo nano /usr/share/tomcat9/.OpenMRS/openmrs-runtime.properties
connection.url=jdbc:mysql://localhost:3306/openmrs?autoReconnect=true&sessionVariables=storage_engine=InnoDB&useUnicode=true&characterEncoding=UTF-8
connection.username=openmrs
connection.password=your_strong_password
module.allow_web_admin=true
auto_update_database=false
# Restart MySQL
sudo systemctl restart mysql
# Restart Tomcat
sudo systemctl restart tomcat9
using docker
# 1. Install Docker
curl -fsSL
get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# 2. Pull KenyaEMR Doc …