Nextcloud says i will need to update to php82, but i don't know how?

That at least means caddy is working. Can you see if there are an errors in /var/log/caddy/yournextcliudserver.log?

compiling from ports, pkg should still work (if I remember right) but it sounds like you guys went “cowboy” and did some weird thing so, sorry I couldn’t help. I think I know what script you guys are talking about, so I’ll have to find some time and check it out later.

root@nextcloud:~ # tail -n 10 /var/log/caddy/caddy.log
{"level":"info","ts":1731085756.587206,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/var/db/caddy/data/caddy"}
{"level":"info","ts":1731085756.5872633,"msg":"failed to increase receive buffer size: set udp [::]:443: setsockopt: no buffer space available. See https://github.com/quic-go/quic-go/wiki/UDP-Receive-Buffer-Size for details."}
{"level":"info","ts":1731085756.5873108,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
{"level":"info","ts":1731085756.5873644,"logger":"http.log","msg":"server running","name":"remaining_auto_https_redirects","protocols":["h1","h2","h3"]}
{"level":"info","ts":1731085756.5873792,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["xxxxxx.co.uk"]}
{"level":"info","ts":1731085756.5878744,"logger":"tls","msg":"finished cleaning storage units"}
{"level":"info","ts":1731085756.5880263,"msg":"autosaved config (load with --resume flag)","file":"/var/db/caddy/config/caddy/autosave.json"}
{"level":"info","ts":1731085756.5880404,"msg":"serving initial configuration"}
Successfully started Caddy (pid=77295) - Caddy is running in the background
{"level":"info","ts":1731085760.7701075,"logger":"http.log.access","msg":"handled request","request":{"remote_ip":"45.148.10.206","remote_port":"54056","proto":"HTTP/1.1","method":"GET","host":"81.187.13","uri":"/.git/config","headers":{"Accept-Encoding":["gzip"],"Connection":["close"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; ARM; Lumia 950 Dual SIM) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393"],"Accept-Charset":["utf-8"]}},"user_id":"","duration":0.0000509,"size":0,"status":308,"resp_headers":{"Server":["Caddy"],"Connection":["close"],"Location":["https://81.187./.git/config"],"Content-Type":[]}}
root@nextcloud:~ # 

While I am a real cowboy, that is not how this went. Haha. The script is very reliable and probably has be run thousands of times on many different servers.

Php was installed via pkg though.

1 Like

There should be a log file for your domain. What you shared is the main caddy log.

root@nextcloud:~ # ls -al /var/log/caddy/
total 13795
drwxr-xr-x  2 root  wheel         3 May 22  2023 .
drwxr-xr-x  8 root  wheel        50 Nov  8 16:47 ..
-rw-r--r--  1 root  wheel  82715115 Nov  8 17:09 caddy.log
root@nextcloud:~ # 

Hmmm…
Can you share /usr/local/www/Caddyfile?

Can you also share /usr/local/www/nextcloud/config/config.php?

Next file to check is /var/log/nextcloud/nextcloud.log

hold up a sec i accidentally sent my mail and pw. i have to change it quick.

What a twat i am.

I’m having the same problem. Basically went through the same process and installing php8.1 instead of 8.2. I have read somewhere that 8.2 is not support yet and I opt for 8.1. I’m getting internal server error as well and do not know where to go from here.

Sorry i cant tell you what happened in the end. I believe i never actually fixed it. i gave up and moved over to Scale as i was in the process of building a second Truenas system anyhow.

Plus I made an awful mess of posting my own passwords. ^^ in this thread. (changed now).

Hope someone can help you out :slight_smile: