Issues with Fresh Nextcloud Installation

I am getting problems on performing a clean install of Nextcloud on a clean server. I have the following setup:

[REVERSE PROXY (NGINX)][NEXTCLOUD.DOMAINX.COM]

[NEXTCLOUD.DOMAINY.COM]

So the connection comes to the reverse proxy with SSL termination enabled and then passes on the request to the specific server for the requested domain.

The installation initially works, it shows the default “Welcome to NGiNX!” page but once Nextcloud is placed it errors out.

Nextcloud Version: 13

I am having problems on the following environment:

  • Ubuntu 16.04 LTS (all updates installed)
  • NGiNX 1.10.3
  • PHP 7.2

Nextcloud NGiNX configuration (stored in /sites-enabled/ directory):

https://hastebin.com/reyipuvone.nginx

My Network Setup:

192.168.4.10 - Reverse Proxy Server (NGiNX)
192.168.4.21 - Nextcloud for nextcloud.domainx.com
192.168.4.22 - Nextcloud for nextcloud.domainy.com

My installation commands:

https://hastebin.com/jujowefoda.bash

Access Log (NGiNX):

https://hastebin.com/ekabenuyox.log

Error Log (NGiNX):

https://hastebin.com/oyujuguqon.log

PHP 7.2 FPM Log:

https://hastebin.com/equdehehur.log

Nextcloud Error Page:

Nextcloud Directory:

I have not been able to install Nextcloud, the moment I go to the website I am getting internal server error. What am I doing wrong?

I resolved this.