我在我的电脑上安装了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.我做错了什么?
发布于 2011-07-07 17:16:10
我也面临着同样的问题。我刚刚删除了.htaccess文件,一切工作正常。
发布于 2011-05-20 01:13:49
尝试使用以下命令:
define('QA_MYSQL_USERNAME', 'masterqa@localhost');或
flush privileges;编辑
我使用以下代码:
qa-config-example.php文件
>H115我在qa-config.php文件中的设置如下:
define('QA_MYSQL_HOSTNAME', '127.0.0.1');
define('QA_MYSQL_USERNAME', 'root');
define('QA_MYSQL_PASSWORD', '');
从localhost中打开名为phpMyAdmin
localhost
define('QA_MYSQL_DATABASE', 'qa');
https://stackoverflow.com/questions/6061566
复制相似问题