Forums

[resolved] WP Multiuser Setup w/Sub Domains - Adding Site Problem (8 posts)

  1. topracer6969
    Member
    Posted 1 year ago #

    Hi All,

    Just finished installing WordPress 3.0.1 multiuser version (ie, network setup). Decided that I wanted to use the subdomain approach for new sites (vs subdirectories).

    I have one problem - possibly two:

    1. When I go to add a new site, it's created with an incorrect path.

    A little more info: our wordpress address is: http://jobs.localjobs.com - in otherwords, our wordpress website is loaded onto a subdomain. But, when I added the first new blog/site to this network blog, and tried to call it "charlotte.localjobs.com" it set it up as: http://charlotte.jobs.localjobs.comjobs_localjobs_com/

    I tried to EDIT the new Site and manually deleted the part off the domain path so that it read properly: http://jobs.localjobs.com

    But, when I try to visit: http://charlotte.jobs.localjobs.com - it doesn't show up. I've obviously messed up somewhere on the initial setup...but, I'm not sure what it is.

    2. When the network was finished getting setup, it did give me an error message - which read:

    *******************
    Warning! Wildcard DNS may not be configured correctly!

    The installer attempted to contact a random hostname (3580ba.jobs.localjobs.com) on your domain. This resulted in an error message: Couldn't resolve host '3580ba.jobs.localjobs.com'

    To use a subdomain configuration, you must have a wildcard entry in your DNS. This usually means adding a * hostname record pointing at your web server in your DNS configuration tool.
    ********************

    Since this site is setup on a subdomain initially, I was unable to add an A Record as "*.jobs.localjobs.com" - so I ended up just adding a wildcard host A record as "*.localjobs.com" in otherwords off our primary domain.

    Was this a mistake and will it work ok as is, or what am I doing wrong here?

    Thanks in advance for some insightful information.

  2. topracer6969
    Member
    Posted 1 year ago #

    Me again - thought it might be helpful to have a peek at my wp-config.php file as well. Hope it helps .... Take a look:

    /** http://wordpress.org/ **/

    // ** MySQL settings ** //
    define('DB_NAME', ''); // The name of the database
    define('DB_USER', ''); // Your MySQL username
    define('DB_PASSWORD', 'xxxxxxxx'); // ...and password
    define('DB_HOST', ''); // ...and the server MySQL is running on

    // Change the prefix if you want to have multiple blogs in a single database.

    $table_prefix = 'wp_adfmsi_'; // example: 'wp_' or 'b2' or 'mylogin_'

    // Turning off Post Revisions. Comment this line out if you would like them to be on.

    define('WP_POST_REVISIONS', false );

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    // For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
    // to enable German language support.
    define ('WPLANG', '');

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'jobs.localjobs.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    [define auth codes are noted here but removed for privacy]

    /* Stop editing */

    $server = DB_HOST;
    $loginsql = DB_USER;
    $passsql = DB_PASSWORD;
    $base = DB_NAME;

    define('ABSPATH', dirname(__FILE__).'/');

    // Get everything else
    require_once(ABSPATH.'wp-settings.php');
    ?>

  3. Andrea_r
    team pirate
    Posted 1 year ago #

    So you used Dreamhost's One Click setup did you?

    /* Stop editing */

    $server = DB_HOST;
    $loginsql = DB_USER;
    $passsql = DB_PASSWORD;
    $base = DB_NAME;

    They added this part. remove the $base = DB_NAME line.

    For the second one, one you get a working install, you'll have to test.

  4. topracer6969
    Member
    Posted 1 year ago #

    Thanks Andrea. Do you suggest that I delete the site and then try to add it again?

  5. topracer6969
    Member
    Posted 1 year ago #

    Well, I went ahead and deleted 'charlotte' site...and re-added it. Fixed the initial setup, looks like correctly setting the URL as: http://charlotte.jobs.localjobs.com

    However, doesn't pull up in the browser. Any suggestions?

  6. Andrea_r
    team pirate
    Posted 1 year ago #

    Is there a wildcard subdomain record in Apache? these are two-parters, not just DNS records.

  7. topracer6969
    Member
    Posted 1 year ago #

    Whew. OK, got it working...at least from a DNS perspective. We did have to go ahead and add a 'subdomain wildcard' record, as well as setup a new domain 'jobs.localjobs.com' DNS record...and THEN, add an A Record to it, so that it looked like this: "*.jobs.localjobs.com'...that did it.

    Huge thanks for the follow-up! I have a different problem now in that the posts themselves don't show up, but that's another issue I'll try to tackle. I just get 404 Page errors when I try to view a post.

  8. Andrea_r
    team pirate
    Posted 1 year ago #

    mod_rewrite & .htaccess for that one. ;)

Topic Closed

This topic has been closed to new replies.

About this Topic