Tries to downlaod the php file

I just installed nextcloud on ubuntu 20.04 using nginx and I am having issues
Nginx log

2020/07/21 23:41:19 [notice] 4396#4396: signal process started
2020/07/21 23:41:49 [notice] 4404#4404: signal process started
2020/07/21 23:41:51 [notice] 4406#4406: signal process started
2020/07/21 23:41:54 [notice] 4408#4408: signal process started
2020/07/22 00:14:04 [notice] 7014#7014: signal process started
2020/07/22 00:14:56 [notice] 7024#7024: signal process started
2020/07/22 00:15:14 [notice] 7041#7041: signal process started
2020/07/22 00:15:16 [notice] 7043#7043: signal process started
2020/07/22 00:15:22 [notice] 7045#7045: signal process started
2020/07/22 00:17:14 [notice] 7058#7058: signal process started
2020/07/22 00:17:34 [notice] 7524#7524: signal process started
2020/07/22 00:21:57 [notice] 7581#7581: signal process started
2020/07/22 00:27:47 [notice] 7615#7615: signal process started
2020/07/22 00:27:51 [error] 7616#7616: *333 open() "/var/www/nextcloud/favicon.ico" failed (2: No such file or directory), client: 2604:99c0:8:2f60:7d9a:f1a4:6a23:fc8a, server: cloud.sturtz.ml, request: "GET /favicon.ico HTTP/1.1", host: "cloud.sturtz.ml"
2020/07/22 00:32:53 [notice] 7627#7627: signal process started
2020/07/22 00:51:39 [emerg] 9066#9066: open() "/etc/nginx/sites-enabled/cloud.conf" failed (2: No such file or directory) in /etc/nginx/nginx.conf:11
2020/07/22 00:52:04 [emerg] 9075#9075: open() "/etc/nginx/sites-enabled/cloud.conf" failed (2: No such file or directory) in /etc/nginx/nginx.conf:11
2020/07/22 00:52:45 [error] 7628#7628: *512 directory index of "/var/www/html/" is forbidden, client: 192.168.1.6, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml"
2020/07/22 00:54:05 [emerg] 9089#9089: open() "/etc/nginx/sites-enabled/cloud.conf" failed (2: No such file or directory) in /etc/nginx/nginx.conf:11
2020/07/22 00:54:42 [notice] 9118#9118: signal process started
2020/07/22 00:54:42 [emerg] 852#852: bind() to 0.0.0.0:81 failed (98: Address already in use)
2020/07/22 00:54:42 [emerg] 852#852: bind() to [::]:81 failed (98: Address already in use)
2020/07/22 00:54:42 [emerg] 852#852: bind() to 0.0.0.0:81 failed (98: Address already in use)
2020/07/22 00:54:42 [emerg] 852#852: bind() to [::]:81 failed (98: Address already in use)
2020/07/22 00:54:42 [emerg] 852#852: bind() to 0.0.0.0:81 failed (98: Address already in use)
2020/07/22 00:54:42 [emerg] 852#852: bind() to [::]:81 failed (98: Address already in use)
2020/07/22 00:54:42 [emerg] 852#852: bind() to 0.0.0.0:81 failed (98: Address already in use)
2020/07/22 00:54:42 [emerg] 852#852: bind() to [::]:81 failed (98: Address already in use)
2020/07/22 00:54:42 [emerg] 852#852: bind() to 0.0.0.0:81 failed (98: Address already in use)
2020/07/22 00:54:42 [emerg] 852#852: bind() to [::]:81 failed (98: Address already in use)
2020/07/22 00:54:42 [emerg] 852#852: still could not bind()
2020/07/22 00:54:48 [error] 7628#7628: *524 directory index of "/var/www/html/" is forbidden, client: 2604:99c0:8:2f60:7d9a:f1a4:6a23:fc8a, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "mail.sturtz.ml"
2020/07/22 00:54:49 [error] 7628#7628: *528 directory index of "/var/www/html/" is forbidden, client: 2604:99c0:8:2f60:7d9a:f1a4:6a23:fc8a, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "mail.sturtz.ml"
2020/07/22 00:54:53 [error] 7628#7628: *517 directory index of "/var/www/html/" is forbidden, client: 2604:99c0:8:2f60:7d9a:f1a4:6a23:fc8a, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml"
2020/07/22 00:55:25 [error] 7628#7628: *522 directory index of "/var/www/html/" is forbidden, client: 2604:99c0:8:2f60:7d9a:f1a4:6a23:fc8a, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml"
2020/07/22 00:56:52 [error] 7628#7628: *547 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "HEAD / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 00:57:12 [error] 7628#7628: *548 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 01:02:12 [error] 7628#7628: *554 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 01:07:12 [error] 7628#7628: *560 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 01:12:12 [error] 7628#7628: *566 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 01:17:12 [error] 7628#7628: *572 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 01:22:12 [error] 7628#7628: *573 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 01:27:12 [error] 7628#7628: *574 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 01:32:12 [error] 7628#7628: *576 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 01:37:12 [error] 7628#7628: *577 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 01:42:12 [error] 7628#7628: *579 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 01:47:12 [error] 7628#7628: *581 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 01:52:12 [error] 7628#7628: *582 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 01:57:12 [error] 7628#7628: *584 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 02:02:12 [error] 7628#7628: *586 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 02:07:12 [error] 7628#7628: *587 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 02:12:12 [error] 7628#7628: *589 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 02:14:58 [error] 7628#7628: *590 open() "/var/www/html/ads.txt" failed (2: No such file or directory), client: 2001:4860:4801:63::16, server: mail.sturtz.ml, request: "GET /ads.txt HTTP/1.1", host: "sturtz.ml"
2020/07/22 02:17:12 [error] 7628#7628: *591 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 02:22:12 [error] 7628#7628: *592 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 02:25:04 [error] 7628#7628: *596 open() "/var/www/html/ads.txt" failed (2: No such file or directory), client: 2001:4860:4801:31::22, server: mail.sturtz.ml, request: "GET /ads.txt HTTP/1.1", host: "sturtz.ml"
2020/07/22 02:27:12 [error] 7628#7628: *597 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 02:32:12 [error] 7628#7628: *599 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 02:37:12 [error] 7628#7628: *600 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 02:42:12 [error] 7628#7628: *602 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 02:47:12 [error] 7628#7628: *604 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 02:52:12 [error] 7628#7628: *605 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 02:57:12 [error] 7628#7628: *607 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 03:02:12 [error] 7628#7628: *609 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 03:07:12 [error] 7628#7628: *610 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 03:12:12 [error] 7628#7628: *611 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 03:17:12 [error] 7628#7628: *613 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 03:22:12 [error] 7628#7628: *614 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 03:27:12 [error] 7628#7628: *616 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 03:32:12 [error] 7628#7628: *618 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 03:37:12 [error] 7628#7628: *619 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 03:42:12 [error] 7628#7628: *620 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 03:47:12 [error] 7628#7628: *621 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 03:52:12 [error] 7628#7628: *622 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 03:57:12 [error] 7628#7628: *623 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 04:02:12 [error] 7628#7628: *624 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 04:07:12 [error] 7628#7628: *625 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 04:12:12 [error] 7628#7628: *626 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 04:17:12 [error] 7628#7628: *629 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 04:22:12 [error] 7628#7628: *631 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 04:27:12 [error] 7628#7628: *633 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 04:32:12 [error] 7628#7628: *634 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 04:37:12 [error] 7628#7628: *635 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 04:42:12 [error] 7628#7628: *636 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 04:47:12 [error] 7628#7628: *637 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 04:52:12 [error] 7628#7628: *638 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 04:57:12 [error] 7628#7628: *639 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 05:02:12 [error] 7628#7628: *640 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 05:07:12 [error] 7628#7628: *641 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 05:12:12 [error] 7628#7628: *643 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 05:17:12 [error] 7628#7628: *647 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 05:22:12 [error] 7628#7628: *648 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 05:27:12 [error] 7628#7628: *650 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 05:32:12 [error] 7628#7628: *651 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"
2020/07/22 05:37:12 [error] 7628#7628: *652 directory index of "/var/www/html/" is forbidden, client: 2607:ff68:107::32, server: mail.sturtz.ml, request: "GET / HTTP/1.1", host: "sturtz.ml", referrer: "https://sturtz.ml"

Nextcloud log

{"reqId":"Nrq7sbuQKczew3f0fKEY","level":3,"time":"2020-07-22T14:09:40+00:00","remoteAddr":"2607:ff68:107::32","user":"--","app":"PHP","method":"GET","url":"/","message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)","version":"19.0.1.1"}
{"reqId":"nOmy3q0dPLJBJAL6uZ4y","level":3,"time":"2020-07-22T14:10:00+00:00","remoteAddr":"2604:99c0:8:2f60:fcc9:ff25:4cb3:4be9","user":"--","app":"PHP","method":"POST","url":"/index.php","message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36","version":"19.0.1.1"}
{"reqId":"nOmy3q0dPLJBJAL6uZ4y","level":3,"time":"2020-07-22T14:10:00+00:00","remoteAddr":"2604:99c0:8:2f60:fcc9:ff25:4cb3:4be9","user":"--","app":"jsresourceloader","method":"POST","url":"/index.php","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36","version":"19.0.1.1"}
{"reqId":"5E0Zvf06JaYUcK9bgNZA","level":3,"time":"2020-07-22T14:10:10+00:00","remoteAddr":"2604:99c0:8:2f60:fcc9:ff25:4cb3:4be9","user":"--","app":"PHP","method":"GET","url":"/","message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36","version":"19.0.1.1"}
{"reqId":"5E0Zvf06JaYUcK9bgNZA","level":3,"time":"2020-07-22T14:10:10+00:00","remoteAddr":"2604:99c0:8:2f60:fcc9:ff25:4cb3:4be9","user":"--","app":"jsresourceloader","method":"GET","url":"/","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36","version":"19.0.1.1"}
{"reqId":"Nrq7sbuQKczew3f0fKEY","level":3,"time":"2020-07-22T14:10:20+00:00","remoteAddr":"2607:ff68:107::32","user":"--","app":"jsresourceloader","method":"GET","url":"/","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)","version":"19.0.1.1"}
{"reqId":"rYWVkhaHBhmIJNqBpQ5z","level":3,"time":"2020-07-22T14:10:44+00:00","remoteAddr":"2604:99c0:8:2f60:fcc9:ff25:4cb3:4be9","user":"--","app":"PHP","method":"GET","url":"/","message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36","version":"19.0.1.1"}
{"reqId":"rYWVkhaHBhmIJNqBpQ5z","level":3,"time":"2020-07-22T14:10:44+00:00","remoteAddr":"2604:99c0:8:2f60:fcc9:ff25:4cb3:4be9","user":"--","app":"jsresourceloader","method":"GET","url":"/","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36","version":"19.0.1.1"}
{"reqId":"bGR3mnfbInyZRkgv3MZ0","level":3,"time":"2020-07-22T14:12:02+00:00","remoteAddr":"192.168.1.6","user":"--","app":"PHP","method":"GET","url":"/","message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":"19.0.1.1"}
{"reqId":"bGR3mnfbInyZRkgv3MZ0","level":3,"time":"2020-07-22T14:12:02+00:00","remoteAddr":"192.168.1.6","user":"--","app":"jsresourceloader","method":"GET","url":"/","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":"19.0.1.1"}
{"reqId":"H7JugHHAJuiYS7CfzAnN","level":3,"time":"2020-07-22T14:12:11+00:00","remoteAddr":"192.168.1.6","user":"--","app":"PHP","method":"GET","url":"/","message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":"19.0.1.1"}
{"reqId":"H7JugHHAJuiYS7CfzAnN","level":3,"time":"2020-07-22T14:12:11+00:00","remoteAddr":"192.168.1.6","user":"--","app":"jsresourceloader","method":"GET","url":"/","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":"19.0.1.1"}
{"reqId":"ukWbMREYeyzdztABOM9v","level":3,"time":"2020-07-22T14:12:23+00:00","remoteAddr":"192.168.1.6","user":"--","app":"PHP","method":"POST","url":"/index.php","message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":"19.0.1.1"}
{"reqId":"t05g4rCbQBTrg4GcA5NI","level":3,"time":"2020-07-22T14:13:56+00:00","remoteAddr":"192.168.1.6","user":"--","app":"PHP","method":"POST","url":"/index.php","message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":"19.0.1.1"}
{"reqId":"t05g4rCbQBTrg4GcA5NI","level":3,"time":"2020-07-22T14:13:56+00:00","remoteAddr":"192.168.1.6","user":"--","app":"jsresourceloader","method":"POST","url":"/index.php","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":"19.0.1.1"}
{"reqId":"CNXN55HsKNkXudLjuGU0","level":3,"time":"2020-07-22T14:14:00+00:00","remoteAddr":"192.168.1.6","user":"--","app":"PHP","method":"POST","url":"/index.php","message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":"19.0.1.1"}
{"reqId":"CNXN55HsKNkXudLjuGU0","level":3,"time":"2020-07-22T14:14:00+00:00","remoteAddr":"192.168.1.6","user":"--","app":"jsresourceloader","method":"POST","url":"/index.php","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":"19.0.1.1"}
{"reqId":"GR3WwGzHdh7hTSeUuQZU","level":3,"time":"2020-07-22T14:14:03+00:00","remoteAddr":"192.168.1.6","user":"--","app":"PHP","method":"POST","url":"/index.php","message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":"19.0.1.1"}
{"reqId":"GR3WwGzHdh7hTSeUuQZU","level":3,"time":"2020-07-22T14:14:04+00:00","remoteAddr":"192.168.1.6","user":"--","app":"index","method":"POST","url":"/index.php","message":{"Exception":"Doctrine\\DBAL\\Schema\\SchemaException","Message":"An index with name 'ts_docid_lastcontact' was already defined on table 'oc_text_sessions'.","Code":60,"Trace":[{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/Table.php","line":480,"function":"indexAlreadyExists","class":"Doctrine\\DBAL\\Schema\\SchemaException","type":"::"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/Table.php","line":136,"function":"_addIndex","class":"Doctrine\\DBAL\\Schema\\Table","type":">
{"reqId":"PEie4f962ujJJ4mlJAXc","level":3,"time":"2020-07-22T14:14:06+00:00","remoteAddr":"192.168.1.6","user":"--","app":"PHP","method":"POST","url":"/index.php","message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":"19.0.1.1"}
{"reqId":"PEie4f962ujJJ4mlJAXc","level":3,"time":"2020-07-22T14:14:06+00:00","remoteAddr":"192.168.1.6","user":"--","app":"jsresourceloader","method":"POST","url":"/index.php","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":"19.0.1.1"}
{"reqId":"qPN9uh9lHq5lLHyd2K2I","level":3,"time":"2020-07-22T14:14:40+00:00","remoteAddr":"2607:ff68:107::32","user":"--","app":"PHP","method":"HEAD","url":"/","message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)","version":"19.0.1.1"}
{"reqId":"qPN9uh9lHq5lLHyd2K2I","level":3,"time":"2020-07-22T14:14:40+00:00","remoteAddr":"2607:ff68:107::32","user":"--","app":"jsresourceloader","method":"HEAD","url":"/","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)","version":"19.0.1.1"}
{"reqId":"KIDnOie6B3IOOoU3Aulj","level":3,"time":"2020-07-22T14:18:54+00:00","remoteAddr":"192.168.1.6","user":"--","app":"PHP","method":"GET","url":"/","message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":"19.0.1.1"}
{"reqId":"KIDnOie6B3IOOoU3Aulj","level":3,"time":"2020-07-22T14:18:54+00:00","remoteAddr":"192.168.1.6","user":"--","app":"jsresourceloader","method":"GET","url":"/","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":"19.0.1.1"}
{"reqId":"a6IOgWexkPKN4e3VfTMp","level":3,"time":"2020-07-22T14:19:40+00:00","remoteAddr":"2607:ff68:107::32","user":"--","app":"PHP","method":"HEAD","url":"/","message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)","version":"19.0.1.1"}
{"reqId":"a6IOgWexkPKN4e3VfTMp","level":3,"time":"2020-07-22T14:19:40+00:00","remoteAddr":"2607:ff68:107::32","user":"--","app":"jsresourceloader","method":"HEAD","url":"/","message":"Could not find resource js/setup.js to load","userAgent":"Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)","version":"19.0.1.1"}
{"reqId":"eQLAiTfMAzavlzQBJJz6","level":3,"time":"2020-07-22T14:22:19+00:00","remoteAddr":"2604:99c0:8:2f60:fcc9:ff25:4cb3:4be9","user":"--","app":"PHP","method":"GET","url":"/","message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36","version":"19.0.1.1"}

Perhaps PHP is not correct installed.

Install all ubuntu-packages named in this installation guide (above all Step 2):

https://www.howtoforge.com/tutorial/ubuntu-nginx-nextcloud/

do I have to use VIM or can I use nano?

it stopped tiring to download but now it will not load

Nothing will work

I got a 502 Bad Gateway

I got it to work but now I get a 504 time out

Can you post more details? configuration? logs? …

ok, I will

config.php

<?php $CONFIG = array ( 'instanceid' => 'oc95wtxj5gfr', 'passwordsalt' => 'aDWGGPKdYg27WWbPPv30x1TDSVcPVY', 'secret' => 'W4OaV2CM6fiyBknxeRIES62cyP4V3r/ujoNgxFReJy//soo5', 'trusted_domains' => array ( 0 => 'sturtz.ml', ), 'datadirectory' => '/var/data', 'dbtype' => 'mysql', 'version' => '19.0.1.1', 'overwrite.cli.url' => 'https://sturtz.ml', 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'username', 'dbpassword' => 'password', );

Nginx config

#
# Note: This file must be loaded before other virtual host config files,
#
# HTTP
server {
    # Listen on ipv4
    listen 80;
    listen [::]:80;

    server_name sturtz.ml;

    # Redirect all insecure http:// requests to https://
    return 301 https://$host$request_uri;
}
server {
    listen 443 ssl;
    listen [::]:443 ssl;
    server_name sturtz.ml;

    root /var/www/nextcloud;
    index index.php index.html;

    include /etc/nginx/templates/misc.tmpl;
    include /etc/nginx/templates/ssl.tmpl;
    include /etc/nginx/templates/iredadmin.tmpl;
    include /etc/nginx/templates/roundcube.tmpl;
    include /etc/nginx/templates/sogo.tmpl;
    include /etc/nginx/templates/netdata.tmpl;
    include /etc/nginx/templates/php-catchall.tmpl;
    include /etc/nginx/templates/stub_status.tmpl;
   # ssl_certificate /etc/letsencrypt/live/cloud.sturtz.ml/fullchain.pem; # managed by Certbot
    #ssl_certificate_key /etc/letsencrypt/live/cloud.sturtz.ml/privkey.pem; # managed by Certbot



    ssl_certificate /etc/letsencrypt/live/sturtz.ml/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/sturtz.ml/privkey.pem; # managed by Certbot
}

Sorry. I am not a nginx user.

Please read the following instruction and check if all packages (e.g. php) are installed.
Check all modules in nginx (php?) are enabled.

I followed that,

Execute:

sudo apt install php-fpm php-curl php-cli php-mysql php-gd php-common php-xml php-json php-intl php-pear php-imagick php-dev php-common php-mbstring php-zip php-soap php-bz2 -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
php-cli is already the newest version (2:7.4+75).
php-common is already the newest version (2:75).
php-curl is already the newest version (2:7.4+75).
php-dev is already the newest version (2:7.4+75).
php-gd is already the newest version (2:7.4+75).
php-mysql is already the newest version (2:7.4+75).
php-pear is already the newest version (1:1.10.9+submodules+notgz-1).
php-xml is already the newest version (2:7.4+75).
php-bz2 is already the newest version (2:7.4+75).
php-fpm is already the newest version (2:7.4+75).
php-imagick is already the newest version (3.4.4-4).
php-intl is already the newest version (2:7.4+75).
php-json is already the newest version (2:7.4+75).
php-mbstring is already the newest version (2:7.4+75).
php-soap is already the newest version (2:7.4+75).
php-zip is already the newest version (2:7.4+75).
The following packages were automatically installed and are no longer required:
  apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.

Perhaps you can autoremove the not used packages.

sudo apt-get autoremove

Start all services.

How do I Start all services?

After modification you should stop/start/restart services like:

systemctl restart php7.4-fpm

systemctl restart nginx

do you want me to retry installing?

No. Only the service is stopped and started.