I've a webserver with xdebug 2.0.3 and Komodo 6 with Windows 7 64 bit but I can't connect to xdebug? I've tried a reverse shell with cygwin and I can connect to my server however when I try the debugger option in Komodo it gives me an error. In Komodo I've open a remote ftp session to load my file from the host. Normally with Linux it works with a reverse shell.
Edit: It's a bit on top of my head so I'm trying to debug my local virtual machine but Komodo gives me this error couldn't bind to local port 9000 and I don't have a firewall. when I enable debugging in the browser window with my opera extension I get success message client found in my xdebug log and when I load my html page but the connection is closed after the loading and it's not breaking at my breakpoint either. Here is the output from message log:
Log opened at 2012-04-30 08:48:40
I: Checking remote connect back address.
I: Remote address found, connecting to 127.0.0.1:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/
xdebug" fileuri="file:///htdocs/typo3_src-4.7.0/index.php" language="PHP"
protocol_version="1.0" appid="5101" idekey="komodo-xdebug"><engine
version="2.2.0rc2"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></
author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c)
2002-2012 by Derick Rethans]]></copyright></init>
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/
xdebug" status="stopping" reason="ok"></response>
Log closed at 2012-04-30 08:48:41
My webserver is a lighttpd with FastCGI but that shouldn't be the problem because I already got it working with a remote host and a reverse shell but not in Windows 7 and with Vmware or in Vmware? I'm currently reading this post http://forums.netbeans.org/topic1513-30.html and I hope it helps.
Also I cannot see that a server is listening on port 9000. Is this a Vmware problem?
EDIT: I got it working on my virtual machine but I'm still interested in solving this issue:
xdebug connecting from host to virtual machine
xdebug connecting from host to remote machine (it works for me but only with a reverse shell)
xdebug connectiong from virtual machine to remote machine (didn't test it yet)
What can be interesting to is developement in Windows 7:
xdebug connecting from Windows 7 to remote machine
xdebug connection from Windows 7 to virtual machine
Use the debugger connection preferences to set the IP address of the virtual machine as the debugger proxy. Change the port that Komodo listens to from the default value of 9000 to a system provided free port, 8080, or whatever port your virtual host or localhost is running.
Related
I want to get Xdebug running in a semi secure manner over LAN in the office. Our current setup is as follows:
Local server on LAN network under 192.168.1.1 with Ubuntu Server 16
Multiple instances of docker with PHP / Apache running on Ubuntu server
Jwilder nginx proxy for forwarding all requests to individual docker containers
https://github.com/jwilder/nginx-proxy
Files are directly edited over an internal SMB share where Windows hosts connect to the Linux share. These are the hosts running PhpStorm.
The machine is exposed to the world using port 80. LAN has access to all ports.
I'm at a bit of a loss how to properly setup Xdebug using PhpStorm where only those within our LAN can trigger the debugger and debug from map files from a Linux host on Windows.
A DBGp proxy would be the answer here.
It limits all debugging connections from the web server to a single host inside the LAN.
It allows you to perform multi-user debugging with the help of IDE keys.
JFYI, in Xdebug, it's the web server that initiates a TCP connection to the client (the DBGp proxy in this case), so some Docker networking magic is required here.
I have access to a server running CentOS 6.7 on which I installed apache and configured the /etc/httpd/conf/httpd.conf file.
I can see the webpage if I ssh to the server and run
$ lynx http://192.99.x.x
but I would like to access it using a real browser. If I try to access it from my computer, it tells me that this webpage is unavailable and if I try to run firefox on the CentOS terminal, I get error: No Display specified.
Is there a way to see the webpage in a browser without port forwarding ?
Without port forwarding, you will need to setup X11 forwarding in SSH. This will allow you to open graphical applications remotely. Below is a link to configure X11 forwarding for SSH.
X11 Forwarding with SSH
CentOS 6 SSH Configuration
I'm sure my lack of linux knowledge is what's causing this problem. I created a program in C# which uses QuickFix to do various things. I need this program to run on linux so I created an ubuntu virtual machine and recompiled the program with mono. The application starts ok but can't connect to my simulated exchange running on a windows machine. The error log returns Connection failed: Connection refused.
Could it be that I haven't setup linux properly?
Thanks
See if your VM can actually connect to that port (while the windows application is listening) with telnet:
telnet <ip> <port>
If telnet can't connect to the port, then you should probably check your VM network configuration, the interface configuration on ubuntu, and probably the firewall (both on windows and linux). Run ifconfig to see how your network is configured.
Host Machine - Win 7
Guest - Fedora
I have installed nginx web server on guest fedora machine and I can access the webpage inside guest machine using the interface address. How can I access the web page from host machine's browser ?
I am using bridged connection.
Router is assigning 192.168.0.16 to the guest machine's interface. I tried same address in my host machine but it doesn't work.
Based on your description:
First you should check your web application's config. You don't mention which type of your web application running on your Apache server, some are launched with the specific ip argment 127.0.0.1( or localhost), so kind of these web application can only be visited on your localhost computer. You should change the ip argument to 0.0.0.0
Second if the "Fisrt" failed, check the connection of the two server(host and your guest) by using telnet.
On your Win7, you can use the command:
telnet ip port
for example:
telnet 192.168.0.16 80
80 is the default port of Apache Http(s) Server.
if the command don't show the "connection refused" error, your Apache server is goood, so it might be something wrong of your web application.
If that, show me your error msg then we go on further.
I have VPS with CENTOS 6.4 x86_64 virtuozzo – vps9458 and WHM 11.34.1 (build 14). I am trying to connect server by Putty but I am only getting below error:
server unexpectedly closed network connection
My WHM url look like this 1.2.3.5:2087 and in putty I am using 1.2.3.5 as Host name and 2087 as port. I always see error above.
Please guide what I am doing wrong.
Thanks
Usually connecting via putty using SSH you will need to be on port 22. So try port 22 instead.
2087 is for cpanel/whm and is meant for the web browser only.
If it still doesn't work email your web hosting provider.