Apache does not automatic update the PHP version after a PHP update.
Check your current version with:
# php -v
PHP 8.4.28 (cli) (built: Nov 19 2026 20:03:32) (NTS)
Then enable the php Mod:
#a2enmod php8.4
Considering dependency mpm_prefork for php8.4:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php8.4:
Enabling module php8.4.
To activate the new configuration, you need to run:
systemctl restart apache2
So restart apache:
# systemctl restart apache2
Check your website if it is working again.