Skip to content
Advertisement

Error running script.php: Port 9000 is busy

I set php.ini and Debug config in phpstorm. Trying to debug php script outputs in phpstorm Event log with:

JavaScript

end of php.ini:

JavaScript

Debug port in pStorm is also set on 9000. netstat -na outputs with:

JavaScript

What if I set to other port. eg setting it to 10001 seems to do the job. Or just how to make it work properly. I am not sure if I understand how the xDebug works. Its like running Debug("script.php")(Shift+F9) in phpstorm with set breakpoint in file ?

Does somebody have an idea ?

EDIT:

From: http://xdebug.org/docs/remote

JavaScript

What if I change port for other than 9000 ? Maybe something over 50k .

Advertisement

Answer

Could not identify with lsof and netstat the pid of process running on 9000 port. Temporary simplest sollution is just to change the port in phpstorm and php.ini for something else not actually used (like 10k).

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement