2011-05-19 37 views
0

設置Question2Answer我已經安裝在我的電腦WAMP的服務器。上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, [email protected] 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. 
一些錯誤

我究竟做錯了什麼?

回答

1

我也面臨同樣的問題。 我剛纔刪除的.htaccess文件,一切工作正常。

1

嘗試使用以下:

define('QA_MYSQL_USERNAME', '[email protected]'); 

或者

flush privileges; 

編輯
我使用以下命令:

  1. 下載項目
  2. 解壓項目到我的www目錄
  3. 查找QA-配置,使用example.php文件
  4. 文件重命名爲QA-config.php文件
  5. 在記事本中打開QA-config.php文件
  6. 我的設置QA-config.php文件如下:
    define('QA_MYSQL_HOSTNAME', '127.0.0.1');
    define('QA_MYSQL_USERNAME', 'root');
    define('QA_MYSQL_PASSWORD', '');
    define('QA_MYSQL_DATABASE', 'qa');
  7. 打開phpMyAdmin的
  8. 創建一個名爲QA
  9. 運行PR數據庫從localhost
+0

仍然沒有工作 – shababhsiddique 2011-05-19 17:18:22

+0

@shababhsiddique沖水特權;將工作。我只是在我的系統上安裝了這個,並且工作正常。 – Tareq 2011-05-19 17:25:35

+0

仍然收到同樣的問題..你可以通過stp指令發佈一個stp你怎樣設置Question2Answer? – shababhsiddique 2011-05-19 17:57:58