軟體版本
===============
Fedora 9
openwebmail 2.53
日前在安裝新版本 fedora 9 , 突然發現在官網裡面有提供 yum 的安裝方式說明 .
這就很方便來安裝 openwebmail 軟體 .
謹提供安裝心得 , 節錄重點如下 :

yum 程式會把相依性的程式一起安裝進來 , 很方便.
檢查 dbm.conf
more /var/www/cgi-bin/openwebmail/etc/dbm.conf
顯示如下

可以 run 'perl /var/www/cgi-bin/openwebmail/misc/test/dbtest.pl'
#perl /var/www/cgi-bin/openwebmail/misc/test/dbtest.pl
若顯示如下圖 :

vi /usr/lib/perl5/5.10.0/i386-linux-thread-multi/DB_File.pm
在 # make recno in Berkeley DB version 2 (or better) work like 這行前面加上一行
$arg[3] = 0666 unless defined sarg[3];
完成之後在做 openwebmail 安裝設定
./var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init
之後會問你是否要 report 回去
sent the site report?(Y/n) y
安裝完成後 httpd restart 即可
service httpd restart
打開瀏覽器 openwebmail 內定網址為
http://localhost/cgi-bin/openwebmail/openwebmail.pl
若有出現代表安裝完成
若想簡化網址可以用下列簡單的 html 語法做一個首頁 , 放置在 /var/www/html 目錄裡面

記得要檢查 httpd.conf 裡面 DirectoryIndex 設定首頁的檔名 ,要跟你的檔案名稱一致才行
就可以簡化網址
由 http://localhost/cgi-bin/openwebmail/openwebmail.pl 變成 http://localhost/
沒有留言:
張貼留言