Changed Port on xampp - can't access over network.

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Changed Port on xampp - can't access over network.

Postby Westovski » 18. November 2011 23:17

Hi guys,

I'm having a bit of trouble.

I've installed a copy of xampp onto my server that is running windows home server 2011. This was not a problem, however, apache wouldn't start as something else is running on port 80 (web access).

So I followed a tutorial and amended a couple of config files and changed the port to 6060, lo and behold apache started fine - this means, internally, from the server I can type localhost:6060 and hit xampp.

However, if i then try and get to it from an other pc on the network, it just times out and resorts to a google page telling me it can't find the page.

I'd also got a copy of xampp installed on one of my clients on the network so out of curiosity, i tried hitting that from the servers browser and it worked first time.

I guess I needed to change something else within xampp to allow it to listen on port 6060 over the network..would that sound about right?
Westovski
 
Posts: 5
Joined: 18. November 2011 23:04
Operating System: Windows 7 - WHS 2011

Re: Changed Port on xampp - can't access over network.

Postby Sharley » 18. November 2011 23:22

From the network what do you see when you type in a browser http://[the IP of the XAMPP machine]:6060/index.html - note the added index.html page in the URI.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Changed Port on xampp - can't access over network.

Postby Westovski » 18. November 2011 23:29

Hi, thanks for the quick response.

All i got was this:

Oops! Google Chrome could not connect to 192.168.1.78:6060
Suggestions:
Try reloading: 192.­168.­1.­78:­6060/­xampp/­index.­html
Search on Google:
Westovski
 
Posts: 5
Joined: 18. November 2011 23:04
Operating System: Windows 7 - WHS 2011

Re: Changed Port on xampp - can't access over network.

Postby Sharley » 18. November 2011 23:34

If your router and or firewall or other security settings allow access through port 6060 then the above URI should have connected to Apache listening on port 6060 and given you a test page back that tells you It Works!.

Also please try another browser and see if you get a better message back as Chrome is hard coded or set to visit Google when ever it can.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Changed Port on xampp - can't access over network.

Postby Westovski » 18. November 2011 23:44

OK, i've just changed the Port Forwarding on my router so all traffic on 6060 goes straight to the server but still no joy. Also just tried it in i.e. and again no joy...
Westovski
 
Posts: 5
Joined: 18. November 2011 23:04
Operating System: Windows 7 - WHS 2011

Re: Changed Port on xampp - can't access over network.

Postby Sharley » 18. November 2011 23:53

Try that same test page using a browser on the PC that XAMPP is installed on just so that you know what the test page looks like.

Check the \xampp\apache\logs\access.log file and the error.log file and see if they hold any information that Apache is being contacted from your network.

XAMPP is setup to allow access to the test page in the URI from both the LAN and WAN (Internet).

You will need to double check your settings in your network.

Paste in code tags the settings you changed in the httpd.conf file please.

Also tell me of any other changes to configuration files in any other XAMPP components that you may have changed.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Changed Port on xampp - can't access over network.

Postby Westovski » 19. November 2011 00:23

OK, i've seen the test page and no such luck :(

The error log is fairly inconclusive i'm afraid:

Code: Select all
[Thu Nov 17 00:14:57 2011] [notice] Digest: generating secret for digest authentication ...
[Thu Nov 17 00:14:57 2011] [notice] Digest: done
[Thu Nov 17 00:14:59 2011] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Thu Nov 17 00:14:59 2011] [notice] Server built: Sep 10 2011 11:34:11
[Thu Nov 17 00:14:59 2011] [notice] Parent: Created child process 9652
[Thu Nov 17 00:15:00 2011] [notice] Digest: generating secret for digest authentication ...
[Thu Nov 17 00:15:00 2011] [notice] Digest: done
[Thu Nov 17 00:15:02 2011] [notice] Child 9652: Child process is running
[Thu Nov 17 00:15:02 2011] [notice] Child 9652: Acquired the start mutex.
[Thu Nov 17 00:15:02 2011] [notice] Child 9652: Starting 150 worker threads.
[Thu Nov 17 00:15:02 2011] [notice] Child 9652: Starting thread to listen on port 6060.
[Thu Nov 17 00:15:02 2011] [notice] Child 9652: Starting thread to listen on port 6060.


I used the DTX development to change the port: http://nat32.com/dtx/

I can't find the exact changes I made, but I followed the instructions in those documents (leaving out the mysql changes as that service was ok).
Westovski
 
Posts: 5
Joined: 18. November 2011 23:04
Operating System: Windows 7 - WHS 2011

Re: Changed Port on xampp - can't access over network.

Postby Sharley » 19. November 2011 00:37

That DTX is older than me and should not be used now as we have a new CP that you can download and use from here:
viewtopic.php?f=16&p=186862#p186862
Simply drag the exe file into the xampp folder, create a shortcut and then double click on it to use.

It has some very useful features.


However the port changes you made would seem to be fine.

The log file is absolutely correct and shows Apache listening on port 6060 and up to that point nothing has got past your router/firewalls etc. to the Apache server, so that is where you need to concentrate your efforts in finding out why.

Try ping or tracert from the network computers to the IP of your XAMPP computer.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Changed Port on xampp - can't access over network.

Postby Westovski » 19. November 2011 00:45

OK, i'm glad that we've ruled out xampp anyway :) thanks a lot for your help.
Westovski
 
Posts: 5
Joined: 18. November 2011 23:04
Operating System: Windows 7 - WHS 2011

Re: Changed Port on xampp - can't access over network.

Postby Sharley » 19. November 2011 00:50

The \xampp\apache\conf\httpd.conf file should look like this at about line 47
Code: Select all
Listen 6060
or
Code: Select all
Listen *:6060
If you edit that file save it and then restart Apache and check that the test page works.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Changed Port on xampp - can't access over network.

Postby Sharley » 19. November 2011 01:21

Here are some links that might help you with your network:
http://portforward.com/

This program is FREE.
http://www.simpleportforwarding.com/
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 213 guests