Update PHP 8.3.6 to 8.3.21 [closed]

How can I make Apache recognize a PHP version? I did the make install and when I run php -v, the version appears, but Apache still shows version 8.3.6.

Currently there is no way to do it by apt and I can’t add the ondrej/php repository, I searched in the PHP documentation, but it doesn’t say how to do this either.