Forums

How to config Blogs on diff. domains, same IIS server and IP. (7 posts)

  1. MariusM
    Member
    Posted 5 years ago #

    Hi all,

    First of all, I just recently discovered word press, installed it and am VERY VERY impressed about not only what a great product it is, but by the community that supports it. It's fantastic. So thanks to the developers and those who freely support this robust software!

    Here is my "issue" with real live links... perhaps I can get some tips on how to properly configure it.

    My setup is as such: (all on same machine with 1 IP address hosting multiple domains)
    OS: Windows 2003 Server SP2(beta)
    Web Server: IIS6 (I know it's not the best, but it's what I have installed..)
    AppServices: ColdFusion MX7, PHP
    DataBases: SQLServer2005, MySQL

    Websites in question: http://www.goreve.com/blog , http://www.muchhealthier.com/blog

    Problem: I installed word press on my own photography web site under a directory "blog". I ran the install.php, worked great. Used a dsn named "lerevestudios". This config file was obviously configured using the setting needed to get to the database and using "localhost".

    Then, I installed the same setup on my moms new site http://www.muchhealthier.com/blog. Same setup.. set up new dsn named muchhealthier, used same user and extended rights to the new dsn and changed the wp config file to represent her dsn, user name etc.

    However, the result is that both domins use the same blog?? If you visit my sites right now, you will see the very begining of a wordpress blog on two separate domains, but with the same content. Check it out...

    http://www.goreve.com/blog
    http://www.muchhealthier.com/blog

    NOTE: I have complete control over the server and can manage domains easily if needed. Gota love http://www.godaddy.com ! (No affiliation with them at all, just a fan of their service)

    Both site use the same blog DB and setting, yet run different setup files. This leads me to believe that there is a "central" configuration somewhere that I am missing or don't know about.

    I hope this was descriptive enough..

    Cheers to your health,
    Marius Morosanu

  2. moshu
    Member
    Posted 5 years ago #

    I have complete control over the server and can manage...

    Yeah, we always have the most problem with those people who manage their own server and think they know all, so they never read the !@#$% manual.
    http://codex.wordpress.org/Installing_Multiple_Blogs#Single_Database

  3. MariusM
    Member
    Posted 5 years ago #

    Moshu,

    I find your comment offensive and simply rude. As I said, "I just recently discovered word press" so I have not had the time to review all of the documentation. I ran through the detailed install and read it completely.

    Secondly, I don't "think they know all", that is why I asked a valid question.

    I do read manuals extensively, and try my best to do what I can. I am trying to find my way arround the site, to understand what I need to do.

    When you talk to people who are new to your world and your experiences, etc... look at their point of view and try to understand that they dont have the same experience as you do. When you take your car to the mechanic and you say it makes a noise.. he does not say, you idiot, why dont you know this.. it's right here in the Chilton's manual for your dodge xyz car! You should have read it before comming to me.

    I hope you see my point and that you become less frustrated with dumn people such as myself. We are unfortunatly the fabric of this world.

    Best wishes and thanks for the link and valuable information,
    Marius M

  4. MariusM
    Member
    Posted 5 years ago #

    I took a look at the documentation you suggested and I have already done this. Per my post I noted "Same setup.. set up new dsn named muchhealthier, used same user and extended rights to the new dsn"... So I followed the instructions for "Multiple Blogs Through Multiple Installs".

    Could there be a caching problem? Here are my config files.. (with blanked out user and password).

    http://www.goreve.com/blog/wp-config.php file


    <?php
    // ** MySQL settings ** //
    define('DB_NAME', 'lerevestudios'); // The name of the database
    define('DB_USER', 'MySqlUser'); // Your MySQL username
    define('DB_PASSWORD', 'UserPassword'); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = 'wp_1'; // Only numbers, letters, and underscores please!
    // 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', '');
    /* That's all, stop editing! Happy blogging. */
    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');
    ?>

    http://www.muchhealthier.com/blog/wp-config.php file

    <?php
    // ** MySQL settings ** //
    define('DB_NAME', 'muchhealthier'); // The name of the database
    define('DB_USER', 'username'); // Your MySQL username
    define('DB_PASSWORD', 'password'); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value

    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = 'wp_2'; // Only numbers, letters, and underscores please!

    // 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', '');

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

    define('ABSPATH', "C:/MyWebPath/Much Healthier Directory/BLOG/",(__FILE__));
    require_once(ABSPATH.'wp-settings.php');
    ?>

    I also looked at this forum topic.. hence the "define('ABSPATH', "C:/MyWebPath/Much Healthier Directory/BLOG/",(__FILE__));
    " addition to the second file.

    Any suggestions?

  5. moshu
    Member
    Posted 5 years ago #

    if both blogs use the same database, this is the only line that should (must!) be different:
    $table_prefix = 'wp_1';

    [blank lines break the "code" thing here in the forum]

    Edit. You edited your post while I was writing mine...

  6. MariusM
    Member
    Posted 5 years ago #

    I tried the renameing of tables before I posted on this blog as well but to no avail.. that is why I posted I guess...

    If you take a look above, I posted my exact config files for both sites.. I use different dsn's which makes the table renameing not necesary, but it would not matter any way.. that's why this is kind of a mystery for me..

    So I did try your suggestion first.. before posting.. then looked at the suggested install for multiple blogs on using separate db's which I was already doing.. but I am still getting the same results..

    I tought maybee it was a caching issue with my browser, but I tried it on multiple computers and its all the same.

  7. moshu
    Member
    Posted 5 years ago #

    Sorry, your dns setup and server issues are not WP related problems. Try to get specialized help in a forum that deals with server issues.
    On a properly configured server you don't have to mess with the wp-config file below the "stop editing" line.

Topic Closed

This topic has been closed to new replies.

About this Topic