Failed to create the site. Failed to configure the server machine 'PHANTOM.LOCALDOMAIN'. Server machine 'PHANTOM.LOCALDOMAIN' is not a local server machine.
# localhost name resolution is handled within DNS itself. 127.0.0.1 localhost ::1 localhost 127.0.0.1 hornet 127.0.0.1 localhost.localdomain localhost 127.0.0.1 HORNET.LOCALDOMAIN
Solved! Go to Solution.
I can confirm the issue was caused by the java lib of ArcGIS Server when getting variable [HOSTNAME] for those Windows has not joined a domain, it automatically added .LOCALDOMAIN after Computer Name as Full Computer Name.
A simple fix is go to Windows -> "System Properties" -> "Computer Name", click "Change..." button -> "Computer Name/Domain Changes", click "More..."button -> "DNS Suffix and NetBIOS Computer Name", enter 'LOCALDOMAIN' to "Primary DNS suffix of this computer".
Once added this DNS suffix and restart your Windows, and check "Computer Name", you will see your Full computer name became "YourComputerName.LOCALDOMAIN", then run create a site again will work like a charm.
I'm surprised this issue still exists 8 years down the line but I just ran into it after installing ArcGIS Server 11.1 on a Windows Server 2022 VM that's not joined to a domain. I've installed this software many times over the years (mostly for dev/test purposes on non-server OSs to be fair) and never run into this before. I tried a couple of clean installs, renaming the machine before and after but it was only setting the, "Primary DNS suffix of this computer" to "LOCALDOMAIN" that eventually fixed it for me, so thanks go out to HunerWei!