Last night I managed to repair the PHP environment on our web server except that PHP 8.x is presently uninstalled, it wasn’t the default so this should only affect testing.
Tonight I will re-install and then take the web server down for about 45 minutes to back it up.