Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

How to make TWO Q2A`s based on ONE user database?

+1 vote
Q2A version: 1.4.1
asked Dec 5, 2011 in Q2A Core by OLOLO

1 Answer

+1 vote

This is included in Q2A. This question has some details, but in short:

  1. Install your first Q2A site as normal.
  2. Copy the files to your second Q2A site, but don't run the installation yet.
  3. Edit qa-config.php and set the users prefix option. Assuming your second site is "qa2" you'd have these two lines:
    define('QA_MYSQL_TABLE_PREFIX', 'qa2_');
    define('QA_MYSQL_USERS_PREFIX', 'qa_');
  4. Now run the installation on the second site.

 

answered Dec 5, 2011 by DisgruntledGoat
Usefull info, thanks. Would this work for any table "posts" for example ?
Not sure exactly what you mean. The multi-site option only shares user tables (qa_users and qa_userprofiles). It doesn't make sense to share the posts table, otherwise why have 2 different sites?
He is probably trying to have the same database being used for multiple domains. This way he will try to have the same questions appear on different sites as if they were only from that site and have the benefit of 3 entry points. Terrible from a duplicate content point of view, IMHO, but it is commonly done by some, especially on dating sites.