Support » Fixing WordPress » Page showing only simple HTML

  • Hi,
    I have 2 computers on my home network. I have set one up as a server (Ubuntu) to host a WordPress site.

    On the server everything works just fine when I go to the WordPress page (localhost). When I try to access this from another computer on the local network the page all I get is a cut down, simple style page (I believe people call this a “naked” theme). But I’m not running any naked theme – so far on the server computer I am running the default theme.

    Also when I click on any links all I get is a “Connection Refused” error from the server.

    PHP is running fine on the server, as well as MySQL. I thought it was a problem with the file permissions but every folder seems to have read access.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sounds to me like your server is misconfigured and doesn’t serve static files properly.

    Can you attach a screenshot with the Chrome Devtools network panel open so we can see what the issue is?

    Could also be a local DNS issue. What are you using for siteurl and home in WordPress settings? If the site is only suppposed to be working in your local network, make sure you assign a hostname for the server to be served via the local DNS. Something like wordpress.local would probably make sense.

    EDIT:

    The easiest way to make it work is to just use the static private IP address for the server. This way you don’t have to configure local DNS. Use something like 192.168.0.50 for siteurl and home.

    Sorry for the late reply.

    I’m connecting to the server via an IP address (e.g. 192.168.1.6) so it shouldn’t be a DNS problem, however I think I have identified the problem (sort of related) but I don’t know how to fix it.

    In the page all links are going to localhost instead of 192.168.1.6. For example, if I click on a test page I have made the link is directed to “http://localhost/2016/10/23/test/”.

    Using devtools in Chrome shows me that the page is trying to reference all the CSS and script files the same way.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page showing only simple HTML’ is closed to new replies.