From the documentation, xampp should have been installed in /opt/lampp
, not ~/opt/lampp
. So something went wrong, but support should be sought at the devs.
The xampp package being in AUR, you cannot use pacman to install it. Prefer using a package manager with AUR support, such as pamac:
pamac build xampp
See also the relevant documentation: XAMPP - ArchWiki