How i can find files location of my apache server on mac? [closed]

I’m new to programming, recently i have manage starting XAMPP on my machine, which works fine, but when i wanted to start apache server, provided by XAMPP, it’s got instantly stopped, i found an source of an issue, another server was runned (before installing XAMPP i had a try to setup a server in other custom ways). Happens even when i reboot machine, so if anyone got an answer for that i would be glad to check.

Using MacOs Sequoia 15.3

Only way to avoid is to run command
$ sudo apachectl stop