xdebug 无法与客户端连接?
xdebug 服务器未连接到端口 9000 上的任何客户端 即:Netbeans IDE、debugclient 等。xdebug 显示在 phpinfo 输出中。上述客户端继续等待建立连接。当我尝试从 cli 运行 php 脚本时,它会给出以下警告消息:
“PHP 警告:模块 'xdebug' 已在第 0 行未知中加载” 9000 端口已打开并显示在 netstat --numeric-port -l 命令中。 我不知道可能出了什么问题。我检查了所有配置文件,一切似乎都正常。任何帮助将不胜感激。 我的配置文件 php_api 部分
Linux abc.localdomain 3.1.1-2.fc16.x86_64 #1 SMP Mon Nov 14 15:46:10 UTC 2011 x86_64
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with Xdebug v2.1.2, Copyright (c) 2002-2011, by Derick Rethans
[Zend]
zend_extension=/usr/lib64/php/modules/xdebug.so
[XDebug]
xdebug.remote_enable=On
xdebug.remote_autostart=On
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.remote_log=/var/log/xdebug.log
没有。 一致
与Xdebug Simple DBGp 客户端 (0.10.0) 版权所有 2002-2007 Derick Rethans。 - libedit 支持:启用
等待调试服务器连接。
难道是黑魔法!!
谢谢
The xdebug server doesn't connect to any of the clients on port 9000 ie:Netbeans IDE ,debugclient etc.xdebug is shown in phpinfo output.The above clients keep on waiting for the connection to be established.when ever I try to run a php script from the cli it gives the following warning message:
"PHP Warning: Module 'xdebug' already loaded in Unknown on line 0"
The 9000 port has been opened and shows up in the netstat --numeric-port -l command.
I have no idea what might have gone wrong.I have checked all the configuration files,everything seems ok. Any help will be appreciated.
Section of my configuration files
Linux abc.localdomain 3.1.1-2.fc16.x86_64 #1 SMP Mon Nov 14 15:46:10 UTC 2011 x86_64
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with Xdebug v2.1.2, Copyright (c) 2002-2011, by Derick Rethans
[Zend]
zend_extension=/usr/lib64/php/modules/xdebug.so
[XDebug]
xdebug.remote_enable=On
xdebug.remote_autostart=On
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.remote_log=/var/log/xdebug.log
php_api no. coincides
Xdebug Simple DBGp client (0.10.0)
Copyright 2002-2007 by Derick Rethans.
- libedit support: enabled
Waiting for debug server to connect.
Is it black magic!!
Thank You
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
实际上是Selinux不允许Httpd连接其他网络资源。
设置 httpd 的布尔值解决了问题:
OS Fedora 16-X_64
It was actually Selinux not allowing Httpd to connect to other network resources.
Setting the boolean for httpd solved the problem:
OS Fedora 16-X_64
对我来说,解决方案
意味着 SELinux 现在允许 httpd 执行这个共享对象。
For me the solution was
meaning SELinux now allows httpd to execute this shared object.