• Okay, so here’s the dilly-o. I have a comic site, and I want to use wordpress to manage the blog portion. I currently have two servers running the site – one runs the HTML and whatnot, and the other server handles mostly database functions, and can handle HTML as well. Thing is, since the site gets a lot of traffic, we set the HTML server to server-side cache, to make things run faster.

    Because of this, I want to have wordpress INSTALLED on the “database” server, and then display the actual blog feed on the “HTML” server. The server will load the page every 10 minutes and update the displayed posts, basically. I can’t run WP on the server, because the caching interferes with things – believe me, I’ve tried.

    I tried changing the “require(‘https://SERVER ADDRESS/wp-blog-header.php’);” portion of the HTML, but that just results in frustration.

    What steps do I have to go through to get my blog to show up on my site?

Viewing 5 replies - 1 through 5 (of 5 total)
  • So what exactly do you want on the HTML server and what do you want on the DB server?

    Do you want people to be able to leave comments?

    What caching is running on the HTML server? WP-cache-2 does a good job of implementing server side caching for WordPress, maybe you could use that in conjunction with your other caching script but disable it for WordPress?

    For actual mirroring of content you are going to be best off with either curl or wget and I think wget will even change URL’s within the HTML with the appropriate options if you decide to go that way, however mirroring your whole site like that would pretty much prevent you from using comments.

    Thread Starter gregdean

    (@gregdean)

    Not worried about using comments. The caching the server uses is kind of proprietary – the HTML server is running on pretty much my admin’s own OS. Works good, but kind of a pain – so I choose to install the more mainstream things on the other server.

    So what would I have to do to just get the feed to show across servers?

    why not just run it off your html server and in your wp-config file change the db server from localhost to whatever the other server’s name is.

    Then of course, make sure that the permissions are right in mysql to allow you to connect to the db from your other box.

    Thread Starter gregdean

    (@gregdean)

    I’ve HAD it running on the “HTML” box – the trouble is, due to the strange way caching is set up, it causes problems with the base WordPress files. As best I can figure anyway – I was getting some WEIRD problems.

    I pretty much need it to work the way I have it described above – is it even possible, and if it is, how would I go about it? I’m not much of a code-head… I kind of forge my way through these things. The more help, the better.

    You will have to setup everything so it works on the DB server as you want removing comments from your templates and probably search (as that wouldn’t work either) as well then basically mirror your whole site using wget or curl (a quick Google turned up this guide).

    Not very elegant at all but then this is an unusual situation and I would probably recommend that you look more into the problems you had with the caching on the HTML server instead, what is it caching anyway? Do you have dynamic PHP files that it makes in to static HTML pages or what? That is exactly what WP-Cache 2 does for WordPress and does it quite smartly as well by doing things like selectively expiring the cache as soon as an update is made.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP installation on one server, Actual blog feed on another. Is this possible?’ is closed to new replies.