Jump to content
#StayAtHome ×
Sign in to follow this  

way / method to run two or more sites on 1 instance of wp-participants-datbase

Recommended Posts

dear php-experts, dear experts


the  question: is there any way / method to run two or more sites on 1 instance of wp-participants-datbase. - see https://wordpress.org/plugins/participants-database/

note: i want to run two or more wordpress-sits /(with different topics and genres – e.g. some of the following:

a. jobs
b. talents / artists
c. job-opportnunities
d. volunteering opportunities
.... and others more.

question: can i work and combine all the four sites onto one instlalation of WP-participants-database?!

What I would like to accomplish is to replicate three or four setups with wordpress like I have on my hoste environment, where one, fully independent WP-paticipants-database installation all sit in the same public_html directory and serves the above mentnioed needs.

so the question is the following - is this possible?!

dear buddies, i hope i was able to spell out what i want to achive. If you have any question – just post.


Edited by dil_bert

Share this post

Link to post
Share on other sites

Years ago i had soemthing similar to do.

now i mused some times about this thing and thought we can do it like so: – regarding the the idea of running on a single database for multiple instances

Well – if we want to go like this and are aiming for the following:
creating two instances of WP on a single domain. For example,

Like so:

wp1.domain.com and
wp2.domain.com ….to use a single database (same comments/posts and yes: same Participant-database-plugin that you mention – cf. https://wordpress.org/plugins/participants-database/ )

The simplest way of doing that is just conditionally defining the environment variables in wp-config.php like this:

/** Define alternate home and siteurl based on $_SERVER host var */
if ( strpos ( $_SERVER['SERVER_NAME'], 'wp2' ) !== false ) {
    define( 'WP_HOME', 'http://wp2.domain.com' );
    define( 'WP_SITEURL', 'http://wp2.domain.com' );

with this – i guess that this may do the trick:

What do you think!?

Share this post

Link to post
Share on other sites

further Assumptions: This is really a MySQL question but yes. we could create a master database and slave databases on the other servers. All PHP access is done to the local database but the slaves and master are kept in sync by MySQL.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.