Looking for basic installtion steps Next cloud installation Redhat 6,postgres db
You need at least php5.4, to be compatible with future versions (NC 11+) you should be able to run php5.6 or newer. I found this for inspiration: https://www.vultr.com/docs/install-owncloud-on-centos-6-with-nginx-w-ssl-php-fpm-and-pgsql-automated-startup-script
The nginx configuration example is probably not suited and you should use one from the official doc:
https://docs.nextcloud.com/server/10/admin_manual/installation/nginx_examples.html?highlight=nginx
You can use apache as well, there should be tutorials available. If possible, guides for owncloud 9.0 or newer or NC 9.0 or newer should do the job.