您在這裡

安裝失敗

liaozi's 的頭像
liaozi 在 2006-09-27 (三) 10:44 發表

Hi,All 我試圖要在我的機器安裝Drupal,不過安裝失敗
錯誤訊息如下

禁止存取。

* warning: Cannot modify header information - headers already sent by (output started at /var/www/drupal/sites/default/settings.php:128) in /var/www/drupal/includes/common.inc on line 139.
* warning: array_keys(): The first argument should be an array in /var/www/drupal/modules/user.module on line 351.
* warning: implode(): Bad arguments. in /var/www/drupal/modules/user.module on line 351.
* user warning: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT DISTINCT(p.perm) FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in /var/www/drupal/includes/database.mysql.inc on line 120.
* warning: Cannot modify header information - headers already sent by (output started at /var/www/drupal/sites/default/settings.php:128) in /var/www/drupal/includes/common.inc on line 139.

您沒有瀏覽此頁面的權限。

我的平台資料
Debian Sarge
mysql-server 4.0.24-10sarge2
php4 4.3.10-16
apache2 2.0.54-5sarge1

試了站上的教學
http://tw-drupal.info/node/140
以及OpensourceInstall.org教學
http://www.opensourceinstall.org/index.php?tab=2#eXo%20platform
都失敗

有人可以幫我看一下哪邊出錯嗎?Thanks~

你的問題出在資料庫的設定有誤,檢查一下你的 /var/www/drupal/sites/default/settings.php
可能是 mysql 的 server, account, password, database 沒設定好的關係

謝謝您的回覆
我有再確認過MySQL的帳號密碼以及權限,也有試過開設一個新帳號,不過情況還是一樣耶
我這台機器目前有跑SugarCRM、Mediawiki、Joomla!以及我自己寫OpenOfficeBase
目前使用正常沒啥問題
我有參考本站有個介紹PHP的地方
http://tw-drupal.info/handbooks/system_requirements
PHP需要以下的設定參數,才能讓Drupal順利運作:

* session.save_handler: user
* 此外,我們建議以下的設定值:
* session.cache_limiter: none
* (我們只會提到與PHP 4.0.6預設的php.ini-dist / php.ini-recommended 不同的參數)

我有照著設定,不過設定好後整個apache跟php都不能用,瀏覽器只能開出白白的頁面
我有空再試舊點的版本看看

Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time. in /var/www/drupal/sites/default/settings.php on line 128

Warning: Cannot modify header information - headers already sent by (output started at /var/www/drupal/sites/default/settings.php:128) in /var/www/drupal/includes/bootstrap.inc on line 550

Warning: Cannot modify header information - headers already sent by (output started at /var/www/drupal/sites/default/settings.php:128) in /var/www/drupal/includes/bootstrap.inc on line 551

Warning: Cannot modify header information - headers already sent by (output started at /var/www/drupal/sites/default/settings.php:128) in /var/www/drupal/includes/bootstrap.inc on line 552

Warning: Cannot modify header information - headers already sent by (output started at /var/www/drupal/sites/default/settings.php:128) in /var/www/drupal/includes/bootstrap.inc on line 553

Warning: Cannot modify header information - headers already sent by (output started at /var/www/drupal/sites/default/settings.php:128) in /var/www/drupal/includes/bootstrap.inc on line 554

cogito ergo sum 我思故我在

我是用database.4.0.mysql沒錯,因為失敗後我有試著使用database.4.1.mysql
database.4.1.mysql匯不進去
我在猜會不會是php.ini的關係,因為裝SugarCRM時有修改到很多地方
要在一台機器跑好幾個軟體太貪心了,呵呵
不曉得各位是用什麼平台跑?我有想要改用ubuntu,它的server版支援時間還蠻長地

我有用"乾淨"的環境重裝成功了,問題的確出在我動了原先系統本身的設定值

cogito ergo sum 我思故我在

Apache 1.3.37
MySQL 4.0.27-standard
PHP 版本 4.4.4

之前裝過,沒什麼問題!我也覺得會不會是php.ini的問題