Setting up Question2Answer on WAMP
I have WAMP server installed in my PC.
Apache Version : 2.2.17
PHP Version : 5.3.5 MySQL Version : 5.5.8Now i want to deploy the Question2Answer on this wamp. http://www.question2answer.org/install.php
I have done the follows- 1)
CREATE USER 'masterqa'@'localhost' IDENTIFIED BY '***';
GRANT ALL PRIVILEGES ON * . * TO 'masterqa'@'localhost' IDENTIFIED BY '***' W开发者_C百科ITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
CREATE DATABASE IF NOT EXISTS `masterqa` ;
GRANT ALL PRIVILEGES ON `masterqa` . * TO 'masterqa'@'localhost';
2)
Extracted the zip
qa-config-example.php in the unzipped question2answer folder, and renamed it to qa-config.php
Changed the following
define('QA_MYSQL_HOSTNAME', '127.0.0.1'); // try '127.0.0.1' or 'localhost' if MySQL on same server
define('QA_MYSQL_USERNAME', 'masterqa');
define('QA_MYSQL_PASSWORD', 'open');
define('QA_MYSQL_DATABASE', 'masterqa');
3) copied the entire folder "question2answer" to the
C:\wamp\www
but when i try
http://localhost/question2answer
on my browser it shows some error like
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
What am i doing wrong?
I was also facing the same problem. I have just deleted the .htaccess file and everything is working fine.
try using the following:
define('QA_MYSQL_USERNAME', 'masterqa@localhost');
Or
flush privileges;
Edit
I use the following:
- Download the Project
- Unzip the Project to my www directory
- Find qa-config-example.php file
- Rename the file as qa-config.php
- Open qa-config.php file in notepad
- My Settings in qa-config.php file is as follows:
define('QA_MYSQL_HOSTNAME', '127.0.0.1');
define('QA_MYSQL_USERNAME', 'root');
define('QA_MYSQL_PASSWORD', '');
define('QA_MYSQL_DATABASE', 'qa'); - Open phpMyAdmin
- create a database named qa
- Run the project from
localhost
精彩评论