Ale*_*lex 6 xdebug fedora selinux
xdebug服务器不连接到端口9000上的任何客户端,即:netbeans IDE,debugclient等.xdebug显示在phpinfo输出中.上述客户端继续等待建立连接.当我尝试运行时来自cli的php脚本它给出了以下警告消息:
"PHP警告:模块'xdebug'已在第0行的未知中加载" 9000端口已打开并显示在netstat --numeric-port -l命令中.我不知道可能出了什么问题.我检查了所有配置文件,一切似乎都没问题.任何帮助将不胜感激.我的配置文件部分
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
Run Code Online (Sandbox Code Playgroud)
php_api没有.一致
Xdebug Simple DBGp客户端(0.10.0)版权所有2002-2007 Derick Rethans. - libedit支持:已启用
等待调试服务器连接.
这是黑魔法!!
谢谢
实际上是Selinux不允许Httpd连接其他网络资源。
设置 httpd 的布尔值解决了问题:
setsebool -P httpd_can_network_connect on
Run Code Online (Sandbox Code Playgroud)
操作系统 Fedora 16-X_64
| 归档时间: |
|
| 查看次数: |
1333 次 |
| 最近记录: |