tbrehm
2008-12-11 a03015934d07090f5a66e6170645d363d47b1c1e
commit | author | age
0711af 1 Installation
T 2 -----------
3
4 It is recommended to use a clean (fresh) Fedora install. Then follow the steps below to setup your server with ISPConfig 3:
5
6 Installation of some basic requirements:
7
8 rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
9 yum update
10 yum groupinstall 'Development Tools'
11 yum groupinstall 'Development Libraries'
12
13 You should disable selinux now, as some programs will not start when selinux is enabled:
14
15 vi /etc/selinux/config
16
17 and set:
18
19 SELINUX=disabled
20
21 then reboot the server.
22
23
24 1) Install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin with the following command line (on one line!):
25
26 yum install ntp httpd mysql-server php php-mysql php-mbstring rpm-build gcc mysql-devel openssl-devel cyrus-sasl-devel pkgconfig zlib-devel phpMyAdmin pcre-devel openldap-devel postgresql-devel expect libtool-ltdl-devel openldap-servers libtool gdbm-devel pam-devel gamin-devel getmail
27
28 useradd -m -s /bin/bash compileuser
29 passwd compileuser
30
31 visudo
32
33 ## Allow root to run any commands anywhere
34 root    ALL=(ALL)       ALL
35 compileuser   ALL=(ALL)       ALL
36
37
38 su compileuser
39
40 mkdir $HOME/rpm
41 mkdir $HOME/rpm/SOURCES
42 mkdir $HOME/rpm/SPECS
43 mkdir $HOME/rpm/BUILD
44 mkdir $HOME/rpm/SRPMS
45 mkdir $HOME/rpm/RPMS
46 mkdir $HOME/rpm/RPMS/i386
47
48 echo "%_topdir $HOME/rpm" >> $HOME/.rpmmacros
49
50
51 wget http://prdownloads.sourceforge.net/courier/courier-authlib-0.61.0.tar.bz2
52 wget http://prdownloads.sourceforge.net/courier/courier-imap-4.4.1.tar.bz2
53 wget http://prdownloads.sourceforge.net/courier/maildrop-2.0.4.tar.bz2
54
55 sudo rpmbuild -ta courier-authlib-0.61.0.tar.bz2
56
663619 57 sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-authlib-0.61.0-1.fc9.i386.rpm
T 58 sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-authlib-mysql-0.61.0-1.fc9.i386.rpm
59 sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-authlib-devel-0.61.0-1.fc9.i386.rpm
0711af 60
T 61 rpmbuild -ta courier-imap-4.4.1.tar.bz2
62
663619 63 sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-imap-4.4.1-1.9.i386.rpm
0711af 64
T 65 sudo rpmbuild -ta maildrop-2.0.4.tar.bz2
66
663619 67 sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/maildrop-2.0.4-1.9.i386.rpm
0711af 68
T 69 exit
70
71 yum install postfix
72
73 chkconfig --levels 235 mysqld on
74 /etc/init.d/mysqld start
75
76 chkconfig --levels 235 httpd on
77 /etc/init.d/httpd start
78
79 chkconfig --levels 235 courier-authlib on
80 /etc/init.d/courier-authlib start
81
82 chkconfig --levels 235 sendmail off
83 chkconfig --levels 235 postfix on
84 chkconfig --levels 235 saslauthd on
85 /etc/init.d/sendmail stop
86 /etc/init.d/postfix start
87 /etc/init.d/saslauthd start
88
89 chkconfig --levels 235 courier-imap on
90 /etc/init.d/courier-authlib restart
91 /etc/init.d/courier-imap restart
92
93
94 Set the mysql database password:
95
96 mysqladmin -u root password yourrootsqlpassword
97 mysqladmin -h ispconfig.local -u root password yourrootsqlpassword
98
99
100 2) Install Amavisd-new, Spamassassin and Clamav (1 line!):
101
102 yum install amavisd-new spamassassin clamav clamav-data clamav-server clamav-update unzip bzip2 unrar
103
104 chkconfig --levels 235 amavisd on
105 chkconfig --levels 235 clamd.amavisd on
106 /usr/bin/freshclam
107 /etc/init.d/amavisd start
108 /etc/init.d/clamd.amavisd start
109
110 3) Install apache, PHP5 and phpmyadmin (1 line!):
111
112 yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-magickwand php-magpierss php-mapserver php-mbstring php-mcrypt php-mhash php-mssql php-shout php-snmp php-soap php-tidy curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel phpmyadmin
113
114
115 4) Install pure-ftpd and quota
116
117 yum install pure-ftpd quota
118
119 chkconfig --levels 235 pure-ftpd on
120
121 5) Install mydns
122
123 rpm -i http://mydns.bboy.net/download/mydns-mysql-1.1.0-1.i386.rpm
124
125 chkconfig --levels 235 mydns on
126
127 6) Install vlogger and webalizer
128
129 yum install webalizer perl-DateTime-Format-HTTP perl-DateTime-Format-Builder
130
131 cd /tmp
132 wget http://n0rp.chemlab.org/vlogger/vlogger-1.3.tar.gz
133 tar xvfz vlogger-1.3.tar.gz
134 mv vlogger-1.3/vlogger /usr/sbin/
135 rm -rf vlogger*
136
137 7) Configure the firewall
138
139 Now you should switch off the firewall by running:
140
141 system-config-firewall-tui
142
143 ISPConfig comes with a iptables bsed firewall script that can be meneged from within the ispconfig interface.
144
145
146 8) Install ISPConfig 3
147
148 There are two possile scenarios, but not both:
663619 149 8.1) Install the latest released version 
T 150 8.2) Install directly from SVN
0711af 151
T 152 8.1) Installation of beta 3 from tar.gz
153
154   cd /tmp
155   wget http://www.ispconfig.org/downloads/ISPConfig-3.0.0.6-beta.tar.gz
156   tar xvfz ISPConfig-3.0.0.6-beta.tar.gz
157   cd ispconfig3_install/install/
158
159 8.2) Installation from SVN
160
6444a9 161   yum install subversion
0711af 162   cd /tmp
T 163   svn export svn://svn.ispconfig.org/ispconfig3/trunk/
164   cd trunk/install
165
166
167 8.1+8.2) Now proceed with the ISPConfig installation.
168
169 Now start the installation process by executing:
170
171 php -q install.php
172
173 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!):
174
175 http://192.168.0.100:8080/
176
177 the default login is:
178
179 user: admin
180 password: admin
181
182 In case you get a permission denied error from apache, please restart the apache webserver process.
183
184 Optional:
185
490039 186 Install a webbased Email Client
0711af 187
6444a9 188 yum install squirrelmail
0711af 189
T 190
191 ----------------------------------------------------------------------------------------------------------
192
193 Hints:
194
195 debian 4.0 under openvz:
196
197 VPSID=101
198 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
199 do
200   vzctl set $VPSID --capability ${CAP}:on --save
201 done
202
203 ----------------------------------------------------------------------------------------------------------
204
205 Installing Jailkit:
206
207 cd /tmp
cdf85e 208 wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz
T 209 tar xvfz jailkit-2.5.tar.gz
210 cd jailkit-2.5
0711af 211 ./configure
T 212 make
213 make install
cdf85e 214 rm -rf jailkit-2.5*