Let’s start that this is no easy task. It does take some time and customizing according to how you like your setup. For this tutorial I spent 90% following https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-owncloud-on-ubuntu-16-04
Since Ubuntu is not really my speciality I find it’s confguration out of the box is much simpler. So get yourself an Ubuntu 16.04 VPS or Dedicated server.