XAMPP accross local network help please

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

XAMPP accross local network help please

Postby StrangeRanger » 03. September 2010 14:09

Hi,
I'm running xampp 1.7.3 on an XP machine. It works perfectly on my local machine, but when I try to access it across our local network all I get is the xampp welcome/home page.
I've been reading for hours and have tried everything I've seen suggested including changing the various .conf files, checking port forwarding etc.
I don't understand why across the newt work I can see the "home page" but not access anything else. Can someone please suggest something else for me to try?
Thank you,
-sr
StrangeRanger
 
Posts: 11
Joined: 16. September 2008 20:29

Re: XAMPP accross local network help please

Postby JonB » 03. September 2010 15:01

what exactly do you mean by "anything else"

I don't understand why across the newt work I can see the "home page" but not access anything else


You should tell us exactly what you are trying to access, and the error messages (or whatever) you are getting. We don't have a mod_VulcanMindMeld for XAMPP quite yet. :shock:

Good Luck


ycf
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: XAMPP accross local network help please

Postby StrangeRanger » 03. September 2010 17:18

Sorry, I should have been more precise.
If I type in my IP address from a machine on the network as http://192.168.x.x it comes up as 192.168.x.x/xampp and shows the xampp home page. If I add to the end of that any of the sites I've set up for example 192.168.x.x/xampp/ms (with and w/out a following /) I get:

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404
192.168.167.73
9/3/2010 12:12:48 PM
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1


If I enter the address w/out the /xampp I simply get the standard can't connect to server error - try again? message.

How come I can see the "home page" but nothing else?

Thanks,
-sr
StrangeRanger
 
Posts: 11
Joined: 16. September 2008 20:29

Re: XAMPP accross local network help please

Postby JonB » 03. September 2010 18:49

"sites" you have set up?

Sites are "folders"? (below your Document Root? - usually xampp\htdocs)

DON'T put your sites/folders below the xampp\xampp folder. The DocumentRoot (as defined in the xampp\apache\conf\httpd.conf file) is the 'root' folder for documents to be published by the Apache webserver.

this "192.168.x.x/xampp/ms" should probably be "192.168.x.x/ms"

:?:

Good Luck
:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: XAMPP accross local network help please

Postby StrangeRanger » 03. September 2010 19:00

My sites/folders are under the htdocs folder. For example I have one "site" called ms that's physically located in xampp\htdocs\ms.

And yes, I've tried 192xxx/ms and 192xxx/ms/ but to no avail
StrangeRanger
 
Posts: 11
Joined: 16. September 2008 20:29

Re: XAMPP accross local network help please

Postby StrangeRanger » 03. September 2010 19:09

You probably realize this, but you just made me think of a little test. I changed the original index.php file in \xampp\htdocs\xampp to verify if that is the page that is getting served and it is. So for some reason when I access the server over the network it's only allowing me to see what ever is in the \xampp\htdocs\xampp folder.

And yes, the doc root is my httpd.conf file is set to "C:/xampp/htdocs" so I don't understand why it's defaulting to that other folder. Ideas?

Thanks,
-sr
StrangeRanger
 
Posts: 11
Joined: 16. September 2008 20:29

Re: XAMPP accross local network help please

Postby Altrea » 03. September 2010 19:12

Do you have a .htaccess file in your folder that redirects to the document root and with that automatically use the wrong index.php file which redirects you to the xampp folder?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8297
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: XAMPP accross local network help please

Postby StrangeRanger » 03. September 2010 19:59

Altrea wrote:Do you have a .htaccess file in your folder that redirects to the document root and with that automatically use the wrong index.php file which redirects you to the xampp folder?


Nope. I've not set up any .htaccess files at all.
StrangeRanger
 
Posts: 11
Joined: 16. September 2008 20:29

Re: XAMPP accross local network help please

Postby StrangeRanger » 03. September 2010 20:56

Ok, to make it even more confusing over the network i can access 192xxx/phpmyadmin

wth is going on?
-sr
StrangeRanger
 
Posts: 11
Joined: 16. September 2008 20:29

Re: XAMPP accross local network help please

Postby Altrea » 03. September 2010 21:04

phpmyadmin is routed through an alias.
Means, your Alias works fine ;)
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8297
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: XAMPP accross local network help please

Postby BM-1 » 16. January 2011 16:21

I came across this thread while googling for the same issue myself.

This may work - after realising that the above didn't work, I tracked the problem to the httpd-vhosts.conf file.

This is using a Win XP server with Ubuntu 10 Lan Client but should be similar for most Windows servers.

You should have set up your httpd-vhosts.conf file - there are lots of FAQ's on this.

Only the first <VirtualHost *:80> entry seems to be accessible. i.e. move the xampp entry to a lower position on the list and save the file.

Stop and restart Apache, then simply type the IP address eg 192.xxx .. of the server machine in the address bar of a browser on another LAN machine. Nothing else, just the IP.

If any one knows how to have all the virtual hosts in the list available, I would be pleased to know. ...
BM-1
 
Posts: 1
Joined: 16. January 2011 15:58

Re: XAMPP accross local network help please

Postby Altrea » 16. January 2011 16:30

BM-1 wrote:If any one knows how to have all the virtual hosts in the list available, I would be pleased to know. ...

Very easy. Just create valid VHOST entrys.
Every VHOST which matches correct is available.

The first VHOST is the default VHOST which matches every request without another valid VHOST entry.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8297
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 63 guests