我的 PC 中安装了 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)
解压拉链
qa-config-example.php 在解压缩的 question2answer 文件夹中,并将其重命名为 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.
我究竟做错了什么?