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

Hi,

I am following the ecellent tutorials/screencast/webinar on debugging with phpstorm here:
https://www.youtube.com/watch?v=LUTolQw8K9A#t=1788

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 127.0.0.1:666 -t /Volumes/_II_/SITES/PoorManDebugging
[Sat Oct  4 11:24:02 2014] Failed to listen on 127.0.0.1:666 (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



Attachment(s):
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
2 comments
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: http://apple.stackexchange.com/questions/37418/how-can-i-open-port-80-so-a-non-root-process-can-bind-to-it

0
Comment actions Permalink

You are the hero of my day!!!

Thank you very much for your quick help!

Have a good day!

Robert

0

Please sign in to leave a comment.