← Back to team overview

dhis2-users team mailing list archive

Re: [Dhis2-devs] How to run DHIS2 & iHRIS on the same Server

 

As Halvdan implies, you probably now havr both nginx and apache running on
the same port (80) and thus blocking each other. You probably no longer
need Apache now that you have nginx, but need to point nginx to the ihris
installation.
Knut
On Jul 2, 2015 11:40 PM, "Halvdan Grelland" <halvdanhg@xxxxxxxxx> wrote:

> I presume you've set up DHIS2 with nginx or Apache (as per usual with the
> standard dhis2-tools setup).
>
> What you need to do is configure nginx (presuming that's what you're
> using) with a location for both, /dhis and /hris respectively. The /dhis
> location should be configured already, evident by what you're saying, iHRIS
> i'm not familiar with, but a quick googling tells me it uses apache,
> meaning you'd probably want to set up nginx as a common front-end for both.
> I found this link
> <https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a-reverse-proxy-for-apache> but
> cannot really vouch for its content (I only skimmed through it).
>
> The details you should be able to find online as there are vast resources
> on configuring both nginx and Apache. It's not really a DHIS2 or iHRIS
> specific case.
>
> Best of luck!
>
> Halvdan,
> DHIS2 developer
>
> 2015-07-02 23:13 GMT+02:00 gerald thomas <gerald17006@xxxxxxxxx>:
>
>> Dear All,
>>
>> My DHIS2 was running on the old installation method which means was
>> accessing it using:
>> http://localhost:8080/dhis.
>>
>> Now i had changed the method of installation using the dhis2-tool
>> method and i can access it using:
>> http://localhost/dhis
>>
>> Now my issues:
>> This server was running Integrated Human Resource Information System
>> (iHRIS) and was being access using
>> http://localhost/hris/login
>>
>> Currently, when the instance of dhis2 is running iHRIS will goes down
>> and when dhis2 goes down iHRIS will work fine.
>>
>> Please i need both to run in parallel can anyone help me how i can do it.
>>
>> Kindly note that
>> iHRIS (Database is MySQL)
>> DHIS2 (Database is PostgreSQL)
>>
>> --
>> Regards,
>>
>> Gerald
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References