How do I set my apache2 server in rpi4 to php 8.2, as required by 30.0.0

I have PHP versions 8.1, 8.2 and 8.3 installed on my RPI4 running PI OS bookworm. My Apache 2 server reports 8.1 as the active version via phpinfo() and the Nextcloud admin page also tells me I need to change to PHP 8.2. However, I have so far been unable to find out how I have 8.1 active in Apache 2 but 8.3 listed via php -v.

All the AI engines tell me to use fastcgi/FPM, but this fails to install on my RPI4.