Can't access installer using Nginx on Arch

I’m having trouble getting Nextcloud to start and install for the first time on my Arch install.
I’m not using Docker for NextCloud I’m using the package version. I’ve tried following the Arch Wiki guide which has led to the current situation.

It just gives me a 404 error

{
  "reqId": "VipEvlvEele20V7uv5KE",
  "level": 3,
  "time": "2025-06-03T00:48:40+00:00",
  "remoteAddr": "",
  "user": "--",
  "app": "cron",
  "method": "",
  "url": "--",
  "message": "Not installed",
  "userAgent": "--",
  "version": "31.0.5.1",
  "exception": {
    "Exception": "Exception",
    "Message": "Not installed",
    "Code": 0,
    "Trace": [
      {
        "file": "/usr/share/webapps/nextcloud/lib/base.php",
        "line": 691,
        "function": "checkInstalled",
        "class": "OC",
        "type": "::"
      },
      {
        "file": "/usr/share/webapps/nextcloud/lib/base.php",
        "line": 1171,
        "function": "init",
        "class": "OC",
        "type": "::"
      },
      {
        "file": "/usr/share/webapps/nextcloud/cron.php",
        "line": 24,
        "args": [
          "/usr/share/webapps/nextcloud/lib/base.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/usr/share/webapps/nextcloud/lib/base.php",
    "Line": 228,
    "message": "Not installed",
    "exception": {},
    "CustomMessage": "Not installed"
  }
}

Please fill in the Support Template and provide DETAILED information about your environment, network configuration, Next provide a step-by-step guide how to reproduce the issue. Here you will find the official Nextcloud Admin Guide with detailed information how to install and configure Nextcloud.

Sorry was getting a character count issue when I tried to fill in the template info xD

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.5-1
  • Operating system and version (e.g., Ubuntu 24.04):
    • Arch Linux
  • Web server and version (e.g, Apache 2.4.25):
    • Nginx
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • 1.28.0-3
      
  • PHP version (e.g, 8.3):
    • PHP-Legacy,
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • From the start
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • package
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • Yes

Summary of the issue you are facing:

After following the Arch Wiki Guide, I can’t access the installer. The index.php file just downloads instead of opening

Log entries

Nextcloud Log

127.0.0.1 - - [02/Jun/2025:14:58:14 -0700] "GET /nextcloud HTTP/1.1" 404 153 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0"
127.0.0.1 - - [02/Jun/2025:14:58:21 -0700] "GET /nextcloud HTTP/2.0" 404 9409 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0"
10.0.0.3 - - [02/Jun/2025:20:57:03 -0700] "GET /nextcloud HTTP/2.0" 404 146 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0"

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

cloud.mydomain.com - - [02/Jun/2025:14:58:21 -0700] "GET /nextcloud HTTP/2.0" 404 9409 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0"

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):
[PHP];;;;;;;;;;;;;;;;;;;; About php.ini ;;;;;;;;;;;;;;;;;;;;; PHP's - Pastebin.com - Wouldn’t fit