Updating php version of nextcloud jail manually from 8.0 to 8.1

Azsumbre13

Dabbler
Joined
Jul 3, 2023
Messages
31
What does your Caddyfile look like?
root@nextcloud:/usr/local/www # cat Caddyfile
{
# debug
###acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
email azsumbre@yahoo.com
# default_sni epcloud.duckdns.org
}

epcloud.duckdns.org {
root * /usr/local/www/nextcloud
file_server
log {
output file /var/log/epcloud.duckdns.org.log
}

php_fastcgi 127.0.0.1:9000 {
env front_controller_active true
}

header {
# enable HSTS
Strict-Transport-Security max-age=31536000;
}

# client support (e.g. os x calendar / contacts)
redir /.well-known/carddav /remote.php/dav 301
redir /.well-known/caldav /remote.php/dav 301
redir /.well-known/webfinger /index.php/.well-known/webfinger 301
redir /.well-known/nodeinfo /index.php/.well-known/nodeinfo 301

# .htaccess / data / config / ... shouldn't be accessible from outside
@forbidden {
path /.htaccess
path /data/*
path /config/*
path /db_structure
path /.xml
path /README
path /3rdparty/*
path /lib/*
path /templates/*
path /occ
path /console.php
}

respond @forbidden 404
}
 

ddaenen1

Patron
Joined
Nov 25, 2019
Messages
318
FYI update php to 8.2 even with the official plug in by running pkg install nextcloud-php82 , but needed to add pkg install php82-pecl-imagick-3.7.0_2 php82-pecl-redis-5.3.7_1 as they were missing. Only thing to keep in mind is the nextcloud to be at 27.0.1 , but not at 27.0.2 as it will run internal server errors. The solution is to change the config.php Nextcloud version to 27.0.1 and then update again
I am still running the plugin and just successfully updated to 27.1.3 - any idea if the php update would work on 27.1.3? I use Nextcloud for my business since some months and it has been working perfectly fine. I have been thinking to move over to a standard jail using the script but i cannot afford any down time right now so my aim is to keep the current plugin alive until next summer. At that point, i may decide to either do the script install in Core or move over to Scale entirely.
 
Top