Nextcloud using different PHP version than apache

I am on Debian 11 with PHP 7.4 now.

Unfortunately I am still getting that internal server error described in this thread.