XAMPP Local Network Style CSS Issues

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

XAMPP Local Network Style CSS Issues

Postby leecoursey » 20. December 2008 23:02

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? :?:
leecoursey
 
Posts: 5
Joined: 20. December 2008 22:55

Re: XAMPP Local Network Style CSS Issues

Postby Sharley » 21. December 2008 01:14

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
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 Local Network Style CSS Issues

Postby leecoursey » 21. December 2008 13:21

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.
leecoursey
 
Posts: 5
Joined: 20. December 2008 22:55

Re: XAMPP Local Network Style CSS Issues

Postby Wiedmann » 21. December 2008 13:29

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)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: XAMPP Local Network Style CSS Issues

Postby leecoursey » 21. December 2008 13:32

: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.
leecoursey
 
Posts: 5
Joined: 20. December 2008 22:55

Re: XAMPP Local Network Style CSS Issues

Postby leecoursey » 21. December 2008 13:37

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.
leecoursey
 
Posts: 5
Joined: 20. December 2008 22:55

Re: XAMPP Local Network Style CSS Issues

Postby leecoursey » 22. December 2008 13:17

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?
leecoursey
 
Posts: 5
Joined: 20. December 2008 22:55

Re: XAMPP Local Network Style CSS Issues

Postby Wiedmann » 22. December 2008 14:00

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.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: XAMPP Local Network Style CSS Issues

Postby gaillen » 05. March 2010 22:22

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.
gaillen
 
Posts: 1
Joined: 05. March 2010 22:09


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 141 guests