[研究] OpenWebMail 2.53 快速安裝程式 (CentOS 6.5 x64)
2014-01-12
官方網站
http://openwebmail.org/
OpenWebMail 最新一版是 21-Feb-2008 釋出,而且只有 i386 版,沒有 x86_64 版。
快速安裝程式 OpenWebMail.sh 內容如下
#!/bin/bash
echo -e "\033[31;42m ********** Install OpenWebMail 2.53 on CentOS 6.5 x64 ********** \033[0m"
echo -e "\033[31m 2014/01/12 ********** \033[0m"
# Check SELinux status
if [ "`grep SELINUX=disabled /etc/selinux/config`" == "" ]; then
# disable SELinux now
/usr/sbin/setenforce 0
# disable SELinux always
sed -i -e "s@SELINUX=enforcing@#SELINUX=enforcing@" /etc/selinux/config
sed -i -e "s@SELINUX=permissive@#SELINUX=permissive@" /etc/selinux/config
sed -i -e "/SELINUX=/aSELINUX=disabled" /etc/selinux/config
fi
# Kill nptd on running...
ProcessID="`ps aux | grep ntpd | awk '{print $2}' `"
for i in $ProcessID
do
echo $i
kill -9 $i
done
ntpdate tick.stdtime.gov.tw
# Kill yum on running...
ProcessID="`ps aux | grep yum | awk '{print $2}' `"
for i in $ProcessID
do
echo $i
kill -9 $i
done
yum -y install perl-suidperl perl-Compress-Zlib perl-Text-Iconv
cd /etc/yum.repos.d
wget http://openwebmail.org/openwebmail/download/redhat/rpm/release/openwebmail.repo
yum -y install openwebmail
echo "dbm_ext .pag" > /var/www/cgi-bin/openwebmail/etc/dbm.conf
echo "dbmopen_ext none" >> /var/www/cgi-bin/openwebmail/etc/dbm.conf
echo "dbmopen_haslock no" >> /var/www/cgi-bin/openwebmail/etc/dbm.conf
/var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init
# vi /var/www/cgi-bin/openwebmail/etc/openwebmail.conf
# vi/var/www/cgi-bin/openwebmail/etc/defaults/dbm.conf
service iptables stop
chkconfig iptables off
service httpd restart
chkconfig httpd on
firefox http://localhost/webmail/ &
(完)
相關
[研究] OpenWebMail 2.53 快速安裝程式 (CentOS 6.5 x64)
http://shaurong.blogspot.com/2014/01/openwebmail-253-centos-65-x64_12.html
http://forum.icst.org.tw/phpbb/viewtopic.php?f=20&t=80686
[研究] OpenWebMail 2.53 安裝 (CentOS 6.5 x64)
http://shaurong.blogspot.com/2014/01/openwebmail-253-centos-65-x64.html
http://forum.icst.org.tw/phpbb/viewtopic.php?f=20&t=80685
[研究] OpenWebMail 2.53 安裝 (CentOS 5.6 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=20223
沒有留言:
張貼留言