close
※openwebmail 安裝
- 下載軟體
http://www.openwebmail.org/
- 解壓縮並移動目錄
tar -zxvf openwebmail.*
mv data/openwebmail /srv/www/htdocs/
mv cgi-bin/openwebmail /srv/www/cgi-bin/ - 確定Apache 有安裝
rpm -q apache2 - 將 suidperl 改為 4755
vi /etc/permissions
/usr/bin/suidperl root:root 4755
SuSeconfig
註:SuSeconfig 在執行時會檢查 /etc/permissions 內的設定,將不符合的權限改為permissions
內的權限 - 修正程式
cd /srv/www/cgi-bin/openwebmail/misc/tools/wropsuid
perl wrapsuid.pl /srv/www/cgi-bin/openwebmail
- 安裝Text-Iconv (outoinstall.plesk.com/ps48/…
rpm –ivh - 修改 /srv/www/cgi-bin/openwebmail/etc/openwebmail.conf
修改前:
修改後: - 修改資料庫設定
/srv/www/cgi-bin/openwebmail/openwebmail-tool.pl --init
vi /srv/www/cgi-bin/openwebmail/etc/dbm.conf
dbm_ext .pag
dbmmopen_ext none
dbmopen_haslock no
srv/www/cgi-bin/openwebmail/openwebmail-tool.pl --init
- 設定完成即可正常登入
- ※簡化登入路徑
- 修改全伺服器設定
vi /etc/apache2/default-server.conf
加入 ScriptAlias mail “srv/www/cgi-bin/openwebmail/openwebmail.pl” - 重新啟動Apache
service apache2 restart - 測試網頁
全站熱搜