XAMPP is not designed for use on a public Server. Also you would have a lot of Packages you maybe will not use on your Server.
If you only need Apache & MySQL (maybe also an FTP-Server) i suggest you use the Packages of your Linux. In this case this Packages also will be updated with the OS Update and you do not have to watch for this.
Also it is not a big problem to compile all these Components for Linux by your own. In this case you would have the chance to compile features you want and deactivate features you really do not want. However, Updates you would have to do on your own
I think the easiest way would be the usage of the OS-Packages. The most customizable way would be to compile by your self. XAMPP for Linux is the middle course.
: I forgot to say: Welcome on the Linux side of Life