Forums

How to have 2 wordpress installations on one domain? (11 posts)

  1. mike80
    Member
    Posted 4 weeks ago #

    Hello and thanks in advance,

    I'm having a problem with trying to install another wordpress install in the same directory. I've set up another db_database just for this extra install, but for some reason it's not working.

    I currently have a static html website with a folder called /blog that I currently run wordpress on. But now I would like to have a new install just for my main domain name, with keeping my blog intact the way it is.

    So I created a new folder in the same directory as my /blog and named it index.php and copied the new install files in that folder, with the new db_files and updated wp-config file.

    Can anyone help me out, I'm really stumped!

  2. wordprest
    Member
    Posted 4 weeks ago #

    did you edit your new location parameters?

  3. Brian Score
    Member
    Posted 4 weeks ago #

    I only modified the names to suite the new server

  4. wordprest
    Member
    Posted 4 weeks ago #

    not clear what you've done.
    You have a blog in / directory and created a second one in /blog directory??

  5. whooami
    Member
    Posted 4 weeks ago #

    So I created a new folder in the same directory as my /blog and named it index.php and copied the new install files in that folder, with the new db_files and updated wp-config file.

    wrong.

    You said that you want to replace whats currently that static stuff you mention with a blog.

    you have this:

    http://www.domain.com == static
    http://www.domain.com/blog == wordpress

    you want this:

    http://www.domain.com == wordpress
    http://www.domain.com/blog == wordpress

    To do that means you REMOVE the static stuff and you install wordpress in that location.

  6. mike80
    Member
    Posted 4 weeks ago #

    Correct!

    http://www.domain.com == wordpress
    http://www.domain.com/blog == wordpress

    To do that means you REMOVE the static stuff and you install wordpress in that location.

    I did remove the static portion of my site and left my /blog folder intact and created a new folder named index.php

    I'm trying to do a new install with new e-mail login ect..

    This is what I get when I try to complete the install by following the famous five minute install link:

    ERROR: %s'), $error); ?>

    />

    '.__('Already Installed').'

    '.__('You appear to have already installed WordPress. To reinstall please clear your old database tables first.').'
    ');} switch($step) { case 0: case 1: // in case people are directly linking to this display_header(); ?>

    ReadMe documentation at your leisure. Otherwise, just fill in the information below and you’ll be on your way to using the most extendable and powerful personal publishing platform in the world.'), '../readme.html'); ?>

    error) ) wp_die($wpdb->error->get_error_message()); display_header(); // Fill in the data we gathered $weblog_title = isset($_POST['weblog_title']) ? stripslashes($_POST['weblog_title']) : ''; $admin_email = isset($_POST['admin_email']) ? stripslashes($_POST['admin_email']) : ''; $public = isset($_POST['blog_public']) ? (int) $_POST['blog_public'] : 0; // check e-mail address $error = false; if (empty($admin_email)) { // TODO: poka-yoke display_setup_form( __('you must provide an e-mail address.') ); $error = true; } else if (!is_email($admin_email)) { // TODO: poka-yoke display_setup_form( __('that isn’t a valid e-mail address. E-mail addresses look like: username@example.com') ); $error = true; } if ( $error === false ) { $wpdb->show_errors(); $result = wp_install($weblog_title, 'admin', $admin_email, $public); extract($result, EXTR_SKIP); ?>

    admin
    '. $password .'
    '; } echo '

    '. $password_message .'
    '; ?>

  7. mike80
    Member
    Posted 3 weeks ago #

    bump!

  8. numeeja
    Member
    Posted 3 weeks ago #

    left my /blog folder intact and created a new folder named index.php

    That won't work. Delete the folder called index.php

    You don't need two installations of WordPress you can use your existing installation - make pages for the static bits & posts for the blog. You will need to relocate the files to the root of your hosting space though.

    Follow the instructions in the codex on Moving WordPress Within Your Site: http://codex.wordpress.org/Moving_WordPress to relocate your WordPress to the root of your hosting directory.

  9. westchas
    Member
    Posted 3 weeks ago #

    Clarification, please. I have a domain hosted @ godaddy. I created a subdomain, later added a new url/domain2 pointed to that subdirectory. I want to use WP for both with same theme, but with different header, etc. I will have a blog in domain1 and, maybe, in domain2. I may add other subdirectory/domain sites later. Will the one installation of WP in the primary root allow that?

    And, since the sites are existing, can I install WP without blowing out the existing while I quickly change/convert a page-at-a-time?

  10. numeeja
    Member
    Posted 3 weeks ago #

    I want to use WP for both with same theme, but with different header, etc. I will have a blog in domain1 and, maybe, in domain2. I may add other subdirectory/domain sites later. Will the one installation of WP in the primary root allow that?

    No you need separate installations for separate blogs unless you use WordPress mu.

  11. westchas
    Member
    Posted 3 weeks ago #

    Thanks.

    Another post suggested downloading xampp and WP to my desktop, developing the site, then uploading/replacing what's online. I've started doing this, but there's more to learn/do/setup. Is this the best approach, or could I install WP @ my host & convert/replace everything there, without blowing away what's live?

Reply

You must log in to post.

About this Topic

Tags

No tags yet.