WordPress.org

Support

Support » Multisite » Multi-site, adding new sub site

Multi-site, adding new sub site

  • Hello,

    I am newbie to wordpress. I am trying to install multi-site. The problem I have is about adding another site to network. I’ve installed main wordpress, enabled multi-ste network and everything looks fine. Next I want to add another site, so I go to “Sites” -> Add new then configure path and everything. And here I’ve got a question. I suppose the sub site should be installed in database with new prefix (‘wp2_’ or something) or maybe I should just use existing prefix ‘wp_’? I’ve looked in the database, it have created tables with prefix ‘wp_2_’ by itself and few other tables with prefix ‘wp_’ for multi blogs configuration. Everything I have in the second site administration page are errors of establishing database connection:

    Error establishing database connection

    till stuck with this message, then check that your database contains the following tables:

    wp_users
    wp_usermeta
    wp_blogs

    If I look in the database, these tables exist. So I don’t understand what I am doing wrong. I can’t find any information in the documentation specifically about adding new site, just about configuring multi-site mode.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The new tables would be wp_2_…. and so on.

    Same prefix, extra… prefix?

    But are you sure you did Multisite?

    Well, I think yes. There is a menu: My Sites -> Network Admin, Site1, Site 2. The only problem I don’t get is how to install Site 2. Should I copy new wordpress installation to sub directory and run install.php script or just copy existing main wordpress directory to sub directory and everything would be fine.

    Back up 🙂

    If you have site 2 on the my sites list, then you’ve installed it. That code is telling us that it found the database entry to say it has a site 2. Do the wp_2_ tables exist?

    Also do have define('MULTISITE', true); still in your WP-config file?

    And just to be absolutely sure… You are running multisite out of the same folder it’s been installed in? That is you cannot do this: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    Yes, wp_2_ tables exist. define(‘MULTISITE’, true); also is defined in both wp-config files – main and sub site.

    Maybe it is because I have the same configuration in both files:

    define ('WPLANG', 'en');
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/Wordpress/en';
    define( 'DOMAIN_CURRENT_SITE', 'localhost' );
    define( 'PATH_CURRENT_SITE', '/Wordpress/en' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    I can change BLOG_ID_CURRENT_SITE for the sub site (for example 2), but it does not help.

    Oh.

    OH.

    If en is the subsite, then delete the EN folder, please 🙂

    WordPress makes that folder for you, virtually.

    I am started thinking that maybe all these are because I am running PHP on IIS, not on apache.

    Doesn’t matter. No folder needed for IIS or Linux 😀

    Though IIS can matter.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Multi-site, adding new sub site’ is closed to new replies.
Skip to toolbar