Nextcloud doesn't recognize php 8.4

Hello,

My Nextcloud Hub 26 Summer (35.0.2) is running on a Debian 13 and apache2. I got a warning that i only installed php 8.3, but i got 8.4 installed and configured too:

PHP 8.4.27 (cli) (built: Oct 21 2026 08:17:41) (NTS)
Copyright (c) The PHP Group
Built by Debian
Zend Engine v4.4.27, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.27, Copyright (c), by Zend Technologies
There are 2 choices for the alternative php (providing /usr/bin/php).

  Selection    Path             Priority   Status
------------------------------------------------------------
* 0            /usr/bin/php8.4   84        auto mode
  1            /usr/bin/php8.3   83        manual mode
  2            /usr/bin/php8.4   84        manual mode

But my Nextcloud still shows php 8.3.36 in System section:

After executing these commands:

sudo apt remove -y php8.3
sudo apt purge php8.3*

i get:

Service Unavailable

The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.


Apache/2.4.69 (Debian) Server at xxx.xxx.xxx.pl Port 443

What is the problem?

Did you checked your config-Files? On my nginx the /etc/nginx/conf.d/HttpGateway.conf needs modification. In my case

upstream php-handler {
    server unix:/run/php/php8.3-fpm.sock;
}

So check for such first.

You may be able to solve the issue with this thread. I had an almost similar problem, not so long ago