Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
212 views
in Q2A Core by
I designed the question2answer in my local host and now time to move live host.How can i do that?Can i copy all the file and paste it to the public_html folder in the live host? What will be the easiest way for me?

1 Answer

+4 votes
by
edited by

Q2A consists of two parts: the web application and the database. For a migration I'd recommend the following steps:

  1. Enable maintenance in Q2A on the source host (or configure basic auth in the web server on the destination host) to prevent other users from interacting with the site until you're ready.
  2. Create a backup of your Q2A database.
  3. Create a database (and database user) of the same name on the new (database) host.
  4. Restore the backup to the new database.
  5. Copy the Q2A application directory to the web root on the destination host.
  6. Adjust the database settings in config.php as needed.
  7. Enable the vhost for your Q2A site on the destination (web) server.
  8. Log in as the admin and verify that everything is working.
  9. Disable maintenance or deactivate basic auth.
...