It sounds like you may need to configure Apache to use the PHP 8.2.3 installation. To do this, you'll need to edit the Apache configuration file (usually located at /etc/apache2/apache2.conf). Add the following lines to the file:
I now get:
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.