tbrehm
2012-06-11 897af06af9522ded99b1e0f46730299e89856ffe
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
fb3a98 67 # On 64Bit systems, run this command to symlink the dovecot library folder. Thats for 64Bit systems only, so do not exekute the ln command on 32bit systems.
T 68
69 ln -s /usr/lib64/dovecot/modules /usr/lib/dovecot 
70
71
dfd031 72 chkconfig --add amavis
T 73 chkconfig --add clamd
74 /etc/init.d/amavis start
75 /etc/init.d/clamd start
76
77 2.1) Install apache2
78
79 yast2 -i apache2 apache2-mod_fcgid
80
81 3) Install PHP5 modules (1 line!):
82
83 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
84
85 rpm -ivh http://download.opensuse.org/repositories/server:/php/openSUSE_11.3/x86_64/suphp-0.7.1-3.1.x86_64.rpm
86
87 Edit the file /etc/php5/cli/php.ini
88
89 vi /etc/php5/cli/php.ini
90
91 and change:
92
93 error_reporting = E_ALL & ~E_DEPRECATED
94
95 to:
96
97 error_reporting = E_ALL & ~E_NOTICE
98
99 Then run the following to enable the Apache modules:
100
101 a2enmod suexec
102 a2enmod rewrite
103 a2enmod ssl
104 a2enmod actions
105 a2enmod suphp
106 a2enmod fcgid
107
108 // Fix a suexec permission problem
109
110 chown root:www /usr/sbin/suexec2
111 chmod 4755 /usr/sbin/suexec2
112
113 // and start apache
114
115 chkconfig --add apache2
116 /etc/init.d/apache2 start
117
118 // Comment out the /error/ alias in the apache error.conf file or the custom error pages in the websites wont work.
119
120 Edit the file error.conf in the apache configuration directory and comment out the line:
121
122 Alias /error/ "/usr/share/apache2/error/
123
124 By changing the line to:
125
126 # Alias /error/ "/usr/share/apache2/error/
127
128 // Install phpmyadmin
129
130 cd /tmp
131
132 yast2 -i pwgen
133 rpm -ivh http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_11.3/noarch/phpMyAdmin-3.3.4-1.1.noarch.rpm
134
135 // Warnings like "warning: phpMyAdmin-3.1.2-1.1.src.rpm: Header V3 DSA signature: NOKEY, key ID 367fe7fc" can be ignored.
136
137 4) Install pure-ftpd and quota
138
139 yast2 -i pure-ftpd quota
140
141 chkconfig --add pure-ftpd
142 /etc/init.d/pure-ftpd start
143
144
145 5) Install Bind
146
147 yast2 -i bind
148
149 chkconfig --add named
150
151 6) Install webalizer and awstats
152
153 rpm -ivh http://download.opensuse.org/repositories/network:/utilities/openSUSE_11.3/noarch/awstats-6.95-3.1.noarch.rpm
154 yast2 -i webalizer perl-DateManip 
155
156 6.1 Install fail2ban
157
158 yast2 -i fail2ban
159
160
161 6.2 Install jailkit and ntp
162
163 rpm -ivh http://download.opensuse.org/repositories/security/openSUSE_11.3/x86_64/jailkit-2.11-1.2.x86_64.rpm
164
165 yast2 -i xntp
166
167 chkconfig --add ntp
168 /etc/init.d/ntp start
169
170 7) Install ISPConfig 3
171
172 cd /tmp
173 wget http://www.ispconfig.org/downloads/ISPConfig-3.0.2.2.tar.gz
174 tar xvfz ISPConfig-3.0.2.2.tar.gz
175 cd ispconfig3_install/install/
176 php -q install.php
177
6aac1a 178 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 179
T 180 http://192.168.0.100:8080/
181
182 the default login is:
183
184 user: admin
185 password: admin
186
187 In case you get a permission denied error from apache, please restart the apache webserver process.
188
189 Optional:
190
191 Install a webbased Email Client
192
193 rpm -i http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_11.2/noarch/squirrelmail-1.4.19-4.1.noarch.rpm
194
195