Support » Fixing WordPress » Help this Newbie Trying to Convert to Multi-User Site

  • hadenp


    Hi there!,

    I’m trying to convert my WP installation (believe it’s 3.2) on my development machine to support multiple blogs using the same installation/database. I think this is called Network or Multi User.
    I’m pretty new to WP. Any help would be greatly appreciated!

    I used the instructions given in the ‘Create a Network of WordPress Sites’ document.

    1) I created a blogs.dir directory at Applications/MAMP/htdocs/blog/wp-content/blogs.dir and made it writeable.

    2) Added the following to wp-config.php
    define( ‘MULTISITE’, true );
    define( ‘SUBDOMAIN_INSTALL’, false );
    $base = ‘/blog/’;
    define( ‘DOMAIN_CURRENT_SITE’, ‘localhost’ );
    define( ‘PATH_CURRENT_SITE’, ‘/blog/’ );
    define( ‘SITE_ID_CURRENT_SITE’, 1 );
    define( ‘BLOG_ID_CURRENT_SITE’, 1 );

    3) Added the following lines to a new .htaccess file:
    RewriteEngine On
    RewriteBase /blog/
    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    When I logged in I got a message that ‘One or more database tables are unavailable. The database may need to be repaired.’ I added define(‘WP_ALLOW_REPAIR’, true); to the wp-config.php.

    When I run the ‘Repair Database’ option, I get the following errors:
    I see the following errors:

    wp_1_posts: Table ‘wordpress.wp_1_posts’ doesn’t exist
    wp_1_comments: Table ‘wordpress.wp_1_comments’ doesn’t exist
    wp_1_links: Table ‘wordpress.wp_1_links’ doesn’t exist
    wp_1_options: Table ‘wordpress.wp_1_options’ doesn’t exist
    wp_1_postmeta: Table ‘wordpress.wp_1_postmeta’ doesn’t exist
    wp_1_terms: Table ‘wordpress.wp_1_terms’ doesn’t exist
    wp_1_term_taxonomy: Table ‘wordpress.wp_1_term_taxonomy’ doesn’t exist
    wp_1_term_relationships: Table ‘wordpress.wp_1_term_relationships’ doesn’t exist
    wp_1_commentmeta: Table ‘wordpress.wp_1_commentmeta’ doesn’t exist

  • The topic ‘Help this Newbie Trying to Convert to Multi-User Site’ is closed to new replies.