歡迎您光臨本站 註冊首頁

有關postfixadmin與mysql的問題

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

有關postfixadmin與mysql的問題

  在安裝postfixadmin-2.2.1.1之後,在/var/www/html/postfixadmin下面找不到DATABASE_MYSQL.TXT文件,在執行setup.php后出現如下信息: [*]PHP version 4.3.9 [*]Apache/2.0.52 (Red Hat) Checking for dependencies: [*]Magic Quotes: Disabled - OK [*]Depends on: presence config.inc.php - OK [*]Warning: $CONF['configured'] is 'false'.
You must edit your config.inc.php and change this to true (this indicates you've created the database and user) [*]Depends on: MySQL 3.23, 4.0 - OK [*]Error: Can't connect to database
Please edit the $CONF['database_*'] parameters in config.inc.php. DEBUG INFORMATION:
Connect: Access denied for user 'postfix'@'localhost' (using password: YES)
[*]Depends on: session - OK [*]Depends on: pcre - OK [*]Depends on: multibyte string - OK [*]Warning: Depends on: IMAP functions - NOT FOUND
To install IMAP support, install php4-imap
Without IMAP support, you won't be able to create subfolders when creating mailboxes. 這是我第一次安裝postfix,還請各位高手指點,在此感謝!

《解決方案》

按提示中的錯誤:
1 - Warning: $CONF['configured'] is 'false'.
You must edit your config.inc.php and change this to true (this indicates you've created the database and user)
2 - Error: Can't connect to database
Please edit the $CONF['database_*'] parameters in config.inc.php. DEBUG INFORMATION:
Connect: Access denied for user 'postfix'@'localhost' (using password: YES)
用戶postfix不能連接資料庫。是否創建用戶postfix和賦予許可權?
3 - Warning: Depends on: IMAP functions - NOT FOUND
To install IMAP support, install php4-imap
Without IMAP support, you won't be able to create subfolders when creating mailboxes.
需要安裝php4-imap,
《解決方案》

第一個問題已解決,是config.inc.php文件配置的問題 ,但第二個問題還是沒解決,執行setup.php還是出現如下錯誤:
Error: Can't connect to database
Please edit the $CONF['database_*'] parameters in config.inc.php.
DEBUG INFORMATION:
Connect: Access denied for user 'postfix'@'localhost' (using password: YES)

這是config.inc.php文件中的某一段配置信息:(postfix用戶和組已存在)
$CONF['database_type'] = 'mysql';
$CONF['database_host'] = 'localhost';
$CONF['database_user'] = 'postfix';
$CONF['database_password'] = 'postfixadmin';
$CONF['database_name'] = 'postfix';
$CONF['database_prefix'] = '';

還是config.inc.php文件配置的問題嗎,有誰能幫忙解決一下,謝謝!
《解決方案》

原帖由 huigexia 於 2009-6-5 19:39 發表 http://bbs2.chinaunix.net/images/common/back.gif
第一個問題已解決,是config.inc.php文件配置的問題 ,但第二個問題還是沒解決,執行setup.php還是出現如下錯誤:
Error: Can't connect to database
Please edit the $CONF['database_*'] parameters in con ...


密碼或者許可權問題
《解決方案》

回復 #3 huigexia 的帖子

使用 EMOS 全部搞定
《解決方案》

回復 #5 liu-shaobo 的帖子

那就沒有找錯誤的樂趣了,和和,
《解決方案》

ruochen
精靈使
應該不是許可權的問題,我用postfixadmin-2.1.0軟體包的話,在/var/www/html/postfixadmin下面有個DATABASE_MYSQL.TXT文件,然後執行mysql -u root -p <DATABASE_MYSQL.TXT,然後set.php就沒上面那個提示了;如果用postfixadmin-2.2.1.1.tar的話,在postfixadmin目錄下沒有DATABASE_MYSQL.TXT這個文件,就出現上面那個提示,不知怎麼樣才能解決這個問題,謝謝!
《解決方案》

原帖由 huigexia 於 2009-6-4 20:26 發表 http://bbs.chinaunix.net/images/common/back.gif
  在安裝postfixadmin-2.2.1.1之後,在/var/www/html/postfixadmin下面找不到DATABASE_MYSQL.TXT文件,在執行setup.php后出現如下信息: [*]PHP version 4.3.9 [*]Apache/2.0.52 (Red Hat) Checking for depend ...
我遇到了同樣的問題,解決過程:
下載:postfixadmin-2.1.0.tar.gz
#tar zxvf postfixadmin-2.1.0.tar.gz
#cd postfixadmin-2.1.0
#dir
結果發現有DATABASE_MYSQL.TXT文件,果然是版本問題,汗啊!linux就是煩啊,什麼不可能的問題都有!
接下來:
->用phpmysqladmin管理mysql資料庫, 如果mysql資料庫的管理員中有postfix或者是postfixadmin,則將他們刪除!--->如果mysql資料庫中有資料庫「postfix」,則將其刪除。
->#cd postfixadmin-2.1.0
->#mysql -u root -p <DATABASE_MYSQL.TXT
->#enter passwd:
這樣就OK了!
《解決方案》

postfixadmin適用於不用webmail的郵件系統,要用webmail一般就不用postfixadmin了,一般webmail都自帶用戶管理功能。
《解決方案》

原帖由 xmbbx 於 2009-6-29 09:25 發表 http://bbs2.chinaunix.net/images/common/back.gif
postfixadmin適用於不用webmail的郵件系統,要用webmail一般就不用postfixadmin了,一般webmail都自帶用戶管理功能。

我怎麼沒有聽說過呢?你舉例說明一下呢?

[火星人 ] 有關postfixadmin與mysql的問題已經有885次圍觀

http://coctec.com/docs/service/show-post-21543.html