fantu
2008-12-20 2b8db0b214058ec0e4aa978e91d5cb95fc0a829b
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
27 Now Install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin, ntpdate, rkhunter with the following command line (on one line!):
4cb0eb 28
ede53c 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
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
8065e0 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 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
4cb0eb 71
T 72 4) Install pure-ftpd and quota
73
74 apt-get install pure-ftpd-common pure-ftpd-mysql quota quotatool
75
af8f1b 76 Edit the file /etc/default/pure-ftpd-common
T 77
78 vi /etc/default/pure-ftpd-common
79
4fe973 80 and change the start mode from inetd to standalone. 
T 81
3845f1 82 Edit the file /etc/inetd.conf
T 83
84 vi /etc/inetd.conf
4fe973 85
T 86 and comment out the line for the FTP service, so it looks like this:
87
88 # ftp   stream  tcp     nowait  root    /usr/sbin/tcpd /usr/sbin/pure-ftpd-wrapper
89
90 Then execute:
af8f1b 91
T 92 /etc/init.d/openbsd-inetd restart
93
4cb0eb 94
T 95 5) Install mydns
96
97 apt-get install mydns-mysql
98
a4262c 99 What is the hostname of the machine on which the database will run? -> localhost
T 100 What is the database name for the MyDNS database? -> mydns
d4c9b3 101 Would you like to set up the database and tables automatically? -> yes
T 102 What is the username of the MySQL administrator? -> root
103 Enter the MySQL administrator password -> yourrootsqlpassword
104 Confirm this password -> yourrootsqlpassword
105 What is the MyDNS username? -> mydns
106 What is the MyDNS user password? -> mydnspassword
107
4cb0eb 108 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 109
110
111 6) Install vlogger and webalizer
112
113 apt-get install vlogger webalizer
114
115
116 7) Install ISPConfig 3
117
118 There are two possile scenarios, but not both:
369a38 119 7.1) Install the latest released version 
4fe973 120 7.2) Install directly from SVN
4cb0eb 121
6627a9 122 7.1) Installation of last version from tar.gz
4cb0eb 123
T 124   cd /tmp
e1f106 125   wget http://www.ispconfig.org/downloads/ISPConfig-3.0.0.7-beta.tar.gz
F 126   tar xvfz ISPConfig-3.0.0.7-beta.tar.gz
3fac98 127   cd ispconfig3_install/install/
4cb0eb 128
4fe973 129 7.2) Installation from SVN
4cb0eb 130
T 131   apt-get install subversion
132   cd /tmp
133   svn export svn://svn.ispconfig.org/ispconfig3/trunk/
134   cd trunk/install
135
136
4fe973 137 7.1+7.2) Now proceed with the ISPConfig installation.
4cb0eb 138
T 139 Now start the installation process by executing:
140
141 php -q install.php
142
143 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!):
144
145 http://192.168.0.100:8080/
146
147 the default login is:
148
149 user: admin
150 password: admin
151
152 In case you get a permission denied error from apache, please restart the apache webserver process.
ba66cd 153
3845f1 154 Optional:
T 155
490039 156 Install a webbased Email Client
3845f1 157
T 158 apt-get install squirrelmail
159 ln -s /usr/share/squirrelmail/ /var/www/webmail
160
161 Access squirrelmail:
162
163 http://192.168.0.100/webmail
164
165
166 To configure squirrelmail, run:
167
168 /usr/sbin/squirrelmail-configure
169
ba66cd 170 ----------------------------------------------------------------------------------------------------------
T 171
172 Hints:
173
174 debian 4.0 under openvz:
175
8a6a58 176 VPSID=101
ba66cd 177 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 178 do
179   vzctl set $VPSID --capability ${CAP}:on --save
180 done
46bf55 181
T 182 ----------------------------------------------------------------------------------------------------------
183
184 Installing Jailkit:
185
cdf85e 186 apt-get install build-essential autoconf automake1.9 libtool flex bison
46bf55 187 cd /tmp
cdf85e 188 wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz
T 189 tar xvfz jailkit-2.5.tar.gz
190 cd jailkit-2.5
46bf55 191 ./configure
T 192 make
193 make install
cdf85e 194 rm -rf jailkit-2.5*