Zend REMOTE DEBUGGING帮助!

我花了最近2天的时间尝试从家里的Windows机器到我的远程centOS服务器进行远程调试 运行WHM / Cpanel .. </ p>

我来自VS背景,无法相信这可能是困难的。 在这一点上感觉很无用!</ p>

好的嘘声对我来说。 这是我的设置:</ p>


  • 本地Windows机器上的防火墙已关闭</ li>
  • 通过phpinfo.php安装和确认Zend远程调试器</ li>
  • 在项目的webroot上安装dummy.php </ li>
  • zend_debugger.allow_hosts = 24.150.xxx.xx,192.168.1.118,127.0.0.1 </ li>
    </ ul >

    第一个ip是我的路由器IP,然后是我的机器ip ..我一直收到以下错误:</ p>

    无法连接到主机'192.168.1.118' 。 主机'127.0.0.1'不允许打开调试会话 - 请在ini文件中配置zend_debugger.allow_hosts。</ p>

    非常感谢任何帮助! 谢谢!</ p>
    </ div>

展开原文

原文

i have spent the last 2 days trying to get remote debugging working from my windows machine at home to my remote centOS server running WHM/Cpanel..

I am coming from a VS background and can't believe it can be this difficult. Feeling pretty useless at this point!

Ok boo hoo for me. Here is my setup:

  • Firewall on local windows machine is turned OFF
  • Zend remote debugger installed and confirmed through phpinfo.php
  • dummy.php installed on webroot of project
  • zend_debugger.allow_hosts=24.150.xxx.xx,192.168.1.118,127.0.0.1

the first ip is my router IP, then my machine ip..I keep getting the following error:

Failed to connect to host '192.168.1.118'. Host '127.0.0.1' is not allowed to open debug sessions - please configure zend_debugger.allow_hosts in the ini file.

ANY help is greatly appreciated! thanks!

duanre4421
duanre4421 您的phpinfo()是否正确显示允许的主机配置?
9 年多之前 回复

1个回答

It looks like you're using NAT on your local network which means that you need to either explicitly pass connections on port 10120 (you will need to verify this) to your local deve box or use tunneling. I would recommend tunneling (http://kb.zend.com/index.php?View=entry&EntryID=109) since it will probably be easier.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐