dil_bert Posted March 31, 2018 Share Posted March 31, 2018 (edited) 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. jobsb. talents / artistsc. job-opportnunitiesd. 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 March 31, 2018 by dil_bert Quote Link to comment https://forums.phpfreaks.com/topic/307011-way-method-to-run-two-or-more-sites-on-1-instance-of-wp-participants-datbase/ Share on other sites More sharing options...
dil_bert Posted April 1, 2018 Author Share Posted April 1, 2018 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 instancesWell – 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 andwp2.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!? Quote Link to comment https://forums.phpfreaks.com/topic/307011-way-method-to-run-two-or-more-sites-on-1-instance-of-wp-participants-datbase/#findComment-1557569 Share on other sites More sharing options...
dil_bert Posted April 3, 2018 Author Share Posted April 3, 2018 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. Quote Link to comment https://forums.phpfreaks.com/topic/307011-way-method-to-run-two-or-more-sites-on-1-instance-of-wp-participants-datbase/#findComment-1557605 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.