假設mysql5 和 apache2接已設定完成且可正常提供服務

 一資料庫相關設定

     1.以管理者權限進入mysql

          mysql -u root -p

        接著會詢問密碼

     2.建立roundcube需要使用的資料庫

         資料庫命名為roundcube

        create database roundcube;

    3.建立與授權可存取資料庫roundcube的帳號

       帳號為roundcube

       create user roundcube;

       密碼設定為12345

       set password for 'roundcube'=password('12345');

       授予存取權限

       grant all privileges on roundcube.* to 'roundcube@localhost' identified by '12345'

      重新裝載授權表讓新設定的權限生效

      flush privileges;

     離開mysql

     exit

 

二下載roundcube與安裝

    1. 從http://roundcube.net/download下載  roundcubemail-0.8.4.tar.gz

         準備將其安裝於/var/www/roundcube

    2. 使用tar 解壓縮 將檔案解壓縮到/var/www

  • -c 打包一個 tar 檔案
  • -C 指定目錄
  • -x 解開一個 tar 檔案
  • -t 檢視 tar 檔案的內容
  • -z 使用 gzip 處理檔案
  • -v 顯示建立 tar 檔案的過程
  • -f 指定 tar 檔案的檔案名稱(此參數的後面必須接目標檔名)

         sudo  tar -xzvf roundcubemail-0.8.4.tar.gz -C /var/www

    3.在/var/www下會有一個新的資料目錄 roundcubemail-0.8.4

       將目錄roundcubemail-0.8.4改名為roundcube

      sudo mv /var/www/roundcubemail-0.8.4 /var/www/roundcube

    4.變更/var/www/roundcube/temp /var/www/roundcube/logs目錄的權限

       sudo chown -R www-data.www-data /var/www/roundcube/temp

       sudo chown -R www-data.www-data /var/www/roundcube/logs

    5.開啟瀏覽器執行http://localhost/roundcube/installer

       初次執行此網址會檢查安裝roundcube的必要條件

       排除所有問題後下方的Next按鈕才可以執行

   6.按下Next按鈕進入第二頁面需填入您郵件伺服器相關設定或是roundcube相關設定

      填完後請按下CREATE CONFIG按鈕

   7.步驟6.會產生兩各設定檔main.inc.php 和db.inc.php

  

註:安裝完成設定檔放入/var/www/roundcube/config後

        http://localhost/roundcube/installer連結便無法正常執行

        會出現錯誤訊息

            The installer is disabled!

                     To enable it again, set $rcmail_config['enable_installer'] = true; in RCMAIL_CONFIG_DIR/main.inc.php

 

 
       

        若要正常執行此連結請修改

         /var/www/roundcube/config/main.inc.php檔案

        設定 $rcmail_config['enable_installer']=true

三使用http://localhost/roundcube       測試是否成功進入登入頁面

參考資料

http://www.upubuntu.com/2012/02/how-to-install-roundcube-webmail-071-on.html

http://trac.roundcube.net/wiki

http://roundcube.net/

arrow
arrow
    文章標籤
    ubuntu roundcube
    全站熱搜

    K 發表在 痞客邦 留言(0) 人氣()