Evnironment:
OS: FreeBSD 8.1-RELEASE-p1
roundcube: 0.4.2
vacation: 1.9.9
apache: 1.3.42
php: 5.3.3_2
OS: FreeBSD 8.1-RELEASE-p1
roundcube: 0.4.2
vacation: 1.9.9
apache: 1.3.42
php: 5.3.3_2
- 前提: roundcube已正常運作。也就是apache, php等基本配件已經處理好了。
- 下載Vacation plugin,並解壓縮至/roundcube/plugins/內
(/usr/local/www/roundcube/plugins/) - 先讀過README與INSTALL兩個檔案,並決定要用哪種driver讓auto-reply的功能運作(這邊會以SSHFTP為例)。
- 啟用plugin: 修改/usr/local/www/roundcube/config/main.inc.php檔
找到$rcmail_config['plugins'] 這行,並加入'vacation'// List of active plugins (in plugins/ directory)
$rcmail_config['plugins'] = array('other_plugins','vacation'); - 修改/vacation/config.ini檔,指定driver
[default]
driver = "sshftp"
subject = "Default subject"
body = "default.txt"
server = host_name - 修改/vacation/config.ini檔的擁有者 與 執行權限
# chown $apache_user config.ini
# chmod 0400 confing.ini到目前為止,2-6點是INSTALL.txt內也有列出的幾項工作。
照著做完之後,在roundcube設定內,就可以看見"休假"的頁籤了。 - 不過你可能會遇到點下"休假"的頁籤後畫面就錯誤的狀況,這時候去檢查/roundcube/logs/errors時,可能會有以下錯誤訊息:
PHP Fatal error:
Call to undefined function ssh2_connect() in …/roundcube/plugins/vacation/lib/sshftp.class.php on line ... - 因為要使用PHP的SSH2系列功能時,系統需要有OpenSSL, libssh2, pecl-ssh2三個套件,可從ports安裝,libssh2與pecl-ssh2的位置分別在:
libssh2: /usr/ports/security/libssh2
pecl-ssh2: /usr/ports/security/pecl-ssh2
分別進入這兩個資料夾,設定並安裝:# make config install clean完成安裝後,可用phpinfo();網頁檢視SSH模組是否已支援。
或是檢視/usr/local/etc/php/extensions.ini檔案內是否有此行:extension=ssh2.so
- 修改/etc/ssh/sshd_config檔
必須啟用sshd的password authentication方法(sshftp.class.php內的叫用才會成功),找到PasswordAuthentication關進字並修改:# Change to yes to enable built-in password authentication.
PasswordAuthentication yes - 重新啟動sshd # /etc/rc.d/sshd restart
- 重新啟動apache # cd /usr/local/etc/rc.d
./apache restart - try it!!
ref:
您好,想請問一下,不知道您還在用roundcube嗎??我有一個問題,roundcube的vacation在larry版面上會怪怪的,但在classic上是正常,您知道該如何處理嗎??謝謝
HI,你好,抱歉,好久以前有機會接觸到玩玩的。現在沒在碰了,無法提供協助<(_ _)>