檢查Apache套件是否有安裝
[root@ns1 ~]# rpm -qa | grep apr
apr-1.2.7-11
apr-util-1.2.7-7.el5
[root@ns1 ~]# rpm -qa | grep apr
apr-1.2.7-11
apr-util-1.2.7-7.el5
[root@ns1 ~]# rpm -qa | grep httpd
httpd-2.2.3-22.el5.centos
httpd-2.2.3-22.el5.centos
設定httpd.conf
[root@ns1 ~]# vi /etc/httpd/conf/httpd.conf
AddDefaultCharset big5
ServerName bear110.com:80
[root@ns1 ~]# vi /etc/httpd/conf/httpd.conf
AddDefaultCharset big5
ServerName bear110.com:80
啟動httpd
[root@ns1 /]# /etc/rc.d/init.d/httpd start
[root@ns1 /]# /etc/rc.d/init.d/httpd start
設定開機啟動httpd
[root@ns1 /]# chkconfig httpd on
[root@ns1 /]# chkconfig httpd on
檢查相關套件是否有安裝
[root@ns1 ~]# rpm -qa | grep perl
perl-5.8.8-18.el5
perl-Compress-Zlib-1.42-1.fc6
perl-suidperl-5.8.8-18.el5_3.1
[root@ns1 ~]# rpm -qa | grep perl
perl-5.8.8-18.el5
perl-Compress-Zlib-1.42-1.fc6
perl-suidperl-5.8.8-18.el5_3.1
安裝perl-suidperl
[root@ns1 ~]# yum -y install perl-suidperl
[root@ns1 ~]# yum -y install perl-suidperl
將下載下來的openwebmail套件放在同一資料夾,然後安裝
[root@ns1 ~]# rpm -ivh openwebmail*.rpm
openwebmail-2.53-3.i386.rpm
openwebmail-data-2.53-3.i386.rpm
[root@ns1 ~]# rpm -ivh openwebmail*.rpm
openwebmail-2.53-3.i386.rpm
openwebmail-data-2.53-3.i386.rpm
修改dbm.conf檔案
[root@ns1 ~]# vi /var/www/cgi-bin/openwebmail/etc/dbm.conf
dbm_ext .db
dbmopen_ext .db
dbmopen_haslock yes
[root@ns1 ~]# vi /var/www/cgi-bin/openwebmail/etc/dbm.conf
dbm_ext .db
dbmopen_ext .db
dbmopen_haslock yes
到openwebmail目錄下進行初始化
[root@ns1 ~]# cd /var/www/cgi-bin/openwebmail/
[root@ns1 openwebmail]# ./openwebmail-tool.pl --init
[root@ns1 ~]# cd /var/www/cgi-bin/openwebmail/
[root@ns1 openwebmail]# ./openwebmail-tool.pl --init
Send the site report?(Y/n) y
sending report...
Thank you.
sending report...
Thank you.
設定openwebmail的設定檔openwebmail.conf
[root@linux /]# vi /var/www/cgi-bin/openwebmail/etc/openwebmail.conf
default_language zh_TW.Big5<default_signature>
--------------------
[root@linux /]# vi /var/www/cgi-bin/openwebmail/etc/openwebmail.conf
default_language zh_TW.Big5<default_signature>
--------------------
</default_signature>
default_iconset Cool3D.Chinese.Traditional
default_iconset Cool3D.Chinese.Traditional
簡化 Open WebMail 連結網址
[root@ns1 ~]# vi /etc/httpd/conf/httpd.conf
[root@ns1 ~]# vi /etc/httpd/conf/httpd.conf
設定檔最後面加下面這一行
ScriptAlias /mail "/var/www/cgi-bin/openwebmail/openwebmail.pl"
ScriptAlias /mail "/var/www/cgi-bin/openwebmail/openwebmail.pl"
沒有留言:
張貼留言