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