Marius Cramer
2013-10-14 d9bcf68e395d6156645a7974b1a992aa6e6c00aa
commit | author | age
fdb514 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 32Bit version of openSUSE, for 64Bit 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 Install some basic packes and the compilers that we need later
12
13 // yast2 -i findutils readline libgcc glibc-devel findutils-locate gcc flex lynx compat-readline4 db-devel wget gcc-c++ make vim telnet cron iptables iputils man man-pages nano pico
14
15 yast2 -i findutils lynx wget vim telnet cron iptables iputils man man-pages nano pico sudo
16
17
18 1) Install Postfix, Divecot, MySQL with the following command line (on one line!):
19
20 yast2 -i postfix postfix-mysql mysql mysql-client python libmysqlclient-devel dovecot12 dovecot12-backend-mysql
21
22 chkconfig --add mysql
23 /etc/init.d/mysql start
24
25 chkconfig --add postfix
26 /etc/init.d/postfix start
27
28 chkconfig --add dovecot
29 /etc/init.d/dovecot start
30
31 rpm -i http://download.opensuse.org/repositories/server:/mail/openSUSE_11.2/noarch/getmail-4.16.0-1.1.noarch.rpm
32
33
34 // Set the mysql database password:
35
36 mysql_secure_installation
37
38
39 2) Install Amavisd-new, Spamassassin and Clamav (1 line!):
40
41 yast2 -i amavisd-new clamav clamav-db zoo unzip unrar bzip2 unarj perl-DBD-mysql
42
43 Open /etc/amavisd.conf...
44
45 vi /etc/amavisd.conf
46
47 ... and add the $myhostname line with your correct hostname below the $mydomain line:
48
49 [...]
50 $mydomain = 'example.com';   # a convenient default for other settings
51 $myhostname = "server1.$mydomain";
52 [...]
53
54 then execute:
55
56 chkconfig --add amavis
57 chkconfig --add clamd
58 /etc/init.d/amavis start
59 /etc/init.d/clamd start
60
61 2.1) Install apache2
62
63 yast2 -i apache2 apache2-mod_fcgid
64
65 3) Install PHP5 modules (1 line!):
66
67 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
68
69 rpm -i http://download.opensuse.org/repositories/server:/php/openSUSE_11.2/i586/suphp-0.7.1-3.1.i586.rpm
70
0f2bb1 71 Edit the file /etc/php5/cli/php.ini
T 72
73 vi /etc/php5/cli/php.ini
74
75 and change:
76
77 error_reporting = E_ALL & ~E_DEPRECATED
78
79 to:
80
81 error_reporting = E_ALL & ~E_NOTICE
fdb514 82
T 83 Then run the following to enable the Apache modules:
84
85 a2enmod suexec
86 a2enmod rewrite
87 a2enmod ssl
88 a2enmod actions
89 a2enmod suphp
90 a2enmod fcgid
91
92 // Fix a suexec permission problem
93
94 chown root:www /usr/sbin/suexec2
95 chmod 4755 /usr/sbin/suexec2
96
97 // and start apache
98
99 chkconfig --add apache2
100 /etc/init.d/apache2 start
101
2a0f3c 102 // Comment out the /error/ alias in the apache error.conf file or the custom error pages in the websites wont work.
T 103
104 Edit the file error.conf in the apache configuration directory and comment out the line:
105
106 Alias /error/ "/usr/share/apache2/error/
107
108 By changing the line to:
109
110 # Alias /error/ "/usr/share/apache2/error/
111
112 // Install phpmyadmin
113
fdb514 114 cd /tmp
T 115
116 yast2 -i pwgen
117 rpm -i http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_11.2/noarch/phpMyAdmin-3.2.5-1.1.noarch.rpm
118
119 // Warnings like "warning: phpMyAdmin-3.1.2-1.1.src.rpm: Header V3 DSA signature: NOKEY, key ID 367fe7fc" can be ignored.
120
121 4) Install pure-ftpd and quota
122
123 yast2 -i pure-ftpd quota
124
125 chkconfig --add pure-ftpd
126 /etc/init.d/pure-ftpd start
127
128
129 5) Install Bind
130
131 yast2 -i bind
132
133 chkconfig --add named
134
135 6) Install webalizer
136
137 yast2 -i webalizer perl-DateManip 
138
139 6.1 Install fail2ban
140
141 yast2 -i fail2ban
142
143
144 6.2 Install jailkit
145
146 rpm -i http://download.opensuse.org/repositories/security/openSUSE_11.2/i586/jailkit-2.11-1.1.i586.rpm
147
148 7) Install ISPConfig 3
149
150 cd /tmp
151 wget http://www.ispconfig.org/downloads/ISPConfig-3.0.2.tar.gz
152 tar xvfz ISPConfig-3.0.2.tar.gz
153 cd ispconfig3_install/install/
154 php -q install.php
155
6aac1a 156 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!):
fdb514 157
T 158 http://192.168.0.100:8080/
159
160 the default login is:
161
162 user: admin
163 password: admin
164
165 In case you get a permission denied error from apache, please restart the apache webserver process.
166
167 Optional:
168
169 Install a webbased Email Client
170
171 rpm -i http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_11.2/noarch/squirrelmail-1.4.19-4.1.noarch.rpm
172
173