Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
1.6k views
in Q2A Core by
Hello I am new on q2a. I am a student and I have a project for school. I want run q2a on webserver on virtualbox . I install ubuntu server on virtualbox as guest and install LAMP on it.i can ping from host to guest or guest to host. When I enter ip address guest machine in firefox broswer on hast machine everything is ok apache is ok.i make a database on mysql with blowe information:

database name “QandA”
user of database “ali”
password for QandA database “dddd”

I download q2a 1٫7 and go step by step on this guide:


	1. Create a MySQL database.
	2. Create a MySQL user with full permissions for that database.
	3. Rename this file to qa-config.php.
	4. Set the above four definitions and save.
	5. Place all the Question2Answer files on your server.
	6. Open the appropriate URL, and follow the instructions.

My content  qa-config.php file:

======================================================================
	  THE 4 DEFINITIONS BELOW ARE REQUIRED AND MUST BE SET BEFORE USING!
	======================================================================

	For QA_MYSQL_HOSTNAME, try '127.0.0.1' or 'localhost' if MySQL is on the same server.

	For persistent connections, set the QA_PERSISTENT_CONN_DB at the bottom of this file; do NOT
	prepend the hostname with 'p:'.
*/

	define('QA_MYSQL_HOSTNAME', '192.168.93.103');
	define('QA_MYSQL_USERNAME', 'ali')th;
	define('QA_MYSQL_PASSWORD', 'dddd');
	define('QA_MYSQL_DATABASE', 'QandA');

I transfer content question2answer-1.7 directory to this path on my webserver on guest machine 
/var/www/html
now I enter ip address guest machine in firefox host machine exaclly like this
http://192.168.93.103/question2answer
 but dosen't happening . Q2a doesnt work.q2a give me error on firefox

Not Found

The requested URL /question2answer was not found on this server.


Apache/2.4.7 (Ubuntu) Server at 192.168.93.103 Port 80

 
Q2A version: 1.7
by
I think you have changed the IP (Hostname) in qa-config file... try to setup Q2A without changing the Hostname...
Maybe this should work for your case...
by
I change ip(hostname) to localhost or 127.0.0.1 but problem still exist.did i correct copy q2a file path "/var/www/html"? when we turn linux as localhost for test apache on firefox enter 127.0.0.1 ip adderss but no i want make webserver on virtualbox i must enter ip virtualbox machine "192.168.93.103" right?
by
Do index.html on the document root will be displayed correctly? And also, did you make the settings of the hosts file of the host OS side? If it does not appear correctly, you should question to virtualbox forum (not q2a forum).

1 Answer

0 votes
by

Are you using the cpanel - if yes then

  1. Ligin to it (cpanel)
  2. Scroll to software section
  3. Locate Softaculous and click to launch it
  4. You may have to create and account - just email and pass...
  5. Locate the search filled and type: Question2answer
  6. Select it from the results and proceed to install it either as main (mysite.com/q2a) oe subdomain (q2a.com)...
by
edited by
no I don't use cpanel. I just  run q2a on virtuallbox as webserver.
...