Using mod_php instead of PHP-FPM

Maybe related: error installing on debian 10

Do you have any preinstalled mysql packages on that server? Can you write more about your system? LXC/LXD, VPS, root?