I have a server on the internet and have successfully installed Debian on it. You can boot the installer remotely over the internet by using the Booting from Grub method described here:
https://netboot.xyz/docs/booting/grub
You can install many different distros using this method. I tested it...