Skip to content

Instantly share code, notes, and snippets.

@mykeels
Last active October 1, 2018 00:59
Show Gist options
  • Save mykeels/3fcf3087ef00959c1f7843f55bb0dd3c to your computer and use it in GitHub Desktop.
Save mykeels/3fcf3087ef00959c1f7843f55bb0dd3c to your computer and use it in GitHub Desktop.
Kill Apache Service on Mac - bind() to 0.0.0.0:80 failed (48: Address already in use)

To find out the program interfering with port 80 on Mac,

sudo lsof -i:80

If it's httpd it's the Apache Service, so use the command in kill-apache.sh in your terminal to shut it down, then valet restart

If you get a 404, try valet link in your app directory.

Worked for me!

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment