I have been trying to get a debug session working over the internet between a PHP/Apache server and an eval of PHPEd. I have seen this product working on my local machine, but it needs to work over the internet.
I am trying to start the debugger with a url:
Quote: |
http://servername/page.php?DBGSESSID=1@clienthost:7869
|
But the debugger continues to fail with the following message:
Quote: |
DBG
Failed to start debug session
reason:
connection to the client address NN.NNN.NN.NNN:7869 is not allowed
|
I first tried ssh tunnelling in order to have security, then I tried a direct connection by adding my client host ip to the hosts_allow, and have finally gone to hosts_allow=ALL in order to try to coax this debugger into debugging. I have verified that I can telnet to the debug listener on my client host port 7869 from the server, and that works fine. So the listener is sitting there waiting for a connection from the server.
But dbg will not connect.
Why?
I have Nusphere PHPEd Version 3.2.1 Build 3239eval running on a RedHat client. On the server, I have PHP version 4.3.2., and the dbg.so-4.3.2, showing up in phpinfo() as version 2.14.10 -- the one that came with the eval. My config in php.ini is as follows:
[debugger]
debugger.enabled = On
debugger.profiler_enabled = On
debugger.hosts_allow = ALL
;debugger.hosts_deny = ALL
debugger.ports = 7870
debugger.fail_silently = Off |
This is only the current config; I have tried many other configs, shutting down and rebooting apache each time.
One additional piece of information, I have run tcpdump to examine any packets coming into the clienthost, and nothing comes in from the server besides the http response carrying the error. So no packets are leaving the server destined for the the listener client.
What can I do to make this work?