Jump to content

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


dil_bert

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.

 

Link to comment
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!?
Link to comment
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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.