• I’ve just about given up on cloning my MU installation (which has 5 sites) to a local development platform based on MAMP. I used MAMp before for other CMS, and simple wordpress before I went to MU

    My techniques for this was to create the MAMP installation, and point this to a copy of the wordpress files that have been downloaded from my hosted installation. Then I exported the database on the hosted platform and then imported the database locally. Despite extensive reading, I’ve not been able to get this to work, and the local install seem inevitably to redirect to the hosted solution.

    But I still want a local dev install. Is there any way to have just a single site local installation? So install a non-mu local wordpress, then download only the database tables for a single MU instance? Alternatively, if I develop a site entirely using a local copy, how can I upload this and integrate it into my existing multisite.

    Comments, pointers to articles I may have missed etc. all welcome.

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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    The redirect is a trick of the hosts file locally (personally I use ipstenu.loc instead of ipstenu.org, and search/replace it in my DB).

    Alternatively, if I develop a site entirely using a local copy, how can I upload this and integrate it into my existing multisite.

    Export and import is the easiest.

    Thread Starter sportsnapper

    (@sportsnapper)

    Ipsentu,

    Decided to try this one more time – and I’ve now got a MAMP install working for the main MU site. However, if I try to open the admin for one of the network sites i get

    The requested URL /wp-admin/ was not found on this server.

    The hosts file is correct, and the apache vhosts file has been updated as well.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Is mod_rewrite turned on?

    Thread Starter sportsnapper

    (@sportsnapper)

    yes ‘fraid so…

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Is AllowOverride in httpd.conf set to all?

    Thread Starter sportsnapper

    (@sportsnapper)

    Not in httpd.conf, but in the virtual server definition in httpd-vhosts.conf I’ve got

    <VirtualHost *:80>
    DocumentRoot “/Volumes/Data/blog”
    ServerName mysite2.dev
    <Directory “/Volumes/Data/blog”>
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
    <VirtualHost *:80>
    DocumentRoot “/Volumes/Data/blog”
    ServerName mysite1.dev
    <Directory “/Volumes/Data/blog”>
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>

    As this is an include in httpd.conf I think this covers it.

    In the domain mapping configuration i’ve changed the serve rip address to be 127.0.0.1 – is this correct – as it was set to my hosting server IP.

    Domain Mapping Configuration

    As a super admin on this network you can set the IP address users need to point their DNS A records at or the domain to point CNAME record at. If you don’t know what the IP address is, ping this blog to get it.

    If you use round robin DNS or another load balancing technique with more than one IP, enter each address, separating them by commas.

    Server IP Address: 127.0.0.1

    Thread Starter sportsnapper

    (@sportsnapper)

    Been through everything again, and also checked MAMP configuration. Another stop and start, and then it all worked. I know that’s not a reasonable or helpful answer – esp as i’ve spent rather a long time trying to get this working as well as you Ipstenu.

    So a rather frustrating successful conclusion to this issue….

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    What happens if you do a clean WP install locally and then activate Multisite?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Multisite local development’ is closed to new replies.