Setup Owncloud with ERPNext on the same server


as stated, Im looking for a way to have owncloud working with erpnext on the same server.
Until now I can only get erpnext to work and any other installation that involve a server fails, probably due to the nginx setup. I also tried implementing two server blocks with nginx but Im not enough skilled.
I’m currently using Ubuntu 14.04.