jwarnier
2010-08-19 6aac1a8826ef78c71a81be7cd7fc81874effb7da
commit | author | age
dfd031 1
T 2 Installation
3 -----------
4
5 It is recommended to use a clean (fresh) OpenSUSE installatiom where you selected to install just the minimal packages. A Gnome or KDE desktop is not needed and will just slow down the server. Then follow the steps below to setup your server with ISPConfig 3:
6
7 The following guide is for the 64Bit version of openSUSE, for 32Bit installations the package names may differ especially the names of downloaded rpm files.
8
9 This guide will use Dovecote as pop3 / imap server and BIND as DNS Server. Dovecot and BIND are supported by ISPConfig version > 3.0.2
10
11 Before we start, update the installed packages
12
13 zypper update
14
15 Install some basic packes and the compilers that we need later
16
17 yast2 -i findutils readline libgcc glibc-devel findutils-locate gcc flex lynx compat-readline4 db-devel wget gcc-c++ subversion make vim telnet cron iptables iputils man man-pages nano pico sudo
18
19 1) Install Postfix, Divecot, MySQL with the following command line (on one line!):
20
21 yast2 -i postfix postfix-mysql mysql mysql-community-server mysql-client python libmysqlclient-devel dovecot12 dovecot12-backend-mysql pwgen cron
22
23 vi /etc/postfix/master.cf
24 =========================
25 [...]
26 tlsmgr    unix  -       -       n       1000?   1       tlsmgr
27 [...]
28
29 ln -s /usr/lib64/dovecot/modules /usr/lib/dovecot
30
31 chkconfig --add mysql
32 /etc/init.d/mysql start
33
34 chkconfig --add postfix
35 /etc/init.d/postfix start
36
37 chkconfig --add dovecot
38 /etc/init.d/dovecot start
39
40 rpm -ivh http://download.opensuse.org/repositories/server:/mail/openSUSE_11.3/noarch/getmail-4.20.0-1.1.noarch.rpm
41
42 // Set the mysql database password:
43
44 mysql_secure_installation
45
46
47 2) Install Amavisd-new, Spamassassin and Clamav (1 line!):
48
49 yast2 -i amavisd-new clamav clamav-db zoo unzip unrar bzip2 unarj perl-DBD-mysql
50
51 Open /etc/amavisd.conf...
52
53 vi /etc/amavisd.conf
54
55 ... and add the $myhostname line with your correct hostname below the $mydomain line:
56
57 [...]
58 $mydomain = 'example.com';   # a convenient default for other settings
59 $myhostname = "server1.$mydomain";
60 [...]
61
62 then execute:
63
64 mkdir -p /var/run/clamav
65 ln -s /var/lib/clamav/clamd-socket /var/run/clamav/clamd
66
67 chkconfig --add amavis
68 chkconfig --add clamd
69 /etc/init.d/amavis start
70 /etc/init.d/clamd start
71
72 2.1) Install apache2
73
74 yast2 -i apache2 apache2-mod_fcgid
75
76 3) Install PHP5 modules (1 line!):
77
78 yast2 -i php5-bcmath php5-bz2 php5-calendar php5-ctype php5-curl php5-dom php5-ftp php5-gd php5-gettext php5-gmp php5-iconv php5-imap php5-ldap php5-mbstring php5-mcrypt php5-mysql php5-odbc php5-openssl php5-pcntl php5-pgsql php5-posix php5-shmop php5-snmp php5-soap php5-sockets php5-sqlite php5-sysvsem php5-tokenizer php5-wddx php5-xmlrpc php5-xsl php5-zlib php5-exif php5-fastcgi php5-pear php5-sysvmsg php5-sysvshm ImageMagick curl apache2-mod_php5
79
80 rpm -ivh http://download.opensuse.org/repositories/server:/php/openSUSE_11.3/x86_64/suphp-0.7.1-3.1.x86_64.rpm
81
82 Edit the file /etc/php5/cli/php.ini
83
84 vi /etc/php5/cli/php.ini
85
86 and change:
87
88 error_reporting = E_ALL & ~E_DEPRECATED
89
90 to:
91
92 error_reporting = E_ALL & ~E_NOTICE
93
94 Then run the following to enable the Apache modules:
95
96 a2enmod suexec
97 a2enmod rewrite
98 a2enmod ssl
99 a2enmod actions
100 a2enmod suphp
101 a2enmod fcgid
102
103 // Fix a suexec permission problem
104
105 chown root:www /usr/sbin/suexec2
106 chmod 4755 /usr/sbin/suexec2
107
108 // and start apache
109
110 chkconfig --add apache2
111 /etc/init.d/apache2 start
112
113 // Comment out the /error/ alias in the apache error.conf file or the custom error pages in the websites wont work.
114
115 Edit the file error.conf in the apache configuration directory and comment out the line:
116
117 Alias /error/ "/usr/share/apache2/error/
118
119 By changing the line to:
120
121 # Alias /error/ "/usr/share/apache2/error/
122
123 // Install phpmyadmin
124
125 cd /tmp
126
127 yast2 -i pwgen
128 rpm -ivh http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_11.3/noarch/phpMyAdmin-3.3.4-1.1.noarch.rpm
129
130 // Warnings like "warning: phpMyAdmin-3.1.2-1.1.src.rpm: Header V3 DSA signature: NOKEY, key ID 367fe7fc" can be ignored.
131
132 4) Install pure-ftpd and quota
133
134 yast2 -i pure-ftpd quota
135
136 chkconfig --add pure-ftpd
137 /etc/init.d/pure-ftpd start
138
139
140 5) Install Bind
141
142 yast2 -i bind
143
144 chkconfig --add named
145
146 6) Install webalizer and awstats
147
148 rpm -ivh http://download.opensuse.org/repositories/network:/utilities/openSUSE_11.3/noarch/awstats-6.95-3.1.noarch.rpm
149 yast2 -i webalizer perl-DateManip 
150
151 6.1 Install fail2ban
152
153 yast2 -i fail2ban
154
155
156 6.2 Install jailkit and ntp
157
158 rpm -ivh http://download.opensuse.org/repositories/security/openSUSE_11.3/x86_64/jailkit-2.11-1.2.x86_64.rpm
159
160 yast2 -i xntp
161
162 chkconfig --add ntp
163 /etc/init.d/ntp start
164
165 7) Install ISPConfig 3
166
167 cd /tmp
168 wget http://www.ispconfig.org/downloads/ISPConfig-3.0.2.2.tar.gz
169 tar xvfz ISPConfig-3.0.2.2.tar.gz
170 cd ispconfig3_install/install/
171 php -q install.php
172
6aac1a 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 necessary. To login to the ISPConfig controlpanel, open the following URL in your browser (replace the IP to match your settings!):
dfd031 174
T 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
186 Install a webbased Email Client
187
188 rpm -i http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_11.2/noarch/squirrelmail-1.4.19-4.1.noarch.rpm
189
190