Page 1 of 1

XAMPP Local Network Style CSS Issues

PostPosted: 20. December 2008 23:02
by leecoursey
I'm sure this is somthing that has been answered before, but I have not been able to locate it in my searches.

I am running xampp on box1 on my local network. For fun, I installed copies of joomla, wordpress, and other software just to play with it. They all run wonderfully on box1 either by http://localhost/whatever or http://box1/whatever.

The problem occurs when I visit those same instances from box2 on my network. If I go to box2 and type in http://box1/whatever or 192.168.1.2/whatever i get the site without any styling whatsoever. All of the CSS styling or formats are missing. I see the content, say, from my wordpress install and see the "Hello World" post, it just doesn't have the template style. Same with joomla.

In contrast, if I type http://box1 I do see the xampp page with the logo and colors.

Any suggestions on what the issue might be? :?:

Re: XAMPP Local Network Style CSS Issues

PostPosted: 21. December 2008 01:14
by Sharley
Please check and double check the paths to your CSS files in the script's configuration.

A relative path to /mycss/mycss.css will look for the mycss folder in the ServerRoot folder htdocs, where as a path mycss/mycss.css will look for the mycss folder in the htdocs/wordpress folder, for example.
It's all a matter of relativity. :)

Also check the Apache error.log file for any clues:
.\xampp\apache\logs\error.log

Re: XAMPP Local Network Style CSS Issues

PostPosted: 21. December 2008 13:21
by leecoursey
If that were the case, though, the styling would be wrong when we I was on box1 as well I would think.

If I'm wrong, please correct me.

Re: XAMPP Local Network Style CSS Issues

PostPosted: 21. December 2008 13:29
by Wiedmann
All of the CSS styling or formats are missing.

How are the stylesheets exactly included in HTML? (use the sourcecode view in your browser on box2)

Re: XAMPP Local Network Style CSS Issues

PostPosted: 21. December 2008 13:32
by leecoursey
:oops: uh... it's pointing to localhost.... which means it's trying to find it on box2....

My bad. I should have checked that first.... Let me see if I can fix it.

Re: XAMPP Local Network Style CSS Issues

PostPosted: 21. December 2008 13:37
by leecoursey
ok, in wordpress for example, if I try to modify the install to look at the IP address instead of 'localhost' then it can't make a connection with the db.

I'm assuming this means there's a permissions issue in the mix now.

Re: XAMPP Local Network Style CSS Issues

PostPosted: 22. December 2008 13:17
by leecoursey
I can't seem to get anything to "install" anything using the IP of Box1 or even "box1" as the domain.

What should I do?

Re: XAMPP Local Network Style CSS Issues

PostPosted: 22. December 2008 14:00
by Wiedmann
What should I do?

Asking the author of the script that you try to install?

if I try to modify the install to look at the IP address instead of 'localhost' then it can't make a connection with the db.

I guess you are changing a wrong value. The db host is allways "localhost". Only the Severname for HTTP Requests must be changed to the ip or hostname instead of localhost.

Re: XAMPP Local Network Style CSS Issues

PostPosted: 05. March 2010 22:22
by gaillen
Hi leecoursey, I had this same issue, specifically with Wordpress. Resolved the issue by logging into the Wordpress install as admin from the localhost system and changing the "General Settings" for "Wordpress address (URL)" & "Blog address(URL)" from http://localhost/wordpress to http://172.18.9.3/wordpress (substitute the LAN IP address of your XAMPP server).

I assume this allows the Wordpress php to properly assign absolute paths to resources.

I dont know if this will work for your Drupal and Joomla but considering that they are PHP CMS' it is worth a try.