Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/271.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 无法从Netbeans连接到AWS EC2上的Xdebug_Php_Netbeans_Amazon Web Services_Amazon Ec2_Xdebug - Fatal编程技术网

Php 无法从Netbeans连接到AWS EC2上的Xdebug

Php 无法从Netbeans连接到AWS EC2上的Xdebug,php,netbeans,amazon-web-services,amazon-ec2,xdebug,Php,Netbeans,Amazon Web Services,Amazon Ec2,Xdebug,我已经尝试了好几天,但无法从AWSEC2上的PHP项目的Netbeans中使用xdebug。我在Windows上使用Xdebug已有多年,但需要调试一个在Windows上没有的问题。我在网上读了很多帖子,尝试了我能找到的一切,但都没有用 我在php.ini中配置了Xdebug设置,phpinfo()显示Xdebug的配置正确且最新 将xdebug条目放入php.ini后,我可以获得xdebug跟踪,但无法看到写入xdebug.remote_日志文件的任何内容。几天前,我在测试日志文件中看到了几个

我已经尝试了好几天,但无法从AWSEC2上的PHP项目的Netbeans中使用xdebug。我在Windows上使用Xdebug已有多年,但需要调试一个在Windows上没有的问题。我在网上读了很多帖子,尝试了我能找到的一切,但都没有用

我在php.ini中配置了Xdebug设置,phpinfo()显示Xdebug的配置正确且最新

将xdebug条目放入php.ini后,我可以获得xdebug跟踪,但无法看到写入xdebug.remote_日志文件的任何内容。几天前,我在测试日志文件中看到了几个条目(表示无法连接到客户机),但在过去几天中,我看不到写入其中的任何内容。即使从EC2到我的窗口存在某种问题,我当然希望在日志文件中看到一些日志条目。我可以从ec2远程登录到我的Windows,并通过端口9000连接。我还可以从Windows机器为telnet捕获的嗅探器跟踪中看到telnet数据包,但没有来自Xdebug的数据包。看起来EC2上的xdebug从未尝试连接到Windows。是否有其他方法可以告诉Xdebug正在尝试连接到我的Windows?哪些问题可能会阻止Xdebug尝试接触

在/etc/services文件中,我在端口9000 cslistener上看到了一些东西,这是我需要担心的吗?我没有看到cslistener进程,也没有尝试将xdebug更改为另一个端口,这可能有其自身的问题

在我单击Netbeans上的debug之后,我所能看到的就是等待连接(Netbeans xdebug)

下面是我在php.ini中的xdebug条目

[Xdebug] 
zend_extension="/usr/lib64/php/modules/xdebug.so" 
;xdebug.remote_autostart=1 
xdebug.remote_enable=1 
xdebug.idekey="netbeans-xdebug" 
xdebug.remote_connect_back=1 
xdebug.remote_handler=dbgp 
xdebug.remote_mode=reg 
;xdebug.remote_host=111.111.111.111 
xdebug.remote_port=9000 
xdebug.auto_trace=On 
xdebug.trace_output_dir=/home/log 
xdebug.remote_log=/tmp/xdebug_remote_log.log 
非常感谢您的帮助和建议