ISPConfig 3

    版本為 13:17, 28 Jul 2026

    到這個版本。

    返回到 版本存檔.

    查閱目前版本

    ISPConfig 3 is available for download. This release is a major update and introduces new functions like:

    • Virtual server management module
    • Full support for Nginx webserver
    • Mailman mailinglist management
    • IPv6 support
    • FAQ section in Help module
    • Website folder protection
    • Assign IP addresses to clients
    • SNI support for Apache/nginx SSL certificate
    • New remote-API documentation and example scripts for all functions
    • Added support for key based SSH logins

    Install on CentOS 5

    (http://www.howtoforge.com/perfect-se...64-ispconfig-3)
    其他平台請參閱:http://www.ispconfig.org/ispconfig-3/documentation/

    CentOS 5 基本安裝

    必要的套件

    • Applications -> Editors, Text-based Internet
    • Development -> Development Libraries, Development Tools
    • Servers -> DNS Name Server, FTP Server, Mail Server, MySQL Database, Server Configuration Tools, Web Server
    • Base System -> Administration Tools, Base, System Tools
       

    關閉防火牆及 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' 
    
    Quota
    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
    安裝 Apache, MySQL, phpmyadmin

    設定 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

    預設的 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

    預設的 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
    
    安裝 Getmail
    yum install getmail
    設定 MySQL 管理密碼及安全性,phpmyadmin
    mysql_secure_installation
    Powered by MindTouch Core