NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
127.0.0.1:7869 is not allowed in php configuration


Joined: 19 Aug 2006
Posts: 76
Reply with quote
I'm trying to debug a command line script on my prod server.

In php.ini:

=============

debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow=24.201.40.XXX
debugger.hosts_deny=ALL
debugger.ports=7869, 10000/16

=============

When I start the script using:

=============
php myscript.php DBGSESSID=1@24.201.40.XXX:7869
=============

It works! A breakpoint stops the execution and my local phped is able to debug the server script.

But when I use a "debugBreak();" inside the script itself instead, I get:

=============
DBG 3.9.2
Failed to start DBG session


Reason: connection to the client at 127.0.0.1:7869 is not allowed in php configuration

Not sure what it means? Visit http://www.nusphere.com/dbg/?err=-100 for troubleshooting.

Debugger request: "(null)"
Request found in: "(null)"
Target PHP version: "5.2.x"
Server API: "Command Line Interface"
Extensions API: "220060519"
Modules API: "20060613"
PHP API: "20041225"
=============

I tried adding 127.0.0.1 to the hosts_allow:

=============

debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow=24.201.40.XXX 127.0.0.1
debugger.hosts_deny=ALL
debugger.ports=7869, 10000/16

=============

But then I get this error:

=============

DBG 3.9.2
Failed to start DBG session


Reason: failed to connect to the client at 127.0.0.1:7869, please make sure that IDE is running

Not sure what it means? Visit http://www.nusphere.com/dbg/?err=-5 for troubleshooting.

Debugger request: "(null)"
Request found in: "(null)"
Target PHP version: "5.2.x"
Server API: "Command Line Interface"
Extensions API: "220060519"
Modules API: "20060613"
PHP API: "20041225"

=============


Any idea? I would need to be able to debug using "debugBreak()"...
View user's profileFind all posts by jlSend private message


Joined: 19 Aug 2006
Posts: 76
Reply with quote
Well, this problem led me to learn how to use ssh tunelling... And this is a great thing! I'll always debug like this now.
View user's profileFind all posts by jlSend private message
127.0.0.1:7869 is not allowed in php configuration
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic