commit | author | age
|
ba0264
|
1 |
Installation |
239490
|
2 |
------------ |
ba0264
|
3 |
|
239490
|
4 |
It is recommended to use a clean (fresh) Ubuntu 8.04 LTS install where you selected no additional packages or servers during setup. Then follow the steps below to setup your server with ISPConfig 3: |
ba0264
|
5 |
|
T |
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 |
|
239490
|
32 |
|
ba0264
|
33 |
2) Install Amavisd-new, Spamassassin and Clamav (1 line!): |
T |
34 |
|
|
35 |
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 |
|
36 |
|
|
37 |
|
|
38 |
3) Install apache, PHP5 and phpmyadmin (1 line!): |
|
39 |
|
|
40 |
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 |
|
41 |
|
|
42 |
Then run the following to enable the Apache modules: |
|
43 |
|
|
44 |
a2enmod suexec |
|
45 |
a2enmod rewrite |
|
46 |
a2enmod ssl |
|
47 |
|
239490
|
48 |
|
R |
49 |
3.1) Optional: Install SuPHP |
871b33
|
50 |
|
T |
51 |
apt-get install libapache2-mod-suphp |
|
52 |
|
|
53 |
vi /etc/suphp/suphp.conf |
|
54 |
|
|
55 |
set docroot to: |
|
56 |
|
|
57 |
docroot=/var/clients |
|
58 |
|
|
59 |
Change: |
|
60 |
|
|
61 |
application/x-httpd-php=php:/usr/bin/php-cgi |
|
62 |
|
|
63 |
to: |
|
64 |
|
|
65 |
x-httpd-php=php:/usr/bin/php-cgi |
|
66 |
|
|
67 |
|
ba0264
|
68 |
4) Install pure-ftpd and quota |
T |
69 |
|
|
70 |
First we have to make sure that the capability module is loaded in the kernel |
|
71 |
|
|
72 |
modprobe capability |
|
73 |
echo 'capability' >> /etc/modules |
|
74 |
|
|
75 |
Then we install pureftpd and quota. |
|
76 |
|
|
77 |
apt-get install pure-ftpd-common pure-ftpd-mysql quota quotatool |
|
78 |
|
|
79 |
echo 'yes' > /etc/pure-ftpd/conf/DontResolve |
|
80 |
|
239490
|
81 |
|
ba0264
|
82 |
5) Install mydns |
T |
83 |
|
|
84 |
apt-get install g++ libc6 gcc gawk make texinfo libmysqlclient15-dev |
|
85 |
|
|
86 |
cd /tmp |
239490
|
87 |
wget http://heanet.dl.sourceforge.net/sourceforge/mydns-ng/mydns-1.2.8.15.tar.gz |
R |
88 |
tar xvfz mydns-1.2.8.15.tar.gz |
871b33
|
89 |
cd mydns-1.2.8 |
ba0264
|
90 |
./configure |
T |
91 |
make |
|
92 |
make install |
|
93 |
|
d75f08
|
94 |
Now create the start / stop script for mydns: |
T |
95 |
|
|
96 |
vi /etc/init.d/mydns |
|
97 |
|
|
98 |
and enter the following lines (between the ----- lines): |
|
99 |
|
|
100 |
------------------------------------------------------ |
239490
|
101 |
#! /bin/bash |
d75f08
|
102 |
# |
T |
103 |
# mydns Start the MyDNS server |
|
104 |
# |
|
105 |
# Author: Philipp Kern <phil@philkern.de>. |
|
106 |
# Based upon skeleton 1.9.4 by Miquel van Smoorenburg |
|
107 |
# <miquels@cistron.nl> and Ian Murdock <imurdock@gnu.ai.mit.edu>. |
|
108 |
# |
|
109 |
|
|
110 |
set -e |
|
111 |
|
|
112 |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin |
871b33
|
113 |
DAEMON=/usr/local/sbin/mydns |
d75f08
|
114 |
NAME=mydns |
T |
115 |
DESC="DNS server" |
|
116 |
|
|
117 |
SCRIPTNAME=/etc/init.d/$NAME |
|
118 |
|
|
119 |
# Gracefully exit if the package has been removed. |
|
120 |
test -x $DAEMON || exit 0 |
|
121 |
|
|
122 |
case "$1" in |
|
123 |
start) |
|
124 |
echo -n "Starting $DESC: $NAME" |
|
125 |
start-stop-daemon --start --quiet \ |
|
126 |
--exec $DAEMON -- -b |
|
127 |
echo "." |
|
128 |
;; |
|
129 |
stop) |
|
130 |
echo -n "Stopping $DESC: $NAME" |
|
131 |
start-stop-daemon --stop --oknodo --quiet \ |
|
132 |
--exec $DAEMON |
|
133 |
echo "." |
|
134 |
;; |
|
135 |
reload|force-reload) |
239490
|
136 |
echo -n "Reloading $DESC configuration ..." |
d75f08
|
137 |
start-stop-daemon --stop --signal HUP --quiet \ |
T |
138 |
--exec $DAEMON |
|
139 |
echo "done." |
|
140 |
;; |
|
141 |
restart) |
|
142 |
echo -n "Restarting $DESC: $NAME" |
|
143 |
start-stop-daemon --stop --quiet --oknodo \ |
|
144 |
--exec $DAEMON |
|
145 |
sleep 1 |
|
146 |
start-stop-daemon --start --quiet \ |
|
147 |
--exec $DAEMON -- -b |
|
148 |
echo "." |
|
149 |
;; |
|
150 |
*) |
|
151 |
echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 |
|
152 |
exit 1 |
|
153 |
;; |
|
154 |
esac |
|
155 |
|
|
156 |
exit 0 |
|
157 |
--------------------------------------------------------------------------- |
|
158 |
|
|
159 |
now execute: |
|
160 |
|
|
161 |
chmod +x /etc/init.d/mydns |
|
162 |
update-rc.d mydns defaults |
|
163 |
|
ba0264
|
164 |
|
T |
165 |
6) Install vlogger and webalizer |
|
166 |
|
|
167 |
apt-get install vlogger webalizer |
|
168 |
|
|
169 |
|
|
170 |
7) Install ISPConfig 3 |
|
171 |
|
239490
|
172 |
There are two possile scenarios a) or b), but not both: |
ba0264
|
173 |
|
239490
|
174 |
a) Installation of beta 3 |
R |
175 |
|
|
176 |
cd /tmp |
|
177 |
wget http://www.ispconfig.org/downloads/ISPConfig_3.0.0.7-beta.tar.gz |
|
178 |
tar xvfz ISPConfig_3.0.0.7-alpha.tar.gz |
|
179 |
cd ispconfig3_install/install/ |
ba0264
|
180 |
|
239490
|
181 |
b) Installation from SVN |
ba0264
|
182 |
|
239490
|
183 |
apt-get install subversion |
R |
184 |
cd /tmp |
|
185 |
svn export svn://svn.ispconfig.org/ispconfig3/trunk/ |
|
186 |
cd trunk/install |
|
187 |
|
|
188 |
after a) or b) |
ba0264
|
189 |
|
239490
|
190 |
proceed with the ISPConfig installation. |
ba0264
|
191 |
|
T |
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 |
|
239490
|
198 |
http://server1.mydomain.tld:8080/ |
ba0264
|
199 |
|
T |
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 |
|
239490
|
208 |
8) Apache Fix |
bac6ef
|
209 |
|
239490
|
210 |
Once you have restarted Apache you need to fix a quick setting in apache2. |
bac6ef
|
211 |
|
239490
|
212 |
a) rm /etc/apache2/sites-enabled/000-default |
bac6ef
|
213 |
|
239490
|
214 |
b) echo "NameVirtualHost *:80">> /etc/apache2/httpd.conf |
R |
215 |
|
|
216 |
c) /etc/init.d/apache2 restart |
bac6ef
|
217 |
|
Q |
218 |
|
239490
|
219 |
9) Optional packages |
bac6ef
|
220 |
|
239490
|
221 |
9.1) Installing Jailkit: |
692f6f
|
222 |
|
cdf85e
|
223 |
apt-get install build-essential autoconf automake1.9 libtool flex bison |
692f6f
|
224 |
cd /tmp |
cdf85e
|
225 |
wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz |
T |
226 |
tar xvfz jailkit-2.5.tar.gz |
|
227 |
cd jailkit-2.5 |
692f6f
|
228 |
./configure |
Q |
229 |
make |
|
230 |
make install |
cdf85e
|
231 |
rm -rf jailkit-2.5* |
692f6f
|
232 |
|