Port Issues on Mac - Site Domain

I just restarted. After giving it a few minutes to settle from initial boot, sudo lsof -i :80 shows me that there are two httpd commands running, with users root and _www.

I then tried to ‘sudo killall httpd’. However, the processes are immediately restarting themselves. Even killing one, then the other, in either available order does nothing.

I’ve emptied my /Library/LaunchAgents folder of launch items. Homebrew and Adobe Creative always make there way back into it, it appears.

In order to find what binaries are being used on the process, I used ‘sudo lsof -p PID | grep txt’. Most of the output httpd files are related to apatche2, so I ran ‘sudo apachectl -k stop. It’s throwing an error, "httpd: could not reliably determine the server’s fully qualified domain name, and using name-macbook.local…’

I tried a number of different unload commands I could find online, but I believe this one actually ended up working for me ‘sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist’. The others I found didn’t follow the same file structure.

Thanks for your help, @afragen. Your assistance helped give me some tools and lead me in the right direction.

1 Like