Hello,
my nextcloud (Nextcloud Hub 26 Spring (34.0.4)) is running on a Debian 13 with nginx. i got a warning that i only installed php 8.2, but i got 8.4 installed too
root@XXX:/home/XXX# php -version
PHP 8.4.25 (cli) (built: Aug 28 2026 07:29:53) (NTS)
Copyright (c) The PHP Group
Built by Debian
so i tried to fix the /etc/nginx/conf.d/nextcloud.conf.
Both solution i found on the net
fastcgi_pass unix:/run/php/php8.4-fpm.sock;
#upstream php {
server unix:/run/php/php8.4-fpm.sock;
}
wont work.
after comment out both, i got problems restarting nginx
Sep 21 14:03:49 XXX systemd[1]: Starting nginx.service - nginx - high performance web server…
Sep 21 14:03:49 XXX nginx[86459]: nginx: [warn] the “listen … http2” directive is deprecated, use the “http2” directive instead in /etc/nginx/conf.d/nextcloud.conf:2
Sep 21 14:03:49 XXX nginx[86459]: nginx: [warn] the “listen … http2” directive is deprecated, use the “http2” directive instead in /etc/nginx/conf.d/nextcloud.conf:3
Sep 21 14:03:49 XXX nginx[86459]: nginx: [emerg] “fastcgi_pass” directive is not allowed here in /etc/nginx/conf.d/nextcloud.conf:136
Sep 21 14:03:49 XXX systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Sep 21 14:03:49 XXX systemd[1]: nginx.service: Failed with result ‘exit-code’.
Sep 21 14:03:49 XXX systemd[1]: Failed to start nginx.service - nginx - high performance web server.
dont wanna make a bigger mess by testing, so i guess im asking for help ![]()