• I see the standard reference to the code to be added to wp-config.php but there are more than one wp-config.php file:

    1. The wp-config.php file in the root directory.
    2. The wp-config file in the subdomain directory.

    Folder Structure

    Public_html Root (primary WP installed here and active. Call it WPA and it is NOT a multi-site.)
    Subdirectory – contains an add-on WP not at all related to WPA. Call this instance WPB – this is a domain based multi-site.

    In this common scenario wp-config.php exists in both the Root and in the Subdirectory folders.

    So. 2 wp-config.php files and 2 instances of WP.

    Does the Root directory version of wp-config.php have any impact or is only the Subdirectory version of wp-config.php used in the multi-site situation?

    Multi-site specific subset of code:

    public_html config file:

    /* Multisite */
    define( ‘WP_ALLOW_MULTISITE’, true );

    define(‘MULTISITE’, false);
    define(‘SUBDOMAIN_INSTALL’, true);
    define(‘DOMAIN_CURRENT_SITE’, ‘webdezein.com’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    Subdirectory config file:

    /* Multisite */
    define( ‘WP_ALLOW_MULTISITE’, true );

    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, true);
    define(‘DOMAIN_CURRENT_SITE’, ‘webdezein.com’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    Thanks,

    Jerry

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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    1. The wp-config.php file in the root directory.
    2. The wp-config file in the subdomain directory.

    Then you have one wp-config.php too many or you have two WordPress installs.

    Which one are you turing into Multisite?

    Public_html Root (primary WP installed here and active. Call it WPA and it is NOT a multi-site.)
    Subdirectory – contains an add-on WP not at all related to WPA. Call this instance WPB – this is a domain based multi-site.

    Which one of those sites are you trying to edit? They’re separate, so … Yknow you should be able to know which one you’re working on at the moment 🙂

    Thread Starter WebDezein

    (@ggbusta)

    Thanks Mika.

    It is the add-on domain in the subdirectory which I did not install as multi-site but then converted it to. This would be WPB above.

    I am trying to edit WPB wp-config.php using cPanel.

    The problem is after successfully converting WPB to multi-site, when I created a another site in the network (which I successfully did) I do not see a corresponding folder in wp-content/uploads/sites.

    Thanks Mika for taking the time to read and respond to my note.

    Jerry

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Basically the answer is “Which ever site you’re working on, that’s the wp-config you edit.”

    The problem is after successfully converting WPB to multi-site, when I created a another site in the network (which I successfully did) I do not see a corresponding folder in wp-content/uploads/sites.

    IIRC it doesn’t get made until you upload something.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Which wp-config.php? Root or subdomain?’ is closed to new replies.