SubDir MU Install Fix

installingmuintoasubdirofan

I spent far too long trying to figure out how to make Wordpress MU install to a sub directory install of MU or another WP site. Believe me, this is worth the ten seconds it will take to edit the file..

If your install is going to look like the image to the left, meaning that your installing Wordpress MU into a directory that resides below another install of Wordpress MU or Wordpress, then you should perform this mod before upload:

  1. Download MU and unzip the install
  2. Open “/mu/wp-blog-header.php”
  3. Locate line 9: if ( !file_exists( dirname(__FILE__) . '/wp-config.php')
    && !file_exists( dirname( dirname(__FILE__) ) . '/wp-config.php')) {
  4. Edit this line to be: if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
  5. Continue normal installation by going to “/mu/index.php”

This is needed so that MU does not look for another wp-config.php file and find one from another site, it will instantly toast your install of MU but not effect (that I’ve found) the other site.

Leave a Reply

Authors & Contributors Login:
User:
Password:

| Lost password?

Advertisement