Which is the best XMPP server?
For the server mentioned here...
OpenFire = written in Java
Prosody = Lua
Ejabberd = Erlang
For the server mentioned here...
OpenFire = written in Java
Prosody = Lua
Ejabberd = Erlang
Here's a howto on setting it up: https://homebrewserver.club/configuring-a-modern-xmpp-server...
I also set up an ejabberd instance for a client years ago when Prosody was not a thing but it's more complicated to set up. They changed the config file from Erlang to YAML a while ago but it's still complex. But it's nice it has a web interface to create users and easier to not get bothered about it once it's up and running. Ejabberd can handle a massive number of clients.
Here's an older discussion about XMPP self hosting: