Thanks @clayton .
However, the problem was not setting the default PHP version to newly installed 8.3 version. I did the sudo update-alternatives --set php /usr/bin/php8.3
and everything is working fine again.
3 Likes