前置作業:
http, mail(建議postfix), 已正常運作。


安裝 perl* , suidperl , CGI相關 ,

下載 perl-Text-Iconv.i386.rpm    openwebmail-2.53-3.i386.rpm   openwebmail-data-2.53-3.i386.rpm  至 / 底下

rpm -ivh *.rpm
rpm -e mutt
yum update
cd /var/www/cgi-bin/openwebmail
./openwebmail-tool.pl --init
cd etc  (/var/www/cgi-bin/openwebmail/etc)
vi dbm.conf
dbm_ext                 .db
dbmopen_ext             .db
dbmopen_haslock         yes
存檔離開
cd ..
./openwebmail-tool.pl --init

Welcome to the Open WebMail!

This program is going to send a short message back to the developer,
so we could have the idea that who is installing and how many sites are
using this software, the content to be sent is:

OS: Linux 2.4.22-1.2199.nptl i686
Perl: 5.008003
WebMail: Open WebMail 2.40 20040816

Send the site report?(Y/n)
sending report...

Thank you.


cd etc  (/var/www/cgi-bin/openwebmail/etc)
vi openwebmail.conf

default_language                zh_TW.Big5
enable_webdisk no  (如果不想提供網路硬碟的話)
enable_sshterm no  (如果不想提供網路連線的話)

 

 

 

 

存檔離開

cd ..
vi /etc/httpd/conf/httpd.conf

#ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
ScriptAlias  /webmail     /var/www/cgi-bin/openwebmail/openwebmail.pl     (http://hostname/webmail就可以進入 openwebmail)
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>
AddHandler cgi-script .cgi .pl

 

 

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