PhpStorm: webserver fails to listen on, reason: access denied


I am following the ecellent tutorials/screencast/webinar on debugging with phpstorm here:

Unforunately I am stuck at around minute 15:40, because my srver setup within phpstorm throws the error:

/Applications/MAMP/bin/php/php5.5.14/bin/php -S -t /Volumes/_II_/SITES/PoorManDebugging
[Sat Oct  4 11:24:02 2014] Failed to listen on (reason: Permission denied)

Process finished with exit code 1

My assumption is that I do not have to configure anything else anywhere else - is that correct? Or do I have to edit /etc/hosts?
Also, I do not have any other program, that delivers a server (like MAMP, even though I am using its php), running.

I am on a Mac with OSX 10.9.5, using PhpStorm 8.0.2.

Some screenshots show
- the server configurations
- the xdebug config of the used php ini file
- the output of who is listening on my Mac (which I get via sudo lsof -nP -iTCP -sTCP:LISTEN)

I am grateful for any advices - thank you!
Cheers, Robert

Bildschirmfoto 2014-10-04 um 11.35.32.png
Bildschirmfoto 2014-10-04 um 11.35.08.png
Bildschirmfoto 2014-10-04 um 11.32.23.png
Bildschirmfoto 2014-10-04 um 11.32.07.png
Bildschirmfoto 2014-10-04 um 11.31.55.png
Comment actions Permalink

Hi there,

This has nothing to do with PhpStorm.

As far as I know you should have root access rights (process with root rights) to run anything on privileged ports (ports below 1024). In other words: it must be launched under sudo.

Therefore: use ordinary ports (e.g. 8080 etc)

You may search for some workarounds, for example:

Comment actions Permalink

You are the hero of my day!!!

Thank you very much for your quick help!

Have a good day!



Please sign in to leave a comment.