WordPress.org

Ready to get started?Download WordPress

Forums

Starting Over, without starting Fresh (6 posts)

  1. mrjarbenne
    Member
    Posted 3 years ago #

    I am currently hosting a Network install (with Buddypress) that I originally created with version wpmu 2.7. In comparison with my newer 3.1 Network install -- where things run a lot smoother -- I feel like somewhere along the upgrade process things have gone astray. Example: In the 2.7-3.05 version, as the network admin, I need to log into every subdomain blog I want to visit, and yet on the 3.1 install, logging into the main domain, gives me logged in access to all of the subdomains. Pair that with the deprecated notices of a site that has code from before the 3.0 merge, and I'm wondering what it would take to start fresh.

    If I took a fresh install, and pointed the wp-config.php to my existing database (750 users, 500+ sites), pulled in my wp-content themes and plugins, my mu-plugins folder, and my blogs dir folder, would my network survive? Am I forgetting something huge?

    Is there something easier I could do? My wp-config file looks a heck of a lot different than the fresh install, maybe I just need to regenerate that?

  2. Example: In the 2.7-3.05 version, as the network admin, I need to log into every subdomain blog I want to visit, and yet on the 3.1 install, logging into the main domain, gives me logged in access to all of the subdomains.

    It's npot the versions or the upgrading. It's soemthing in config likely.

    If I took a fresh install, and pointed the wp-config.php to my existing database (750 users, 500+ sites), pulled in my wp-content themes and plugins, my mu-plugins folder, and my blogs dir folder, would my network survive?

    you'd break it. Well, not entirely, but you would cause some issues that are mean to untangle.

    There's one big difference between an upgraded mu install and multisite: the main blog's tables and some confgi defines. Mixing them up will cause it to spaz.

    My wp-config file looks a heck of a lot different than the fresh install, maybe I just need to regenerate that?

    No, because of what I just said above.

    although there ARE some things you could probably trim down. pastebin it, leaving out the dpb details and the keys & salts.

  3. mrjarbenne
    Member
    Posted 3 years ago #

    Here it is. There is a line that looks problematic referring to BASE, and VHOST is defined as yes, which is referred to lower in the code as requiring some tweaks so that it redirects correctly.

    Thanks for any help you can provide.

    <?php
    /** Enable W3 Total Cache **/
    define('WP_CACHE', true); // Added by W3 Total Cache
    
    /**
     * The base configurations of the WordPress.
     *
     **************************************************************************
     * Do not try to create this file manually. Read the README.txt and run the
     * web installer.
     **************************************************************************
     *
     * This file has the following configurations: MySQL settings, Table Prefix,
     * Secret Keys, WordPress Language, and ABSPATH.
     *
     * This file is used by the wp-config.php creation script during the
     * installation.
     *
     * @package WordPress
     */
    
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '/');
    define('COOKIEHASH', 'xxxxxxxxxxxxxxxxxxxxx');
    
    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', '');
    
    /** MySQL database username */
    define('DB_USER', '');
    
    /** MySQL database password */
    define('DB_PASSWORD', '');
    
    /** MySQL hostname */
    define('DB_HOST', 'localhost');
    
    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');
    
    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');
    define('VHOST', 'yes');
    $base = '/';
    define('DOMAIN_CURRENT_SITE', 'litcircuits.com' );
    define('PATH_CURRENT_SITE', '/' );
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOGID_CURRENT_SITE', '1' );
    
    /**#@+
     * Authentication Unique Keys.
     *
     * Change these to different unique phrases!
     * You can generate these using the {@link http://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service}
     *
     * @since 2.6.0
     */
    define('AUTH_KEY', '');
    define('SECURE_AUTH_KEY', '');
    define('LOGGED_IN_KEY', '');
    define('NONCE_KEY', '');
    define('AUTH_SALT', '');
    define('LOGGED_IN_SALT', '');
    define('SECURE_AUTH_SALT', '');
    /**#@-*/
    
    /**
     * WordPress Database Table prefix.
     *
     * You can have multiple installations in one database if you give each a unique
     * prefix. Only numbers, letters, and underscores please!
     */
    $table_prefix  = 'wp_';
    
    /**
     * WordPress Localized Language, defaults to English.
     *
     * Change this to localize WordPress.  A corresponding MO file for the chosen
     * language must be installed to wp-content/languages. For example, install
     * de.mo to wp-content/languages and set WPLANG to 'de' to enable German
     * language support.
     */
    define ('WPLANG', '');
    
    // double check $base
    if( $base == 'BASE' )
    	die( 'Problem in wp-config.php - $base is set to BASE when it should be the path like "/" or "/blogs/"! Please fix it!' );
    
    // uncomment this to enable wp-content/sunrise.php support
    //define( 'SUNRISE', 'on' );
    
    // uncomment to move wp-content/blogs.dir to another relative path
    // remember to change WP_CONTENT too.
    // define( "UPLOADBLOGSDIR", "fileserver" );
    
    // If VHOST is 'yes' uncomment and set this to a URL to redirect if a blog does not exist or is a 404 on the main blog. (Useful if signup is disabled)
    // For example, the browser will redirect to http://examples.com/ for the following: define( 'NOBLOGREDIRECT', 'http://example.com/' );
    // define( 'NOBLOGREDIRECT', '' );
    // On a directory based install you can use the 404 handler.
    
    // Location of mu-plugins
    // define( 'WPMU_PLUGIN_DIR', '' );
    // define( 'WPMU_PLUGIN_URL', '' );
    // define( 'MUPLUGINDIR', 'wp-content/mu-plugins' );
    
    // Uncomment to disable the site admin bar
    //define( 'NOADMINBAR', 1 );
    
    define( "WP_USE_MULTIPLE_DB", false );
    define( 'NONCE_SALT', '' );
    
    /**
     * For developers: WordPress debugging mode.
     *
     * Change this to true to enable the display of notices during development.
     * It is strongly recommended that plugin and theme developers use WP_DEBUG
     * in their development environments.
     */
    define('WP_DEBUG', false);
    
    /* That's all, stop editing! Happy blogging. */
    
    /** WordPress absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');
    ?>
  4. and VHOST is defined as yes, which is referred to lower in the code as requiring some tweaks so that it redirects correctly.

    that is only for is you want non-existent blogs to no longer be redirected to the signup page. that's it.

    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '/');
    define('COOKIEHASH', 'xxxxxxxxxxxxxxxxxxxxx');

    Take these out. that'll solve your login issues.

  5. mrjarbenne
    Member
    Posted 3 years ago #

    Thanks much. So I'm not worried about the line referring to the BASE needing to be changed in wp-config to "/" or "/blogs"? "die" sounds so ominous.

  6. this part?

    // double check $base
    if( $base == 'BASE' )
    die( 'Problem in wp-config.php - $base is set to BASE when it should be the path like "/" or "/blogs/"! Please fix it!' );

    it was only used during the install and you could even remove it. there's a ton of stuff there that's commented out that you can remove.

Topic Closed

This topic has been closed to new replies.

About this Topic