Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save sheanhoxie/9f881933973c2b8c382da0d2b2d30234 to your computer and use it in GitHub Desktop.

Select an option

Save sheanhoxie/9f881933973c2b8c382da0d2b2d30234 to your computer and use it in GitHub Desktop.
Sometimes running xdebug with PHPStorm will not kill a php built-in web server after it's done, resulting in an error saying that something is already listening on that port.
Find what's listening on port 8080
==================================
sudo lsof -P -iTCP -sTCP:LISTEN | grep -i 8080
ex. output
----------
php 8046 username 5u IPv4 0xd9c3cdd5c98d4b65 0t0 TCP localhost:8080 (LISTEN)
Kill It
=======
kill 8046
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment