1、修改系统的SELinux设置:
[root@mail ~]# vi /etc/sysconfig/selinux
//将配置行
SELINUX=enforcing
//改成
SELINUX=disabled
2、重启系统或使用命令:
//重启系统:
[root@mail ~]# init 6
//或用命令:
[root@mail ~]# getenforce #查看当前状态
Enforcing
[root@mail ~]# setenforce 0
[root@mail ~]# getenforce
Permissive
3、安装OpenWebmail软件:
[root@mail ~]# mount /dev/cdrom /media/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@mail ~]# cd /media/cdrom
[root@mail cdrom]# ls
openwebmail-2.51-1.i386.rpm
perl-CGI-SpeedyCGI-2.22-1.2.el4.rf.i386.rpm
perl-Compress-Zlib-1.34-1.2.el4.rf.i386.rpm
perl-Compress-Zlib-1.42-1.el4.rf.i386.rpm
perl-suidperl-5.8.5-36.RHEL4.i386.rpm
perl-Text-Iconv-1.4-1.2.el4.rf.i386.rpm
[root@mail cdrom]# rpm -ivh openwebmail-2.51-1.i386.rpm perl* 警告:openwebmail-2.51-1.i386.rpm: V3 DSA 簽章:NOKEY, key ID cfb164d8
警告:perl-CGI-SpeedyCGI-2.22-1.2.el4.rf.i386.rpm: V3 DSA 簽章:NOKEY, key ID 6b 8d79e6
警告:套件 perl-Compress-Zlib = 1.34-1.2.el4.rf 已經加入,以 perl-Compress-Zlib <= 1.42-1.el4.rf 取代
警告:perl-suidperl-5.8.5-36.RHEL4.i386.rpm: V3 DSA 簽章:NOKEY, key ID db42a60e
準備中... ########################################### [100%]
1:perl-Text-Iconv ########################################### [ 20%]
2:perl-suidperl ########################################### [ 40%]
3:perl-Compress-Zlib ########################################### [ 60%]
4:openwebmail ########################################### [ 80%]
You may login with non-root account from
[url]http://mail.rhel4a.com/cgi-bin/openwebmail/openwebmail.pl[/url]
5:perl-CGI-SpeedyCGI ########################################### [100%]
4、建立dbm.conf文件:
[root@mail cdrom]# vi /var/www/cgi-bin/openwebmail/etc/dbm.conf
[root@mail ~]# vi /etc/sysconfig/selinux
//将配置行
SELINUX=enforcing
//改成
SELINUX=disabled
2、重启系统或使用命令:
//重启系统:
[root@mail ~]# init 6
//或用命令:
[root@mail ~]# getenforce #查看当前状态
Enforcing
[root@mail ~]# setenforce 0
[root@mail ~]# getenforce
Permissive
3、安装OpenWebmail软件:
[root@mail ~]# mount /dev/cdrom /media/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@mail ~]# cd /media/cdrom
[root@mail cdrom]# ls
openwebmail-2.51-1.i386.rpm
perl-CGI-SpeedyCGI-2.22-1.2.el4.rf.i386.rpm
perl-Compress-Zlib-1.34-1.2.el4.rf.i386.rpm
perl-Compress-Zlib-1.42-1.el4.rf.i386.rpm
perl-suidperl-5.8.5-36.RHEL4.i386.rpm
perl-Text-Iconv-1.4-1.2.el4.rf.i386.rpm
[root@mail cdrom]# rpm -ivh openwebmail-2.51-1.i386.rpm perl* 警告:openwebmail-2.51-1.i386.rpm: V3 DSA 簽章:NOKEY, key ID cfb164d8
警告:perl-CGI-SpeedyCGI-2.22-1.2.el4.rf.i386.rpm: V3 DSA 簽章:NOKEY, key ID 6b 8d79e6
警告:套件 perl-Compress-Zlib = 1.34-1.2.el4.rf 已經加入,以 perl-Compress-Zlib <= 1.42-1.el4.rf 取代
警告:perl-suidperl-5.8.5-36.RHEL4.i386.rpm: V3 DSA 簽章:NOKEY, key ID db42a60e
準備中... ########################################### [100%]
1:perl-Text-Iconv ########################################### [ 20%]
2:perl-suidperl ########################################### [ 40%]
3:perl-Compress-Zlib ########################################### [ 60%]
4:openwebmail ########################################### [ 80%]
You may login with non-root account from
[url]http://mail.rhel4a.com/cgi-bin/openwebmail/openwebmail.pl[/url]
5:perl-CGI-SpeedyCGI ########################################### [100%]
4、建立dbm.conf文件:
[root@mail cdrom]# vi /var/www/cgi-bin/openwebmail/etc/dbm.conf
转载于:https://blog.51cto.com/liwenhui/128858