• Resolved madjack59

    (@madjack59)


    I’ve been trying to configure Apache virtual hosting to achieve the following:

    – Two Virtual Hosts
    – Each Virtual Host with its own WordPress 3.3.2 Multisite installation
    – Both WordPress installations will share the same database. I’ve configured wp-config to use different table prefixes for each.

    I installed and configured the first domain easily. Multisite works like a charm. Note that I declared the directory directive, rewrite rules, etc. in the virtual host section instead of a .htaccess file.

    Then, following the same instructions, I installed the second multisite installation and added a second <VirtualHost> to the Apache config file.

    I can still login to the first installation, but not the second. I get a “page isn’t redirecting properly” error when I tried to log in.

    The first multisite install was so painless, there must be a trick to doing multiple, multisite installs using Apache’s virtual hosting. I’m not sure what the trick is.

    If anyone else has successfully done this, I’d welcome any guidance you can share about getting this right.

    Many thanks in advance!

    jack

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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I can still login to the first installation, but not the second. I get a “page isn’t redirecting properly” error when I tried to log in.

    Did the second install work BEFORE you tried to activate Multisite? I’m assuming yes 🙂

    In the second virtualhost entry, you may need to add in the allowoverride All rule.

    Thread Starter madjack59

    (@madjack59)

    Thanks to those of you who helped. I found my problem to be self-inflicted.

    After having a successful install of the first multi-site, I copied the lines from the first wp-config.php to the second <VirtualHost> domain. Instead of going through steps one by one.

    After adding the line:

    define( ‘WP_ALLOW_MULTISITE’, true);

    you are supposed to log in to your single site and install the network capability via the Dashboard’s Tools | Network Setup.

    Only after installing the network capability, should you add the additional lines specified in the network install instructions to wp-config:

    define( ‘MULTISITE’, true );
    define( ‘SUBDOMAIN_INSTALL’, true );
    $base = ‘/’;
    define( ‘DOMAIN_CURRENT_SITE’, ‘xyz.com’ );
    define( ‘PATH_CURRENT_SITE’, ‘/’ );
    define( ‘SITE_ID_CURRENT_SITE’, 1 );
    define( ‘BLOG_ID_CURRENT_SITE’, 1 );

    After manually repeating the steps, with no shortcuts, I was able to to successfully install two separate multi-site WordPress sites in two different Apachec VirtualHosts. Logging into the site did not yield that redirect error.

    Thanks for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multiple Installations of Workpress Multisite’ is closed to new replies.