tbrehm
2009-01-11 1b4ba060046fc3142b88ce027c9e7c52c80235bf
commit | author | age
4cb0eb 1 Installation
T 2 -----------
3
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:
5
fdf891 6 assign hostname (for example ispconfig)
F 7
8 echo ispconfig.example.com > /etc/hostname
9
10 vi /etc/hosts
11 and add line similar but appropriate:
12 127.0.0.1       localhost.localdomain   localhost
13 192.168.0.100   ispconfig.example.com   ispconfig
14
39b058 15 1) Add the debian volatile repository to the apt sources list:
T 16
17 vi /etc/apt/sources.list
18
19 and insert the line:
20
21 deb http://volatile.debian.org/debian-volatile etch/volatile main contrib non-free
22
23 Then run:
24
25 apt-get update
26
610bc7 27 Now Install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin, ntpdate, rkhunter, binutils with the following command line (on one line!):
4cb0eb 28
610bc7 29 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 binutils
4cb0eb 30
T 31 Answer the questions from the package manager as follows.
32
33 Create directories for web-based administration ? <-- No
34 General type of configuration? <-- Internet site
35 Mail name? <-- server1.mydomain.tld
36  SSL certificate required <-- Ok
37
38 ...use your own domain name of course ;)
39
5f7eea 40 Edit the file /etc/mysql/my.cnf
d4c9b3 41
T 42 vi /etc/mysql/my.cnf
43
44 and comment out the line
45
46 bind-address          = 127.0.0.1
47
48 then restart mysql
49
50 /etc/init.d/mysql restart
51
52 Set the mysql database password:
53
54 mysqladmin -u root password yourrootsqlpassword
55 mysqladmin -h ispconfig.local -u root password yourrootsqlpassword
56
57
4cb0eb 58 2) Install Amavisd-new, Spamassassin and Clamav (1 line!):
T 59
ba66cd 60 apt-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
4cb0eb 61
T 62 3) Install apache, PHP5 and phpmyadmin (1 line!):
63
b5f091 64 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 php5-cgi libapache2-mod-fcgid
4cb0eb 65
T 66 Then run the following to enable the Apache modules:
67
68 a2enmod suexec
69 a2enmod rewrite
30aa08 70 a2enmod ssl
9e356a 71 a2enmod actions
4cb0eb 72
T 73 4) Install pure-ftpd and quota
74
75 apt-get install pure-ftpd-common pure-ftpd-mysql quota quotatool
76
af8f1b 77 Edit the file /etc/default/pure-ftpd-common
T 78
79 vi /etc/default/pure-ftpd-common
80
4fe973 81 and change the start mode from inetd to standalone. 
T 82
3845f1 83 Edit the file /etc/inetd.conf
T 84
85 vi /etc/inetd.conf
4fe973 86
T 87 and comment out the line for the FTP service, so it looks like this:
88
89 # ftp   stream  tcp     nowait  root    /usr/sbin/tcpd /usr/sbin/pure-ftpd-wrapper
90
91 Then execute:
af8f1b 92
T 93 /etc/init.d/openbsd-inetd restart
94
4cb0eb 95
T 96 5) Install mydns
97
98 apt-get install mydns-mysql
99
a4262c 100 What is the hostname of the machine on which the database will run? -> localhost
T 101 What is the database name for the MyDNS database? -> mydns
d4c9b3 102 Would you like to set up the database and tables automatically? -> yes
T 103 What is the username of the MySQL administrator? -> root
104 Enter the MySQL administrator password -> yourrootsqlpassword
105 Confirm this password -> yourrootsqlpassword
106 What is the MyDNS username? -> mydns
107 What is the MyDNS user password? -> mydnspassword
108
4cb0eb 109 The mydns installer is a bit tricky, you will have to select to create a new database for mydns and use a existing mysql user, e.g. the mysql root user. This database is only to fullfill the requirements for the debian pacakge during installation and will not be used by ISPConfig later. ISPConfig will automatically change the mydns configuration files to use the ISPConfig database.
T 110
111
112 6) Install vlogger and webalizer
113
114 apt-get install vlogger webalizer
115
116
117 7) Install ISPConfig 3
118
119 There are two possile scenarios, but not both:
369a38 120 7.1) Install the latest released version 
4fe973 121 7.2) Install directly from SVN
4cb0eb 122
6627a9 123 7.1) Installation of last version from tar.gz
4cb0eb 124
T 125   cd /tmp
bf50bc 126   wget http://www.ispconfig.org/downloads/ISPConfig-3.0.0.8-rc1.tar.gz
T 127   tar xvfz ISPConfig-3.0.0.8-rc1.tar.gz
3fac98 128   cd ispconfig3_install/install/
4cb0eb 129
4fe973 130 7.2) Installation from SVN
4cb0eb 131
T 132   apt-get install subversion
133   cd /tmp
134   svn export svn://svn.ispconfig.org/ispconfig3/trunk/
135   cd trunk/install
136
137
4fe973 138 7.1+7.2) Now proceed with the ISPConfig installation.
4cb0eb 139
T 140 Now start the installation process by executing:
141
142 php -q install.php
143
144 The installer will configure all services like postfix, sasl, courier, etc. for you. A manual setup as required for ISPConfig 2 (perfect setup guides) is not nescessary. To login to the ISPConfig controlpanel, open the following URL in your browser (replace the IP to match your settings!):
145
146 http://192.168.0.100:8080/
147
148 the default login is:
149
150 user: admin
151 password: admin
152
153 In case you get a permission denied error from apache, please restart the apache webserver process.
ba66cd 154
3845f1 155 Optional:
T 156
490039 157 Install a webbased Email Client
3845f1 158
T 159 apt-get install squirrelmail
160 ln -s /usr/share/squirrelmail/ /var/www/webmail
161
162 Access squirrelmail:
163
164 http://192.168.0.100/webmail
165
166
167 To configure squirrelmail, run:
168
169 /usr/sbin/squirrelmail-configure
170
ba66cd 171 ----------------------------------------------------------------------------------------------------------
T 172
173 Hints:
174
175 debian 4.0 under openvz:
176
8a6a58 177 VPSID=101
ba66cd 178 for CAP in CHOWN DAC_READ_SEARCH SETGID SETUID NET_BIND_SERVICE NET_ADMIN SYS_CHROOT SYS_NICE CHOWN DAC_READ_SEARCH SETGID SETUID NET_BIND_SERVICE NET_ADMIN SYS_CHROOT SYS_NICE
T 179 do
180   vzctl set $VPSID --capability ${CAP}:on --save
181 done
46bf55 182
T 183 ----------------------------------------------------------------------------------------------------------
184
185 Installing Jailkit:
186
cdf85e 187 apt-get install build-essential autoconf automake1.9 libtool flex bison
46bf55 188 cd /tmp
cdf85e 189 wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz
T 190 tar xvfz jailkit-2.5.tar.gz
191 cd jailkit-2.5
46bf55 192 ./configure
T 193 make
194 make install
cdf85e 195 rm -rf jailkit-2.5*
14716c 196 ----------------------------------------------------------------------------------------------------------
F 197
198 Optional packages recommended:
199
200 denyhosts - a utility to help sys admins thwart ssh crackers
059a13 201 fail2ban - Preventing Brute Force Attacks - http://www.howtoforge.com/fail2ban_debian_etch
14716c 202 rsync - fast remote file copy program (for backup)