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