• Hello all,
    I want to add a second site via sub-directory for a second blog…
    The company owner posts news and we have a mother that is posting “a day in the life” kind of thing. This is an established functioning site designed by previous webmaster, who quit. The site is newhorizonsaba.com

    I’m new to WordPress and php, I’m an oldschool HTML kinda guy.
    I have installed wordpress with wamp on my laptop for a test bed. I was able to successfully add multisite to the test site that is on my laptop.

    First I backed up the site and database.

    Following the directions on the godaddy support page, I added the define(‘WP_ALLOW_MULTISITE’, true); to my wp-config.php. Everything went fine and I logged back in, disabled all plugins and selected network setup. I then copied the info into wp-comfig and htaccess as directed. Now I get “Error establishing a database connection”

    I reverted back to the original wp-config and htaccess and my site was back up.

    If I add the following to my wp-config I get the database connection failure (before editing htaccess).

    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘newhorizonsaba.com’);
    define(‘PATH_CURRENT_SITE’, ‘/index.php/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    I checked that my database on godaddy does contains the following tables:
    wp_users
    wp_usermeta
    wp_blogs
    wp_signups
    wp_site
    wp_sitemeta
    wp_registration_log
    wp_blog_versions

    Where did I go wrong? Is there another way to add a second blog to this site?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You’re missing a line.

    Above define('MULTISITE', true); should be this:

    define( 'WP_ALLOW_MULTISITE', true );

    Thread Starter kend1

    (@kend1)

    yes that line is in the wp-config

    /**

    define(‘WP_DEBUG’, false);

    define (‘WP_ALLOW_MULTISITE’, true);

    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘newhorizonsaba.com’);
    define(‘PATH_CURRENT_SITE’, ‘/index.php/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    /* That’s all, stop editing! Happy blogging. */

    /** 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’);

    As I stated in the orignal post

    Following the directions on the godaddy support page, I added the define(‘WP_ALLOW_MULTISITE’, true); to my wp-config.php. Everything went fine and I logged back in, disabled all plugins and selected network setup. I then copied the info into wp-comfig and htaccess as directed. Now I get “Error establishing a database connection”

    Thread Starter kend1

    (@kend1)

    This is the contents of htaccess

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /index.php/
    RewriteRule ^index\.php$ – [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).*) home/newhorizonsaba/public_html/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ home/newhorizonsaba/public_html/$2 [L]
    RewriteRule . index.php [L]

    # END WordPress

    Thread Starter kend1

    (@kend1)

    I guess no one has an answer

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Godaddy multisite database connection failure’ is closed to new replies.