redray
2008-11-19 7d78160cfc5041e43a330708c264b0de32f08098
commit | author | age
ba0264 1 Installation
T 2 -----------
3
4 It is recommended to use a clean (fresh) Ubuntu 7.10 (Gutsy Gibbon) install where you selected no additional packages or servers during setup. Then follow the steps below to setup your server with ISPConfig 3:
5
6 Now become root user by executing:
7
8 sudo su
9
10 and entering the password of the user that you created during setup.
11
12 Edit the file /etc/apt/sources.list and comment out the line beginning with "deb cdrom:....", then run:
13
14 apt-get update
15 apt-get -u upgrade
16
17
18 1) Install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin with the following command line (on one line!):
19
871b33 20 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-2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl courier-maildrop getmail4
ba0264 21
T 22 Answer the questions from the package manager as follows.
23
871b33 24 Enter the mysql root password.
ba0264 25 Create directories for web-based administration ? <-- No
T 26 General type of configuration? <-- Internet site
27 Mail name? <-- server1.mydomain.tld
28  SSL certificate required <-- Ok
29
30 ...use your own domain name of course ;)
31
32 2) Install Amavisd-new, Spamassassin and Clamav (1 line!):
33
34 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
35
36
37 3) Install apache, PHP5 and phpmyadmin (1 line!):
38
39 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
40
41 Then run the following to enable the Apache modules:
42
43 a2enmod suexec
44 a2enmod rewrite
45 a2enmod ssl
46
871b33 47 Optional: Install SuPHP
T 48
49 apt-get install libapache2-mod-suphp
50
51 vi /etc/suphp/suphp.conf
52
53 set docroot to:
54
55 docroot=/var/clients
56
57 Change:
58
59 application/x-httpd-php=php:/usr/bin/php-cgi
60
61 to:
62
63 x-httpd-php=php:/usr/bin/php-cgi
64
65
ba0264 66 4) Install pure-ftpd and quota
T 67
68 First we have to make sure that the capability module is loaded in the kernel
69
70 modprobe capability
71 echo 'capability' >> /etc/modules
72
73 Then we install pureftpd and quota.
74
75 apt-get install pure-ftpd-common pure-ftpd-mysql quota quotatool
76
77 echo 'yes' > /etc/pure-ftpd/conf/DontResolve
78
79 5) Install mydns
80
81 apt-get install g++ libc6 gcc gawk make texinfo libmysqlclient15-dev
82
83 cd /tmp
871b33 84 wget http://heanet.dl.sourceforge.net/sourceforge/mydns-ng/mydns-1.2.8.4.tar.gz
T 85 tar xvfz mydns-1.2.8.4.tar.gz
86 cd mydns-1.2.8
ba0264 87 ./configure
T 88 make
89 make install
90
d75f08 91 Now create the start / stop script for mydns:
T 92
93 vi /etc/init.d/mydns
94
95 and enter the following lines (between the ----- lines):
96
97 ------------------------------------------------------
98 #! /bin/sh
99 #
100 # mydns         Start the MyDNS server
101 #
102 # Author:       Philipp Kern <phil@philkern.de>.
103 #               Based upon skeleton 1.9.4 by Miquel van Smoorenburg
104 #               <miquels@cistron.nl> and Ian Murdock <imurdock@gnu.ai.mit.edu>.
105 #
106
107 set -e
108
109 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
871b33 110 DAEMON=/usr/local/sbin/mydns
d75f08 111 NAME=mydns
T 112 DESC="DNS server"
113
114 SCRIPTNAME=/etc/init.d/$NAME
115
116 # Gracefully exit if the package has been removed.
117 test -x $DAEMON || exit 0
118
119 case "$1" in
120   start)
121         echo -n "Starting $DESC: $NAME"
122         start-stop-daemon --start --quiet \
123                 --exec $DAEMON -- -b
124         echo "."
125         ;;
126   stop)
127         echo -n "Stopping $DESC: $NAME"
128         start-stop-daemon --stop --oknodo --quiet \
129                 --exec $DAEMON
130         echo "."
131         ;;
132   reload|force-reload)
133         echo -n "Reloading $DESC configuration..."
134         start-stop-daemon --stop --signal HUP --quiet \
135                 --exec $DAEMON
136         echo "done."
137         ;;
138   restart)
139         echo -n "Restarting $DESC: $NAME"
140         start-stop-daemon --stop --quiet --oknodo \
141                 --exec $DAEMON
142         sleep 1
143         start-stop-daemon --start --quiet \
144                 --exec $DAEMON -- -b
145         echo "."
146         ;;
147   *)
148         echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
149         exit 1
150         ;;
151 esac
152
153 exit 0
154 ---------------------------------------------------------------------------
155
156 now execute:
157
158 chmod +x /etc/init.d/mydns
159 update-rc.d mydns defaults
160
ba0264 161
T 162 6) Install vlogger and webalizer
163
164 apt-get install vlogger webalizer
165
166
167 7) Install ISPConfig 3
168
169 There are two possile scenarios, but not both:
170 1) Install the latest alpha 
171 2) Install directly from SVN
172
173 apt-get install php5-cli
174
175 1) Installation of beta 3
176
177   cd /tmp
178   wget http://www.ispconfig.org/downloads/ISPConfig_3.0.0.5-beta.tar.gz
179   tar xvfz ISPConfig_3.0.0.5-alpha.tar.gz
180   cd ispconfig3_install/install/
181
182 2) Installation from SVN
183
184   apt-get install subversion
185   cd /tmp
186   svn export svn://svn.ispconfig.org/ispconfig3/trunk/
187   cd trunk/install
188
189
190 1+2) Now proceed with the ISPConfig installation.
191
192 Now start the installation process by executing:
193
194 php -q install.php
195
196 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!):
197
198 http://192.168.0.100:8080/
199
200 the default login is:
201
202 user: admin
203 password: admin
204
205 In case you get a permission denied error from apache, please restart the apache webserver process.
692f6f 206
Q 207
bac6ef 208 8) Once you have restarted Apache you need to fix a quick setting in apache2. 
Q 209
210 1) rm /etc/apache2/sites-enabled/000-default
211
212 2) echo "NameVirtualHost *:80">> /etc/apache2/httpd.conf
213
214 3) /etc/init.d/apache2 restart
215
216
217
692f6f 218 Installing Jailkit:
Q 219
cdf85e 220 apt-get install build-essential autoconf automake1.9 libtool flex bison
692f6f 221 cd /tmp
cdf85e 222 wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz
T 223 tar xvfz jailkit-2.5.tar.gz
224 cd jailkit-2.5
692f6f 225 ./configure
Q 226 make
227 make install
cdf85e 228 rm -rf jailkit-2.5*
692f6f 229