ISPConfig 3 is available for download. This release is a major update and introduces new functions like:
(http://www.howtoforge.com/perfect-se...64-ispconfig-3)
其他平台請參閱:http://www.ispconfig.org/ispconfig-3/documentation/
必要的套件
關閉防火牆及 SELinux
編輯 /etc/hosts
127.0.0.1 localhost.localdomain localhost 192.168.0.100 server1.example.com server1
關閉防火牆及 SELinux
system-config-securitylevel
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
編輯 /etc/yum.repos.d/CentOS-Base.repo
[base] [...] exclude=postfix [...] [updates] [...] exclude=postfix [...] [centosplus] [...] enabled=1 includepkgs=postfix [...] [contrib] [...] enabled=1 [...]
更新目前系統
yum update yum groupinstall 'Development Tools' yum groupinstall 'Development Libraries'
yum install quota
編輯 /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults,usrquota,grpquota 1 1 ....
然後執行
touch /aquota.user /aquota.group chmod 600 /aquota.* mount -o remount / quotacheck -avugm quotaon -avug
設定 RPMforge 套件庫
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm rpm -ivh rpmforge-release-0.5.2-2.el5.rf.i386.rpm
開始安裝
yum install ntp httpd mysql-server php php-mysql php-mbstring php-mcrypt phpmyadmin
預設的 Dovecot 不支援 MySQL,所以要先移除這,然後再安裝另一個版本的 Dovecot。
yum remove dovecot
設定 ATrpms 套件庫
新增 /etc/yum.repos.d/atrpms.repo:
[atrpms] name=Red Hat Enterprise Linux 5 - $basearch - ATrpms baseurl=http://dl.atrpms.net/el5-$basearch/atrpms/stable failovermethod=priority exclude=dovecot-2* includepkgs=dovecot dovecot-sieve # # requires stable # [atrpms-testing] name=Red Hat Enterprise Linux 5 - $basearch - ATrpms testing baseurl=http://dl.atrpms.net/el5-$basearch/atrpms/testing failovermethod=priority enabled=1 exclude=dovecot-2* includepkgs=dovecot dovecot-sieve # # requires stable and testing # [atrpms-bleeding] name=Red Hat Enterprise Linux 5 - $basearch - ATrpms bleeding baseurl=http://dl.atrpms.net/el5-$basearch/atrpms/bleeding failovermethod=priority enabled=0
wget http://ATrpms.net/RPM-GPG-KEY.atrpms rpm --import RPM-GPG-KEY.atrpms
安裝 Dovecot
yum install dovecot dovecot-sieve
設定自動啟動
chkconfig --levels 235 dovecot on /etc/init.d/dovecot start
如果出現錯誤:
Fatal: listen(::, 143) failed: Address family not supported by protocol
編輯 /etc/dovecot.conf:
[...] #listen = *, [::] listen = * <== 增加這行 [...]
再啟動服務一次。
預設的 postfix 不支援 MySQL,但從 CentOS Plus 套件庫安裝的則有,所以先移除再重新安裝。
yum remove postfix yum install postfix
設定 sendmail 停用及 postfix, MySQL 自動啟動
chkconfig --levels 235 mysqld on /etc/init.d/mysqld start chkconfig --levels 235 sendmail off chkconfig --levels 235 postfix on /etc/init.d/sendmail stop /etc/init.d/postfix start
yum install getmail
mysql_secure_installation