我的电脑上安装了WAMP服务器。
Apache版本:2.2.17
PHP版本:5.3.5
MySQL版本:5.5.8
现在我想在这个wamp上部署Question2Answer。 http://www.question2answer.org/install.php
我做了以下事情 - 1)
CREATE USER 'masterqa'@'localhost' IDENTIFIED BY '***';
GRANT ALL PRIVILEGES ON * . * TO 'masterqa'@'localhost' IDENTIFIED BY '***' WITH 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)
提取拉链
解压缩的question2answer文件夹中的qa-config-example.php,并将其重命名为qa-config.php
更改了以下内容
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) 将整个文件夹“question2answer”复制到
C:\wamp\www
但是当我尝试
时http://localhost/question2answer
在我的浏览器上显示一些错误,如
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.
我做错了什么?
答案 0 :(得分:1)
尝试使用以下内容:
define('QA_MYSQL_USERNAME', 'masterqa@localhost');
或者
flush privileges;
修改强>
我使用以下内容:
define('QA_MYSQL_HOSTNAME', '127.0.0.1');
define('QA_MYSQL_USERNAME', 'root');
define('QA_MYSQL_PASSWORD', '');
define('QA_MYSQL_DATABASE', 'qa');
localhost
答案 1 :(得分:1)
我也遇到了同样的问题。 我刚刚删除了.htaccess文件,一切正常。