• Resolved m6097

    (@m6097)


    Hi

    I am WP-multisite newbie, and trying to understand how it works.
    I am playing around with a WP-Multisite install on a remote server, and it seems to work fine.

    Now I am trying to clone the entire install on my local machine, into a subdirectory of my web server (/var/www/html/, Fedora 20).

    I wish to see the main site at localhost.localdomain/localwp/ and the others at, say, sub.localhost.localdomain/localwp/

    After some effort, I succeed to see (local clone of) the main site and to enter into its dashboard. However, I am not able to fix things as to see the other sites too. Whatever I tried, I always get a unreachable server error message.

    I suspect it is a VirtualHost issue, but I am not sure. Indeed, I haven’t really understood yet how WP manages subdomains.

    I appreciate your advise.
    Thanks, Cheers
    mario

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    First, read http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Multisite and see why moving Multisite is a bit trickier.

    I wish to see the main site at localhost.localdomain/localwp/ and the others at, say, sub.localhost.localdomain/localwp/

    Ow.

    The problem here is, by default, WP doesn’t like to ‘map domains’ and do subfolders like that. I mean, you can, but you’re talking about subdomains AND a subfolder, which WP doesn’t do out of the box.

    You can make localhost.localdomain/localwp/sub/ and then edit the site (wp admin -> network -> sites) to have the domain of sub.localhost.localdomain and the path of /localwp/ but I’m not sure how well that’ll work.

    Plus you STILL have to add subdomains in your vhosts.

    Thread Starter m6097

    (@m6097)

    Hi Mika,

    thanks for your help.

    Indeed, you are correct, it helped to update my host file with lines
    127.0.0.1 subA.localhost.localdomain localhost localhost4127.0.0.1 subZ.localhost.localdomain localhost localhost4.

    I may see all of my sites, and login into all the dashboards (without your suggested trick). So far so good. A remaining issue is that, if I try to open http://localhost.localdomain/localwp/wp-admin/network/ (NetworkAdmin/Dashboard), I get a wrong redirect alert message from Firefox. Why so? Do I need to localize a further record in the (cloned) db?

    cheers
    m.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I get a wrong redirect alert message from Firefox.

    What’s the exact error? What is it trying to redirect to?

    Thread Starter m6097

    (@m6097)

    Hi

    Something like ‘this page does not redirect correctly’ (translated).

    If I try to open http://localhost.localdomain/localwp/wp-admin/network/, error-log file gets (more than 10) lines as:
    127.0.0.1 - - [05/Jan/2015:09:33:24 +0100] "GET /localwp/wp-admin/network/ HTTP/1.1" 302 -
    I do not see any other error message.
    thks m.

    Thread Starter m6097

    (@m6097)

    Hi

    It seems that to update db as below fixes it;

    UPDATE <localdb>.wp01_blogs SETpath='/localwp/' WHEREwp01_blogs.blog_id=1;

    I hope this is good enough.
    thanks
    cheers
    m.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Yeah that should be it. It was mentioned in the moving multisite link I gave you, by the way.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘cloning a multisite’ is closed to new replies.