Weird problem with cascading routers, Xammp, and CMS

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

Weird problem with cascading routers, Xammp, and CMS

Postby duncann » 03. October 2005 22:06

Hello... I have what i think is an interesting problem. That ...or i'm missing something entirely. I'm not completely green on LAMP, but i admit I have alot to learn.
I will go into detail with my problem, since it may get confusing otherwise:

I'm attempting to set up a cms for local use around the office, a makeshift intranet, so to speak. Our 'admin' area has 5 computers behind a router with the address ranges 172.16.xx.xx. A single line from this same router goes to the 'shop' area of my office, where i've installed another router occupying the 172.16.1.5 address of that range (static). Behind this second router, DHCP feeds 3 computers in my shop area with addresses in the 192.168.1.xx range. These 3 "shop" computers are thus on their own seperate LAN from the "admin" computers.
Hope I didn't lose anyone. :)

Here's the problem. I installed Xampp on 192.168.1.102 computer. Debian Linux machine, No problems. This computer is always on, and always occupies that address. I then installed a few cms's to test drive, namely Mambo and OsCommerce. These also have no problems, and I can access them beautifully from the "shop" LAN.
Now I want "admin" computers to see this stuff too... so I forward port 80 of the shop router (172.16.1.5) to 192.168.1.102.
I run to the admin area and get on a computer (172.16.1.7) and try to access my webserver in the shop.
There is a long one minute pause or longer, then only the text appears from either cms. The browsers hang while trying to load picture files from either cms. Funny thing is, the Xampp default page and all it's links work just fine. From the admin computers I point the browser to:

http://172.16.1.5/ -- accesses the default Xammp page - no problems
http://172.16.1.5/mambo -- hangs on picture files
http://172.16.1.5/catalog -- hangs on picture files
(both cms's show waiting for files from 192.168.1.102)
Is this a problem with the router's port forwarding (Linksys BEFW11S4),
or something that needs to be tweaked with apache? And why would Xampp's page and links work fine and not the cms's?
Keep in mind, any computer on the 192.168.xx.xx LAN can access everything with top speed by pointing to - http://192.168.1.102.
This is why i didn't think it was a directory permissions problem.
Sorry so long winded, but hope the detail helps..

thanks,
Duncan
duncann
 
Posts: 3
Joined: 30. September 2005 13:43

Postby Wiedmann » 03. October 2005 23:02

If
a) the XAMPP pages are working from both networks and
b) the cms is only working from one network
there must be a configuration error in your cms.

hangs on picture files

To find out the problem:
What URL use a browser from one network and what URL use a browser from the other network to acces such a picture?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby duncann » 04. October 2005 22:34

Sorry for the confusion.... when i say picture files... I mean the graphic files that load for the main page of both cms's. The text of the main page is coming through after a long wait, but the graphics files on that page don't come through at all, and the browser just hangs.
..
I do agree that maybe i missed something in the setup/configuration of both cms's, but the question still lingers in my mind of why does it work just fine on the local LAN if it's a configuration problem?
I did some checking and noticed one immediate difference. All of Xammp's pages and files are contained in ../htdocs/xampp
- while Mambo cms loads its main pages from ../htdocs/mambo
- Mambo loads it images for all pages from ../htdocs/mambo/images.

This can't be a directory permissions problem, since i gave full permissions for all directories, and everything works fine on the local LAN.
But I will take your advice and double check my cms configuration again.

Once again,
thanks

Duncan

p.s. to answer your question.. from the "shop" computers:
http://192.168.1.102/ -- Xampp pages work great
http://192.168.1.102/mambo -- Mambo CMS pages all work great
http://192.168.1.102/catalog --OSCommerce pages all work great

....from the "admin" computers:
http://172.16.1.5/ -- Xampp pages work great
http://172.16.1.5/mambo -- text loads very slowly, no graphic files, hangs
http://172.16.1.5/catalog -- text loads very slowly, no graphic files, hangs
...hope that helps
duncann
 
Posts: 3
Joined: 30. September 2005 13:43

Postby Wiedmann » 04. October 2005 23:43

when i say picture files... I mean the graphic files that load for the main page of both cms's.

I mean that files too.

Ok, let me try a better question:
http://192.168.1.102/mambo -- Mambo CMS pages all work great
...
http://172.16.1.5/mambo -- text loads very slowly, no graphic files, hangs


If you open the URI "http://172.16.1.5/mambo" you see no pictures. You see an "X" (placeholder) instead?

With right click on a "X" and "properties" you can see the URI for that missing picture. Or you can open the HTML source in your browser and look at the IMG tag for that missing picture.

This is the URI you should compare between a shop and admin pc.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby duncann » 05. October 2005 16:09

I checked this out...
The missing pics files show the same URL from both the shop and admin computers...
http://192.168.1.102/mambo/images...

So, from the shop LAN...this is no problem...it's a local address.
From the Admin LAN...it has no idea where 192.168.1.102 is. Is that what's happening? I should be seeing from the admin computer the address http://172.16.1.5/mambo/images , right?
If so... does that still fall under the cms configuration, or something to tweak in apache perhaps?
duncann
 
Posts: 3
Joined: 30. September 2005 13:43

Postby Wiedmann » 05. October 2005 16:11

f so... does that still fall under the cms configuration, or something to tweak in apache perhaps?

This is problem with the cms configuration or with the cms source code.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 31 guests

cron