ISPConfig

This is what we did to setup ISPConfig on a friends server.
Install vim:
 aptitude install vim-nox

Setup correct hostname:

echo server1.example.com > /etc/hostname
/etc/init.d/hostname restarthostname
hostname -f

NTP:

aptitude install ntp ntpdate

Mail:

The mail server needs an own subdomain that is not needed as email domain. You can add mail. to your domain, e.g. mail.example.org

aptitude install postfix postfix-mysql postfix-doc mysql-client mysql-server libsasl2-2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl getmail4 rkhunter binutils maildrop dovecot dovecot-imapd dovecot-pop3d spamassassin clamav clamav-daemon zoo unzip bzip2 razor pyzor amavisd-new

aptitude install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl

Apache:

aptitude install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libopenssl-ruby libapache2-mod-rubya2enmod suexec rewrite ssl actions include

a2enmod davfs dav authdigest

Pure FTP:

aptitude install pure-ftpd-common pure-ftpd-mysql quota quotatool

Edit configuration (vim /etc/default/pure-ftpd-common):

[…]
STANDALONEORINETD=standalone
[…]
VIRTUALCHROOT=true
[…]

Vlogger, Webalitzer, AWStats

aptitude install vlogger webalizer awstats

Fail2ban

aptitude install fail2ban

Squirrelmail

aptitude install squirrelmailln -s /etc/squirrelmail/apache.conf /etc/apache2/conf.d/squirrelmail.conf

Now you need to execute squirrelmail-configure. Select “D” and set the pre-defined settings for specific IMAP servers – dovecot -S save – Q quit
ISPConfig

cd /tmp

wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz
tar xfz ISPConfig-3-stable.tar.gz
cd ispconfig3_install/install/

Execute the install script:

php -q install.php

This script should now configure the system.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *