Mobile app version of vmapp.org
Login or Join
Miguel251

: Can't load Wordpress static files on home network I've just installed Wordpress 3.5 on my laptop (LAMP on Ubuntu 12.10) and when I'm trying to access the site from my phone but it doesn't

@Miguel251

Posted in: #Wordpress

I've just installed Wordpress 3.5 on my laptop (LAMP on Ubuntu 12.10) and when I'm trying to access the site from my phone but it doesn't load static files (css and images). I tried with Opera Mobile Emulator on my laptop and it works perfectly. I also have another Drupal site on my localhost which I can load from my phone without any issues. Both directories have chmod 777 permissions.
What can cause that?
Just tried to open the site from my sister's laptop but it except static file I can't access any post or page.

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Miguel251

3 Comments

Sorted by latest first Latest Oldest Best

 

@Bethany197

Make sure that your CSS files are called in respect to what they are being viewed from - what I mean by that is that your CSS/images are correctly linked to via the html.

For example, for my website I use
<link rel="stylesheet" type="text/css" href="style/style.css" title="style" /> which will call the CSS relative to the root directory of my website, website. So my CSS us located in the folder website/style/style.css.

You may have something like 192.168.49.128 or localhost for your reference which would only make this work if you are viewing the website on your local network. If you'd like a more definitive answer, please supply us with a link to your website so we can actually view the source.

10% popularity Vote Up Vote Down


 

@Miguel251

It was from the Wodpress Settings, it uses localhost for the site address which is not accessible over the home network so I changed with my laptop's IP (in the home network)

from Settings -> General
Change WordPress Address (URL) and Site Address (URL) from : localhost/wordpress to my.laptop.ip/wordpress

and everything works just fine

10% popularity Vote Up Vote Down


 

@Radia820

It'll be the lamp that your using is not forwarding the information to the outside.

You say you have Drupal running and its working fine, yet is this on another lamp?

In Ubuntu Lamp check your IPtables and check it has internet access, Ping Google.co.uk for example.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme