https://askubuntu.com/questions/1013261/job-for-apache2-service-failed-because-the-control-process-exited-with-error-cod
php -r “copy(‘https://getcomposer.org/installer’, ‘composer-setup.php’);”
php -r “if (hash_file(‘sha384’, ‘composer-setup.php’) === ’55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;”
php composer-setup.php
php Read More
Step-1: Log into your account https://ap-south-1.console.aws.amazon.com/rds
Step-2: Click on databases >> Detail of the database >> Click on the networking
Step-3: Click on the first box under Read More
#nano /etc/apache2/mods-enabled/mpm_event.conf
—————————–add—————————————-
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestWorkers 625
MaxConnectionsPerChild 10
And
… mpm_prefork.conf
Read More
GET: /server/api/dataElements.json?fields=aggregationType,domainType,categoryCombo,valueType,zeroIsSignificant,name,shortName&filter=domainType:eq:TRACKER&pageSize=1
POST: http://server/api/dataElements
{
“name”: “BCG given (0-11m)”,
“shortName”: “bcg”,
“aggregationType”: “SUM”,
Read More
Adding and removing objects in a single request
API: POST /api/categories/IDA/categoryOptions
JSON Payload:
{
“additions”: [
Read More
Create constant:
API: http://server/api/constants
JSON Payload:
{
“name”: “PI”,
“value”: “3.14159265359”
}
Response:
{
Read More
sudo apt install php-xml will work but the thing is it will download the plugin for the latest PHP version.
If your PHP version is not the latest, Read More
https://your_server/api/trackedEntityInstances/CM1zLmk6qvA?strategy=DELETE
$href = $request->get(‘href’);
$url = $href.”?strategy=DELETE”;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt( $ch, CURLOPT_HTTPHEADER, array(‘Content-Type:application/json’));
curl_setopt( $ch, CURLOPT_USERPWD, “user:pass”);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “DELETE”);
$result = Read More
sudo nano /etc/apache2/apache2.conf
Find the following code inside the editor:
Options Indexes FollowSymLinks
AllowOverride None
Require all Read More
Create a link in /var/www like this:
sudo ln -s /usr/share/phpmyadmin /var/www/
Note: since 14.04 you may want to use /var/www/html/ instead of /var/www/
If that’s Read More
openssl req -newkey rsa:2048 -nodes -keyout my_domain.key -out my_domain.csr
Writing new private key to ‘my_domain.key’
—–
You are about to be asked to enter information that will Read More
Step-1: Update the following method:
app/Http/Middleware/VerifyCsrfToken
class VerifyCsrfToken extends Middleware
{
/**
* The URIs that should Read More
1. Run: composer require laravel/socialite
2. Go config >>
2.1 Add the following line under the “providers”: Laravel\Socialite\SocialiteServiceProvider::class,
2.2 Add this line in aliases: ‘Socialite’ Read More
1. Login using your root access to your server
2. Access mysql by: mysql -u root -p and enter your password
3. mysql> show full processlist; You Read More
Error: Unsupported value type
Solution: it is known issue for tracker capture. The issue is with the assignment of the data elements to the program stage. Read More
$ch = curl_init($this->serverIP.”/organisationUnits/”.$districtId.”.json?fields=children[id,name,level,children[id,name,level,children[id,name,level]]]”);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_USERPWD, $this->auth);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “GET”);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); Read More
dhis2.util.on( ‘dhis2.de.event.formReady’, function( event,aLpVgfXiz0f) {
var orgName= $( ‘#selectedOrganisationUnit’ ).val();// From DHIS2 Selection Param
jQuery.get(“https://play.dhis2.org/2.31dev/api/organisationUnits.json?query=”+orgName+”&fields=id,level”,function(json){
$.each(json, function(key, value){
var arr = [];
for(var x in Read More
How to upload dhis2 backup database in server?
1. Login into your root access in ubuntu server and create database:
sudo -u postgres createdb -O Read More
POST: http://your-server/api/events/
{
“events”: [{
“program”: “ywNJYaTUVRT”,
“orgUnit”: “xDybhnrm1NW”,
“event”: “nnjyTxUY39n”,
“eventDate”: “2019-11-05”,
“status”: “ACTIVE”,
“programStage”: “HrdLXTOGh8A”,
“dataValues”: [{
“dataElement”: “lIkk661BLpG”,
“value”: “AMC94237”
}, {
“dataElement”: “dRKIjwIDab4”,
“value”: Read More
if(typeof customAttributeString.optionSet !==’undefined’ ){
jsonPayload = JSON.stringify({
“name”: customAttributeString.name,
“shortName”: customAttributeString.shortName,
“aggregationType”: customAttributeString.aggregationType,
Read More
jsonPayload = JSON.stringify({
“name” : customElementString.name,
“shortName” : customElementString.shortName,
“aggregationType”: customElementString.aggregationType,
Read More
Bangladesh is making huge strides in curbing child mortality rates! The Bangladesh National Health Care System holds maternal, neonatal and child health (MNCH) as one of its biggest focuses. Between Read More
let self = this;
await getPrograms().then((response) => {
self.setState({
dataElements : Read More
public function dhis2Login(Request $request) {
$username = trim($request->input(‘username’));
$password = trim($request->input(‘password’));
$ch = curl_init(“http://……..:8080/api/me”);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_USERPWD, “admin:district”);
$status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); //get status Read More
dhis2.util.on( ‘dhis2.de.event.formReady’, function( event,iReVg2xgFPL ) {
var periodN= $( ‘#selectedPeriodId’ ).val();// From DHIS2 Selection Param
var nextPeriod=(+periodN) Read More
Issue: ERROR: cannot execute nextval() in a read-only transaction
Solution: Go >> C:\Program Files\PostgreSQL\11\share, open postgresql.conf and replaced default_transaction_read_only to off as `default_transaction_read_only = Read More
Solution:
This happens because DHIS 2 uses brackets in some of their URLs, and because Tomcat version 8.5 later has prohibited the use Read More
If you have purchased a domain from name.com/cheapname.com or any other website and want to host it in Digital ocean server, this post will guide you how to configure you Read More
https://amrtest.icmr.org.in/amrtest/api/categoryOptions/v71U0ziiKTr
{
“name”: “Joint Fluid”,
“shortName”: “JTFL”,
“attributeValues”: [
{
“value”: “Joint Fluid Read More
https://your-server/api/dataElements/2a19h5eZldA
{
“name”: “Hospital department”,
“shortName”: “Hospital department”,
“aggregationType”: “NONE”,
“domainType”: “TRACKER”,
“valueType”: “TEXT”,
“attributeValues”: [{
“value”: “DEPARTMENT”,
“attribute”: {
“id”: “xmp9h5eZldA”
}
}]
}
Read More
getInstance()
.then(d2 => {
d2.Api.getApi()
.put(‘dataElements/lIkk661BLpG’,{
Read More
Tracker Web API consists of 3 endpoints that have full CRUD (create, read, update, delete) support. The 3 endpoints are /api/trackedEntityInstances /api/enrollments and /api/events and they are responsible for Tracked Read More
In this post, I will show you how to access DHIS2 data using OAuth2. Let’s start:
DHIS2 supports the OAuth2 authentication protocol. OAuth2 is an open standard for authorization Read More
Server specifications:
Read More
Read More
Problem Statement: DHIS2 404-not found error: After running tomcat
Read More
Sometimes, we face problem to create DHIS2 users using web api. In this post we will show you how to create users in DHIS2 using web api. See the below Read More
Problem Statement: HTTP Status 500 – Handler dispatch failed; nested exception is java.lang.OutOfMemoryError: Java heap space
Read More
In custom data entry form you can use JavaScript to create dynamic behavior and customizations. As an example, you can hide form sections based on Read More
All data entry in DHIS2 is organized in data sets. A data set is a collection of data elements grouped together for data entry and data export between instances of Read More
The purpose of this second-round training is to further tailoring of skills for national data management team on DHIS2 customization and maintenance. This training will emphasize on DHIS2 aggregated and Read More
ধরুন আপনি ইলেকট্রনিক জাহাজে (Air Bus) করে বাংলাদেশ থেকে নরওয়ে তে যাচ্ছেন ডিএইচআইএস ২ র এক্সপার্ট একাডেমী তে জয়েন করার জন্য। একবার কি ভেবে দেখেছেন যে প্রতি সেকেন্ড এ বিমানে Read More
এটি অনেকটা ডাটা এলিমেন্ট এর মত যা ডাটা এনালাইসিস এর জন্য ব্যবহার করা। এটি একটি calculated formula যা ডাটা এলিমেন্ট, ক্যাটেগরি অপশন, দ্রুবক বা কোন ফ্যাক্টর এর সমন্বয়ে তৈরি। যেমন, Read More
একটি উদাহরণ এর মাধ্যমে বিষয়টি আলোচনা করা যাক। ধরুন কোন একটি এলাকায় কোন নিদিষ্ট সময় এর ম্যালেরিয়া রুগীর মোট সংখা কত তা দেখতে চান। সেক্ষেত্রে আপনি কি করবেন নিশ্চয় আপনি Read More
ডিএইচআইএস ২ তে র-ডাটা ক্যাপচার করার মাধ্যম ই হল ডাটা এলিমেন্ট। ডেটা উপাদানগুলি কিভাবে সিস্টেমে রেকর্ড করা হয় ডাটা এলিমেন্ট সেটিই সংজ্ঞায়িত করে। যেমন ম্যালেরিয়ার ক্ষেত্রে মোট ম্যালেরিয়ার সংখ্যা কত Read More