Running XAMPP on network with IIS installed Windows Server - iis

I recently installed Windows server 2016 essentials on to one of my system which behaves as a server (let's call this as SYSTEM-1). That is connected to 3-4 systems on LAN.
On SYSTEM-1 # 192.168.1.2 - had IIS as default (port 80), and now I installed XAMPP (port 8080)
on SYSTEM-1 # 192.168.1.2
http://localhost -> opens IIS
http://localhost:8080 -> opens XAMPP
on SYSTEM-2 / SYSTEM-3 / SYSTEM-4 # 192.168.1.3/4/5
http://192.168.1.2 -> opens IIS from SYSTEM-1
http://192.168.1.2:8080 -> opens nothing
Apart from this I also want to access XAMPP (i.e on SYSTEM-1) from the internet
I tried for days to get this work. None of my searches helped me. Please help me and save my butt.

Related

Docker Xdebug LAN / Public Dev server

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.

MAMP Pro changing Server Name results in Access Denied error

All,
I have MAMP Pro 3.4. I have a virtual host 'mysite.local' running on the standard MAMP port 8888. I'm running Apache/MySQL server as my user (not WWW). Everything works.
But when I change the host name in MAMP to anything else (like 'localmysite', restart the servers and reload the site in Chrome, I get:
"Access Denied (policy_denied) Your system policy has denied access to the requested URL."
When I view the Hosts file from MAMP, it looks like MAMP correctly updated the host file:
127.0.0.1 localmysite # MAMP PRO - Do NOT remove this entry!
::1 localmysite # MAMP PRO - Do NOT remove this entry!
But it simply doesn't work. When I change the host name back to 'mysite.local' and restart the servers, it works again. What is wrong and how do I fix it so I can change the host name?
Thanks.
OK, after a lot of trial and error I figured out what was going on. It was a proxy server problem. My machine is connected to a corporate proxy server, and that server was attempting to interpret "localmysite" and failing to allow it.
In Chrome, I simply had to go to:
Settings->Advanced->Change proxy settings->Bypass proxy settings for these Hosts & Domains.
Then add "localmysite" to the list of sites that will bypass the proxy server.

How to access nginx server from host machine, installed on guest VM ?

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.

Asking for the user name and password for the localhost in firefox, after installing WAMP

I have already running IIS in my windows XP. I have also install wamp server.
**The wamp server is showing the inactive icon.
When I was installing the WAMP, I was asked to set the firefox as my default browers for WAMP. Now when I am going to start use any service of it (i.e. localhost or phpmyadmin), firefox is asking me for the username & password for the same (the dialog box saying that "Enter username and password for http: //localhost")
What should I do ?
Thanks
You have to turn of IIS by putting inetmgr in run, then you will get window for IIS by that you can turn off IIS.
Because IIS is run on port 80 and apache of WAMP is also trying to run on port 80,but that was acquired by IIS so you have to stop IIS.
And regarding firefox it is upto you ,that you have to put it default or not.

Cygwin reverse shell xdebug Windows 7 Komodo session not working?

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.

Resources