commit | author | age
|
0f2bb1
|
1 |
|
T |
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 |
|
|
12 |
You should disable selinux now, as some programs will not start when selinux is enabled: |
|
13 |
|
|
14 |
vi /etc/selinux/config |
|
15 |
|
|
16 |
and set: |
|
17 |
|
|
18 |
SELINUX=disabled |
|
19 |
|
|
20 |
then reboot the server. |
|
21 |
|
|
22 |
|
75ead0
|
23 |
1) Install Postfix, Dovecot MySQL, phpMyAdmin with the following command line (on one line!): |
0f2bb1
|
24 |
|
T |
25 |
yum install ntp httpd mysql-server php php-mysql php-mbstring phpMyAdmin getmail postfix dovecot dovecot-mysql wget |
|
26 |
|
|
27 |
chkconfig --levels 235 mysqld on |
|
28 |
/etc/init.d/mysqld start |
|
29 |
|
|
30 |
chkconfig --levels 235 httpd on |
|
31 |
/etc/init.d/httpd start |
|
32 |
|
|
33 |
chkconfig --levels 235 dovecot on |
|
34 |
/etc/init.d/dovecot start |
|
35 |
|
|
36 |
chkconfig --levels 235 sendmail off |
|
37 |
chkconfig --levels 235 postfix on |
|
38 |
/etc/init.d/sendmail stop |
|
39 |
/etc/init.d/postfix start |
|
40 |
|
|
41 |
|
|
42 |
Set the mysql database password: |
|
43 |
|
|
44 |
/usr/bin/mysql_secure_installation |
|
45 |
|
|
46 |
|
|
47 |
2) Install Amavisd-new, Spamassassin and Clamav (1 line!): |
|
48 |
|
|
49 |
yum install amavisd-new spamassassin clamav clamav-data clamav-server clamav-update unzip bzip2 unrar |
|
50 |
|
|
51 |
chkconfig --levels 235 amavisd on |
|
52 |
chkconfig --levels 235 clamd.amavisd on |
|
53 |
/usr/bin/freshclam |
|
54 |
/etc/init.d/amavisd start |
|
55 |
/etc/init.d/clamd.amavisd start |
|
56 |
|
|
57 |
3) Install apache, PHP5 and phpmyadmin (1 line!): |
|
58 |
|
113ff8
|
59 |
yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc 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 |
0f2bb1
|
60 |
|
T |
61 |
disable php mapserver module as it causes errors on cli: |
|
62 |
|
|
63 |
vi /etc/php.d/mapserver.ini |
|
64 |
|
|
65 |
and add ; in front of the line extension=php_mapscript.so |
|
66 |
|
|
67 |
; extension=php_mapscript.so |
|
68 |
|
|
69 |
4) Install pure-ftpd and quota |
|
70 |
|
|
71 |
yum install pure-ftpd quota |
|
72 |
|
|
73 |
chkconfig --levels 235 pure-ftpd on |
|
74 |
|
|
75 |
5) Install bind dns server |
|
76 |
|
|
77 |
yum install bind bind-utils |
|
78 |
|
|
79 |
chkconfig --levels 235 named on |
|
80 |
|
|
81 |
6) Install vlogger dependencies and webalizer |
|
82 |
|
|
83 |
yum install webalizer perl-DateTime-Format-HTTP perl-DateTime-Format-Builder |
|
84 |
|
|
85 |
6.5) Install jailkit |
|
86 |
|
|
87 |
yum install gcc |
|
88 |
|
|
89 |
cd /tmp |
|
90 |
wget http://olivier.sessink.nl/jailkit/jailkit-2.11.tar.gz |
|
91 |
tar xvfz jailkit-2.11.tar.gz |
|
92 |
cd jailkit-2.11 |
|
93 |
./configure |
|
94 |
make |
|
95 |
make install |
|
96 |
rm -rf jailkit-2.11* |
|
97 |
|
|
98 |
6.6) Install fail2ban |
|
99 |
|
|
100 |
yum install fail2ban |
|
101 |
|
|
102 |
7) Configure the firewall |
|
103 |
|
|
104 |
Now you should switch off the firewall by running: |
|
105 |
|
|
106 |
system-config-firewall-tui |
|
107 |
|
|
108 |
ISPConfig comes with a iptables bsed firewall script that can be managed from within the ispconfig interface. |
|
109 |
|
|
110 |
|
|
111 |
8) Install ISPConfig 3 |
|
112 |
|
|
113 |
cd /tmp |
75ead0
|
114 |
wget http://www.ispconfig.org/downloads/ISPConfig-3.0.2.1.tar.gz |
0f2bb1
|
115 |
tar xvfz ISPConfig-3.0.2.tar.gz |
T |
116 |
cd ispconfig3_install/install/ |
|
117 |
|
|
118 |
Now start the installation process by executing: |
|
119 |
|
|
120 |
php -q install.php |
|
121 |
|
6aac1a
|
122 |
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!): |
0f2bb1
|
123 |
|
T |
124 |
http://192.168.0.100:8080/ |
|
125 |
|
|
126 |
the default login is: |
|
127 |
|
|
128 |
user: admin |
|
129 |
password: admin |
|
130 |
|
|
131 |
In case you get a permission denied error from apache, please restart the apache webserver process. |
|
132 |
|
|
133 |
Optional: |
|
134 |
|
|
135 |
Install a webbased Email Client |
|
136 |
|
|
137 |
yum install squirrelmail |
|
138 |
|
|
139 |
|
|
140 |
---------------------------------------------------------------------------------------------------------- |
|
141 |
|
|
142 |
Hints: |
|
143 |
|
|
144 |
debian 4.0 under openvz: |
|
145 |
|
|
146 |
VPSID=101 |
|
147 |
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 |
|
148 |
do |
|
149 |
vzctl set $VPSID --capability ${CAP}:on --save |
|
150 |
done |
|
151 |
|
|
152 |
---------------------------------------------------------------------------------------------------------- |
|
153 |
|
|
154 |
|