• Hello I am just wondering how I would go about sharing users between multipule sites using the same mysql server.

    I am building out a network of wordpress sites all on the same server.
    The server is CentOS with Cpanel and WHM

    I am using a single account with addon domains in cpanel. All of the databases are hosted on the same account.

    I would like to stay away from a multipress install if possible due to some plugin compatibility in the multipresss environment.

    Thanks in advance for any advice you might be able to offer.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    All of the DB connection functionality is managed by the global $wpdb object. In order to use user data from another DB, you would need to selectively swap versions of $wpdb when user data is required, then swap back immediately afterwards. This way the site thinks it is still accessing its own DB even though it’s actually connected to a “foreign” DB.

    Whether this swapping can be effectively managed, I couldn’t say, but it’s a good place to start. If this doesn’t work, you pretty much need to take over all user functionality, which itself is also difficult to do effectively.

    In truth, almost anything is possible, but you may have to work for it 🙂

Viewing 1 replies (of 1 total)

The topic ‘Multipule sites on single server sharing users’ is closed to new replies.