11Installation
22-----------
33
4- It is recommended to use a clean (fresh) Debian etch install where you just selected "Standard System" as the package selection during setup. Then follow the steps below to setup your server with ISPConfig 3:
4+ # It is recommended to use a clean (fresh) Debian lenny install where you just selected "Standard System" as the package selection during
5+ # setup. Then follow the steps below to setup your server with ISPConfig 3. In this guide "vi" is used as texteditor, but you ofcourse
6+ # you can use whatever you prefer. You should be root for doing all of this.
57
6- assign hostname (for example ispconfig)
8+
9+ # Check we have Fully Qualified Domain Name
10+
11+ /bin/hostname
12+
13+ # it should return something like "ispconfig.example.com"
14+ # if not, then we assign hostname (for example ispconfig):
715
816echo ispconfig.example.com > /etc/hostname
917
1018vi /etc/hosts
1119and add line similar but appropriate:
20+
1221127.0.0.1 localhost.localdomain localhost
1322192.168.0.100 ispconfig.example.com ispconfig
1423
15- 1) Install Postfix , Courier , Saslauthd , MySQL , phpMyAdmin , ntpdate , rkhunter with the following command line (on one line!):
1624
17- apt-get install postfix postfix-mysql postfix-doc mysql-client mysql-server courier-authdaemon courier-authlib-mysql courier-pop courier-pop-ssl courier-imap courier-imap-ssl libsasl2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl courier-maildrop getmail4 ntp ntpdate rkhunter
1825
19- Answer the questions from the package manager as follows.
26+ # Some optional choices
27+
28+ opt0.1) Optionally install SSH-server to get remote shell
29+
30+ apt-get install ssh openssh-server
31+
32+ opt0.2) Optionally if you are not running in virtual machine you can set server clocksync via NTP. Virtual quests get this from host.
33+
34+ apt-get install ntp ntpdate
35+
36+
37+
38+ # Then into real deal
39+
40+ 1) Install Postfix , Courier , Saslauthd , MySQL , phpMyAdmin , rkhunter with the following command line (on one line!):
41+
42+ apt-get install postfix postfix-mysql postfix-doc mysql-client mysql-server courier-authdaemon courier-authlib-mysql courier-pop courier-pop-ssl courier-imap courier-imap-ssl libsasl2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl courier-maildrop getmail4 rkhunter
43+
44+ # Answer the questions from the package manager as follows.
2045
2146Create directories for web-based administration ? <-- No
2247General type of configuration? <-- Internet site
@@ -25,61 +50,69 @@ Mail name? <-- server1.mydomain.tld
2550
2651...use your own domain name of course ; )
2752
28- Edit the file /etc/mysql/my.cnf
53+
54+
55+ # Edit the file /etc/mysql/my.cnf
2956
3057vi /etc/mysql/my.cnf
3158
32- and comment out the line
59+ # and comment out the line
3360
3461bind-address = 127.0.0.1
3562
36- then restart mysql
63+ # then restart mysql
3764
3865/etc/init.d/mysql restart
3966
40- Set the mysql database password:
67+ # Set the mysql database password:
4168
4269mysqladmin -u root password yourrootsqlpassword
4370mysqladmin -h ispconfig.local -u root password yourrootsqlpassword
4471
4572
73+
46742) Install Amavisd-new , Spamassassin and Clamav (1 line!):
4775
4876apt-get 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
4977
50- 3) Install apache , PHP5 and phpmyadmin (1 line!):
5178
52- apt-get 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 libapache2-mod-fcgid apache2-suexec
5379
54- Then run the following to enable the Apache modules:
80+ 3) Install apache , PHP5 , phpmyadmin , better fastCGI , suexec , Pear and mrypt (1 line!):
81+
82+ apt-get 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 libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt
83+
84+
85+ # When myphpadmin is asking wether to configure itself automagigally, select "Apache2"
86+
87+ # Then run the following to enable the Apache modules suexec, rewrite and ssl:
88+
89+ a2enmod suexec rewrite ssl
90+
91+ opt3.1) Optionally install some imagemanipulation capabilities to make advanced webdesigners happy
92+
93+ apt-get install php5-imagick imagemagick
94+
5595
56- a2enmod suexec
57- a2enmod rewrite
58- a2enmod ssl
5996
60974) Install pure-ftpd and quota
6198
6299apt-get install pure-ftpd-common pure-ftpd-mysql quota quotatool
63100
64- Edit the file /etc/default/pure-ftpd-common
101+ # Edit the file /etc/default/pure-ftpd-common to change the start mode from "inetd" to "standalone".
65102
66103vi /etc/default/pure-ftpd-common
67104
68- and change the start mode from inetd to standalone.
69-
70- Edit the file /etc/inetd.conf
105+ # Edit the file /etc/inetd.conf to prevent inetd from trying to start ftp.
106+ # To do this, comment line starting like "ftp stream tcp" by adding "#"-sign in front of the line.
71107
72108vi /etc/inetd.conf
73109
74- and comment out the line for the FTP service , so it looks like this:
75-
76- # ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/pure-ftpd-wrapper
77-
78- Then execute:
110+ # Then execute:
79111
80112/etc/init.d/openbsd-inetd restart
81113
82114
115+
831165) Install mydns
84117
85118apt-get install g++ libc6 gcc gawk make texinfo libmysqlclient15-dev
@@ -205,6 +238,9 @@ password: admin
205238
206239In case you get a permission denied error from apache , please restart the apache webserver process.
207240
241+
242+
243+ ----------------------------------------------------------------------------------------------------------
208244Optional:
209245
210246Install a webbased Email Client
@@ -246,3 +282,4 @@ cd jailkit-2.5
246282make
247283make install
248284rm -rf jailkit-2.5*
285+ ----------------------------------------------------------------------------------------------------------
0 commit comments