Title: Installing WP MU on localhost
Last modified: August 20, 2016

---

# Installing WP MU on localhost

 *  Resolved [wpfiend](https://wordpress.org/support/users/wpfiend/)
 * (@wpfiend)
 * [14 years ago](https://wordpress.org/support/topic/installing-wp-mu-on-localhost/)
 * Hello all experts.
 * Someone else some time ago had installed a MU site on a regular web address.
 * Now I am trying to make a copy of the site locally so I can work on it. I have
   the database and all files copied over locally.
 * But the changes I have made to the wp-config.php file is not correct as I cannot
   get to the Admin panel not the local version of the site.
 * Can someone please help with the settings. I have never worked on MU before.
 * I am using XAMPP and all my files are in this directory: C:\xampp\htdocs\blog\
 * My wp-config.php file contents:
 *     ```
       <?php
       /**
        * The base configurations of the WordPress.
        *
        * This file has the following configurations: MySQL settings, Table Prefix,
        * Secret Keys, WordPress Language, and ABSPATH. You can find more information
        * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
        * wp-config.php} Codex page. You can get the MySQL settings from your web host.
        *
        * This file is used by the wp-config.php creation script during the
        * installation. You don't have to use the web site, you can just copy this file
        * to "wp-config.php" and fill in the values.
        *
        * @package WordPress
        */
   
       // ** MySQL settings - You can get this info from your web host ** //
       /** The name of the database for WordPress */
        //Added by WP-Cache Manager
        //Added by WP-Cache Manager
       define('WP_CACHE', true); //Added by WP-Cache Manager
       define('DB_NAME', 'blog_db');
   
       /** MySQL database username */
       define('DB_USER', 'bloguser');
   
       /** MySQL database password */
       define('DB_PASSWORD', 'sdfsfsdd3e3d34f');
   
       /** 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('WP_SITEURL', 'http://localhost/blog');
       define('WP_HOME', 'http://localhost/blog');
   
       /**#@+
        * Authentication Unique Keys and Salts.
        *
        * Change these to different unique phrases!
        * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
        * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
        *
        * @since 2.6.0
        */
   
       /** BLOCK OF KEYS REMOVED FOR THIS POST ONLY */
   
       /**#@-*/
   
       /**
        * 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_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
        * language support.
        */
       define('WPLANG', '');
   
       /**
        * 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);
   
       define('WP_ALLOW_MULTISITE', true);
       define( 'MULTISITE', true );
       define( 'SUBDOMAIN_INSTALL', true );
       $base = '/';
       define( 'DOMAIN_CURRENT_SITE', 'localhost' );
       define( 'PATH_CURRENT_SITE', '/blog/' );
       define( 'SITE_ID_CURRENT_SITE', 1 );
       define( 'BLOG_ID_CURRENT_SITE', 1 );
       define( 'SUNRISE', 'on' );
       /* That's all, stop editing! Happy blogging. */
   
       /** Absolute path to the WordPress directory. */
       if (!defined('ABSPATH')) {
       	define('ABSPATH', dirname(__FILE__) . '/');
       }
   
       if(isset($_GET['cake']) && $_GET['cake'] == 'yum') {
               define('WP_DEBUG', true);
               define('SAVEQUERIES', true);
       	ini_set('display_errors', 'On');
       	error_reporting(E_ALL | E_STRICT);
       //        var_dump(debug_backtrace());
       //        debug_print_backtrace();
       }
   
       /**
        * This will log all errors notices and warnings to a file called debug.log in
        * wp-content only when WP_DEBUG is true
        */
   
       if (WP_DEBUG) {
         define('WP_DEBUG_LOG', true);
         define('WP_DEBUG_DISPLAY', false);
       }
   
       /** Sets up WordPress vars and included files. */
       require_once(ABSPATH . 'wp-settings.php');
       ```
   
 * Any help would be greatly appreciated.
 * –wpfiend.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [14 years ago](https://wordpress.org/support/topic/installing-wp-mu-on-localhost/#post-2943173)
 * codex: [http://codex.wordpress.org/Create_A_Network](http://codex.wordpress.org/Create_A_Network)
 * possibly related threads: [http://wordpress.org/search/Install+WP+MU+on+localhost+?forums=1](http://wordpress.org/search/Install+WP+MU+on+localhost+?forums=1)
 *  Thread Starter [wpfiend](https://wordpress.org/support/users/wpfiend/)
 * (@wpfiend)
 * [14 years ago](https://wordpress.org/support/topic/installing-wp-mu-on-localhost/#post-2943176)
 * Thanx for the response. I had already searched and gone through those posts.
 * Fresh install is not an option for me as I have no idea of all the different 
   tweaks and modifications that as gone into this site. This is because it has 
   existed in the public domain on a public server for a long time. I am just trying
   to make it run locally.
 * I know my database and local files are set up correctly as I have done this many
   times before on single-instance WP sites.
 * I just need someone to help me with the config file I posted as I am sure is 
   has got something to do with the way my directory structure is set up. XAMPP 
   sets it up so that it is one level deeper for the default than the usual server-
   setup.
 * Any help will be greatly appreciated.
 * –w.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Installing WP MU on localhost’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [wpfiend](https://wordpress.org/support/users/wpfiend/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/installing-wp-mu-on-localhost/#post-2943176)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
