1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is this possible? [HOW] 2 domains,2 ips, one post database.

Discussion in 'Blogging' started by Bostoncab, Jul 21, 2013.

  1. Bostoncab

    Bostoncab Elite Member

    Joined:
    Dec 31, 2009
    Messages:
    2,255
    Likes Received:
    514
    Occupation:
    pain in the ass cabbie
    Location:
    Boston,Ma.
    Home Page:
    Is this possible? [HOW] 2 domains,2 ips, one post database.

    So i want to set up 2 different sites. Each site will run on its own ip address. However I want each site to share the same database for posts. So when a new post is made on one site it copies to the other site.

    To further complicate things I want to run plugins on one site that I don't run on the other site. Still possible?
     
  2. djbunch

    djbunch Junior Member

    Joined:
    Aug 27, 2009
    Messages:
    133
    Likes Received:
    41
    Occupation:
    IM, Sales, Marketing
    Location:
    USA
    rss feed. Also, when autoblogging was huge there were some plugins that did this you combined them and it pulled in the posts and spun the content. I am sure those are out there still and the way I know about them is from this forum, so go to google and search "site:blackhatworld.com autoblog plugins"

    I did and it returned quite a bit but I think this might be it
    http://www.blackhatworld.com/blackh...-softwares-wordpress-some-tidbits-advice.html
     
    Last edited: Jul 21, 2013
  3. bryanon

    bryanon Executive VIP Premium Member

    Joined:
    Oct 16, 2009
    Messages:
    1,395
    Likes Received:
    1,479
    To answer OP's question - no, it's not. Without heavily modifying WP's core files that is - but you don't want to go there as every change you'll make is almost guaranteed to create dozens of new issues.

    What I would do instead (not wanting to use RSS feeds / autoblog plugins) is create a simple PHP script that checks the DB of site A for new posts and if identified, writes them to the DB of site B. Just run that script every X minutes/hours via cron and you're all set. A total of 50 or so lines of code, if not less.
     
  4. Bostoncab

    Bostoncab Elite Member

    Joined:
    Dec 31, 2009
    Messages:
    2,255
    Likes Received:
    514
    Occupation:
    pain in the ass cabbie
    Location:
    Boston,Ma.
    Home Page:
    What about Multisite? Doesnt that give you the ability to run multiple Wordpress sites off of one install?
     
  5. vodkaa

    vodkaa Junior Member

    Joined:
    May 23, 2013
    Messages:
    119
    Likes Received:
    23
    You can have multiple installs in a single database using table prefixes but I don't think there's any way to share the posts database as this doesn't make sense to do for most installs. Multisite allows multiple sites on one install but again this doesn't use the same posts database table. I think the cronjob to sync the databases is probably your best option.
     
  6. Bostoncab

    Bostoncab Elite Member

    Joined:
    Dec 31, 2009
    Messages:
    2,255
    Likes Received:
    514
    Occupation:
    pain in the ass cabbie
    Location:
    Boston,Ma.
    Home Page:
    I don't suppose one of you can wiop up the cron for me for free?