XAMPP not accessible within LAN

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

XAMPP not accessible within LAN

Postby traceurigel » 31. March 2011 07:34

Hello all,
I have been having a problem with XAMPP 1.7.3 -
I have set up PHProxy and Ampache with XAMPP, and can access them from localhost/ and they work just fine. However, when I try to access any of these from another computer within my Local Area Network,
the page seems to infinitely load and never reach an error page or anything, for that matter. I am on Windows 7 SP1. Any help is appreciated :)

By the way... if it helps, here is the data from the "Status" section of XAMPP.
MySQL database DEACTIVATED
PHP DEACTIVATED
Perl with mod_perl DEACTIVATED
Apache::ASP DEACTIVATED
HTTPS (SSL) DEACTIVATED
Common Gateway Interface (CGI) DEACTIVATED
Server Side Includes (SSI) DEACTIVATED
IPv4 DEACTIVATED
IPv6 ACTIVATED
SMTP Service DEACTIVATED
FTP Service DEACTIVATED
Last edited by traceurigel on 01. April 2011 01:57, edited 1 time in total.
traceurigel
 
Posts: 8
Joined: 31. March 2011 07:21

Re: XAMPP not accessible within LAN

Postby Sharley » 01. April 2011 01:09

traceurigel wrote:However, when I try to access any of these from another computer within my Local Area Network
How exactly are you trying to access your XAMPP computer from another PC on the LAN?

Did you check the \xampp\apache\logs\error.log and access.log files for clues?
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: XAMPP not accessible within LAN

Postby traceurigel » 01. April 2011 02:05

Sharley wrote:How exactly are you trying to access your XAMPP computer from another PC on the LAN?

I go to a browser on the other computer and type in my local IP address in the address bar (192.168.2.20) and then, after that doesn't do anything, try /xampp or /ampache. It then proceeds to continue attempting to load but never actually loading anything.

Sharley wrote:Did you check the \xampp\apache\logs\error.log and access.log files for clues?

Yes, I did. I don't see anything that stands out, can you tell me what exactly I should be looking for?
traceurigel
 
Posts: 8
Joined: 31. March 2011 07:21

Re: XAMPP not accessible within LAN

Postby Sharley » 01. April 2011 02:39

From all the red deactivated status messages it looks like you have a problems with your XAMPP installation - MySQL and PHP should be activated if they are indeed running.

When you run xampp-control.exe which is the XAMPP Control Panel do you see Apache and MySQL showing Running in green?

When you ran setup_xampp.bat file did you select Auto for IPv6 or select IPv4?

Did you select to disable SSL?

So if you run the setup_xampp.bat file again I suggest you select the items like so:

1. This will start the XAMPP Control Panel - no need to change this.
2. Will relocate XAMPP to another location - no need to change this.
3. disable HTTPS - means it is enabled and it should be.
4. disable Server Side Includes - means SSI is enabled and it should be.
5. Keep selecting 5 until it shows 5. enable IPv4 only (current IPv4/6 Auto)
6. enable mod_perl - means mod-perl is disabled and it should be.
7. Apache :: ASP is disabled - and it should be disabled.
8. disable mod_jk - means mod_jk is enabled and it should be.

When you are satisfied that the above settings look correct then select x to exit.

Run the XAMPP Control Panel and start Apache and MySQL.

If they both show running go to http://localhost and make sure you can see the XAMPP Demo Home Page and all the demos Work.


If they do then go to C:\Windows\system32\drivers\etc\ and drag the host file into your notepad or similar text editor and make sure the first 2 lines look like this:
Code: Select all
127.0.0.1 localhost
::1 localhost


Next open the \xampp\apache\conf\httpd.conf file again in your text editor and look for this line and make sure it looks like this
Code: Select all
#Listen 0.0.0.0:80
#Listen [::]:80
Listen 80
If not then change it so it does then save the file and restart Apache.


Now we have all the above set to what is basically the default settings try again to access http://localhost and you should get the demo page again.

Next if the above works you can try and get the demo page using the LAN IP and if successful you can then try your installed scrpts again.

If they fail then at least we know it will now be those 2 installed scripts that may need configuration tweaks especially if they are configured to only use localhost 127.0.0.1 addresses.

Good luck.
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: XAMPP not accessible within LAN

Postby traceurigel » 01. April 2011 03:51

Sharley wrote:From all the red deactivated status messages it looks like you have a problems with your XAMPP installation - MySQL and PHP should be activated if they are indeed running.

When you run xampp-control.exe which is the XAMPP Control Panel do you see Apache and MySQL showing Running in green?

Yes, they are. I will follow your suggestions and give you an update! Thank you so much for your time and for helping me out. :)
Sharley wrote:1. This will start the XAMPP Control Panel - no need to change this.
2. Will relocate XAMPP to another location - no need to change this.
3. disable HTTPS - means it is enabled and it should be.
4. disable Server Side Includes - means SSI is enabled and it should be.
5. Keep selecting 5 until it shows 5. enable IPv4 only (current IPv4/6 Auto)
6. enable mod_perl - means mod-perl is disabled and it should be.
7. Apache :: ASP is disabled - and it should be disabled.
8. disable mod_jk - means mod_jk is enabled and it should be.

UPDATE:
Mine does not have all of the options you said. Here are the options I have:
1. start XAMPP Control Panel
2. relocate XAMPP
(current path: C:\xampp)
3. disable HTTPS (SSL)
4. disable Server Side Includes (SSI)
5. disable mod_perl
6. disable Apache::ASP

x Exit
Last edited by traceurigel on 01. April 2011 04:05, edited 2 times in total.
traceurigel
 
Posts: 8
Joined: 31. March 2011 07:21

Re: XAMPP not accessible within LAN

Postby Sharley » 01. April 2011 04:00

Your most welcome. :)

The error.log file can be pasted here but only the latest entries that will apply when you stop and then restart Apache - also if your error.log and access.log files are starting to get a bit big then after you stop Apache you can delete the contents and save the files before starting Apache again as it can't be done when Apache is running.
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: XAMPP not accessible within LAN

Postby Sharley » 01. April 2011 04:04

OK, disable mod-perl which will disable ASP automagically.
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: XAMPP not accessible within LAN

Postby traceurigel » 01. April 2011 04:06

Okay, I did that. Now I will clear those two files and post the most recent entries.

I did the demos and all of them work just fine, except for the CD Collection, which says
Could not connect to database!
Is MySQL running or did you change the password?

I have changed the MySQL password, which might be the reason for that. I don't know how to change it back to the default password.
Last edited by traceurigel on 01. April 2011 04:16, edited 1 time in total.
traceurigel
 
Posts: 8
Joined: 31. March 2011 07:21

Re: XAMPP not accessible within LAN

Postby Sharley » 01. April 2011 04:10

Make sure also that the host file and the httpd.conf file are as I posted above.

Also please paste this section of your httpd-xampp.conf file found in the xampp\apache\conf\extra folder:
Code: Select all
#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Order deny,allow
    Deny from all
    Allow from ::1 127.0.0.0/8 \
               fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
               fe80::/10 169.254.0.0/16

    ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
or at least make sure it looks like the above code.
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: XAMPP not accessible within LAN

Postby Sharley » 01. April 2011 04:24

traceurigel wrote:I did the demos and all of them work just fine, except for the CD Collection, which says
Could not connect to database!
Is MySQL running or did you change the password?

I have changed the MySQL password, which might be the reason for that. I don't know how to change it back to the default password.
That CD Collection behavior is correct it means your installation is fine for localhost.

Now you need to try your LAN again and this time use the full URI http://xxx.xxx.xxx.xxx/index.php will do for starters.
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: XAMPP not accessible within LAN

Postby traceurigel » 01. April 2011 04:24

Here's the error.log
Code: Select all
[Thu Mar 31 20:23:33 2011] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 31 20:23:33 2011] [notice] Digest: done
[Thu Mar 31 20:23:35 2011] [notice] Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 configured -- resuming normal operations
[Thu Mar 31 20:23:35 2011] [notice] Server built: Nov 11 2009 14:29:03
[Thu Mar 31 20:23:35 2011] [notice] Parent: Created child process 6704
[Thu Mar 31 20:23:36 2011] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 31 20:23:36 2011] [notice] Digest: done
[Thu Mar 31 20:23:36 2011] [notice] Child 6704: Child process is running
[Thu Mar 31 20:23:36 2011] [notice] Child 6704: Acquired the start mutex.
[Thu Mar 31 20:23:36 2011] [notice] Child 6704: Starting 150 worker threads.
[Thu Mar 31 20:23:36 2011] [error] (OS 10022)An invalid argument was supplied.  : winnt_accept: getsockname error on listening socket, is IPv6 available?
[Thu Mar 31 20:23:36 2011] [error] (OS 10022)An invalid argument was supplied.  : winnt_accept: getsockname error on listening socket, is IPv6 available?
[Thu Mar 31 20:23:36 2011] [notice] Child 6704: Starting thread to listen on port 443.
[Thu Mar 31 20:23:36 2011] [notice] Child 6704: Starting thread to listen on port 80.


After trying the http://192.168.xx.xx/index.php it still does the same thing. It just appears to continue loading.

Okay, I just checked the status page again. It still has the same results from my first post.
traceurigel
 
Posts: 8
Joined: 31. March 2011 07:21

Re: XAMPP not accessible within LAN

Postby Sharley » 01. April 2011 04:31

That's fine as we are going through a process of elimination and have arrived at the httpd.conf file and the Windows HOST file as these errors seem to indicate an IPv6 issue
Code: Select all
[Thu Mar 31 20:23:36 2011] [error] (OS 10022)An invalid argument was supplied.  : winnt_accept: getsockname error on listening socket, is IPv6 available?
[Thu Mar 31 20:23:36 2011] [error] (OS 10022)An invalid argument was supplied.  : winnt_accept: getsockname error on listening socket, is IPv6 available?
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: XAMPP not accessible within LAN

Postby traceurigel » 01. April 2011 04:34

Okay. How will we resolve this?
By the way, in my "Local Area Connection Status" settings window (Control Panel > Network and Internet > Network Connections > Local Area Connection) it says under IPv6 Connnectivity "No Internet Access"
Could that have something to do with the problem? I'm assuming yes.
traceurigel
 
Posts: 8
Joined: 31. March 2011 07:21

Re: XAMPP not accessible within LAN

Postby Sharley » 01. April 2011 04:43

Check these as I mentioned above:

Go to C:\Windows\system32\drivers\etc\ and drag the host file into your notepad or similar text editor and make sure the first 2 lines look like this:
Code: Select all
127.0.0.1 localhost
::1 localhost


Next open the \xampp\apache\conf\httpd.conf file again in your text editor and look for these lines and make sure they looks like this
Code: Select all
#Listen 0.0.0.0:80
#Listen [::]:80
Listen 80
If not then change them so they do, then save the file and restart Apache.
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: XAMPP not accessible within LAN

Postby traceurigel » 01. April 2011 04:44

Yes, I did that a few minutes ago. Same results.
traceurigel
 
Posts: 8
Joined: 31. March 2011 07:21

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 140 guests