tbrehm
2009-02-15 2ce1583e0b72b221257633c37271890018e2651c
commit | author | age
44cfc7 1
T 2
3 WARNING: Support for OpenSuSE is experimental only. For production systems better use Debian or Ubuntu.
4
5
7d89f5 6 Installation
T 7 -----------
8
9 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:
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
14
15 1) Install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin with the following command line (on one line!):
16
17 yast2 -i postfix postfix-mysql mysql mysql-client phpMyAdmin courier-imap courier-authlib courier-authlib-mysql python cron cyrus-sasl cyrus-sasl-crammd5 cyrus-sasl-digestmd5 cyrus-sasl-gssapi cyrus-sasl-otp cyrus-sasl-plain cyrus-sasl-saslauthd libmysqlclient-devel
18
19 chkconfig --add mysql
20 /etc/init.d/mysql start
21
22 chkconfig --add postfix
23 /etc/init.d/postfix start
24
25 chkconfig --add saslauthd
26 /etc/init.d/saslauthd start
27
28 chkconfig --add saslauthd
29 /etc/init.d/saslauthd start
30
31 chkconfig --add fam
32 chkconfig --add courier-authdaemon
33 chkconfig --add courier-pop
34 chkconfig --add courier-imap
35 /etc/init.d/courier-pop start
36 /etc/init.d/courier-imap start
37 chkconfig --add courier-pop-ssl
38 chkconfig --add courier-imap-ssl
39 /etc/init.d/courier-pop-ssl start
40 /etc/init.d/courier-imap-ssl start
41
42 cd /tmp
43 wget http://download.opensuse.org/repositories/server:/mail/openSUSE_11.0/i586/getmail-4.7.6-1.4.i586.rpm
44 rpm -i getmail-4.7.6-1.4.i586.rpm
45
46 // Warnings like "warning: getmail-4.7.6-1.4.i586.rpm: Header V3 DSA signature: NOKEY, key ID 367fe7fc" can be ignored.
47
48 // Install maildrop
49 rpm --force -i http://download.opensuse.org/repositories/home%3A/cboltz/openSUSE_10.3/i586/maildrop-2.0.3-16.1.i586.rpm
50
51 // Install pam_mysql
52
53 yast2 -i pam-devel
54 cd /tmp
55 wget http://heanet.dl.sourceforge.net/sourceforge/pam-mysql/pam_mysql-0.7RC1.tar.gz
56 tar xvfz pam_mysql-0.7RC1.tar.gz
57 cd pam_mysql-0.7RC1
58 ./configure
59 make
60 make install
61 rm -rf pam_mysql-0.7RC1
62 rm pam_mysql-0.7RC1.tar.gz
63
64 // Set the mysql database password:
65
66 mysqladmin -u root password yourrootsqlpassword
67 mysqladmin -h ispconfig.local -u root password yourrootsqlpassword
68
69
70 2) Install Amavisd-new, Spamassassin and Clamav (1 line!):
71
72 yast2 -i amavisd-new clamav clamav-db zoo unzip unrar bzip2 unarj perl-DBD-mysql
73
74 chkconfig --add amavis
75 chkconfig --add clamd
76 /etc/init.d/amavis start
77 /etc/init.d/clamd start
78
79 3) Install PHP5 modules (1 line!):
80
81 yast2 -i php5-bcmath php5-bz2 php5-calendar php5-ctype php5-curl php5-dbase php5-dom php5-ftp php5-gd php5-gettext php5-gmp php5-iconv php5-imap php5-ldap php5-mbstring php5-mcrypt php5-mysql php5-ncurses 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
82
83 Then run the following to enable the Apache modules:
84
85 a2enmod suexec
86 a2enmod rewrite
87 a2enmod ssl
9e356a 88 a2enmod actions
7d89f5 89
T 90 chkconfig --add apache2
91 /etc/init.d/apache2 start
92
93 4) Install pure-ftpd and quota
94
95 yast2 -i pure-ftpd quota
96
97 // The current pure-ftpd package from SuSE is unstable and segfaults when a file is uploaded, 
98 // we will replace it with a manually compiled package now:
99
100 cd /tmp
101 wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.21.tar.gz
102 tar xvfz pure-ftpd-1.0.21.tar.gz
103 cd pure-ftpd-1.0.21/
104 ./configure --sysconfdir=/etc/pure-ftpd --with-everything --with-mysql
105 make
106 make install
107 mv /usr/sbin/pure-ftpd /usr/sbin/pure-ftpd.suse
108 ln -s /usr/local/sbin/pure-ftpd /usr/sbin/pure-ftpd
109 rm -rf pure-ftpd-1.0.21
110 rm -f pure-ftpd-1.0.21.tar.gz
111
112 chkconfig --add pure-ftpd
113 /etc/init.d/pure-ftpd start
114
115
116 5) Install mydns
117
118 cd /tmp
119 wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/server:/dns/SUSE_Factory/i586/mydns-mysql-1.1.0-3.72.i586.rpm
120 wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/server:/dns/SUSE_Factory/i586/mydns-1.1.0-3.72.i586.rpm
121 rpm -i mydns*.rpm
122 rm -rf /tmp/mydns*
123
124 chkconfig --add mydns
125
126 6) Install vlogger and webalizer
127
128 cd /tmp
129 wget http://n0rp.chemlab.org/vlogger/vlogger-1.3.tar.gz
130 tar xvfz vlogger-1.3.tar.gz
131 mv vlogger-1.3/vlogger /usr/sbin/
132 rm -rf vlogger*
133
134
135 yast2 -i webalizer perl-DateManip
136
137
138 7) Install ISPConfig 3
139
140 There are two possile scenarios, but not both:
141 7.1) Install the latest released version 
142 7.2) Install directly from SVN
143
144 7.1) Installation of beta 3 from tar.gz
145
146   cd /tmp
2ce158 147   wget http://www.ispconfig.org/downloads/ISPConfig-3.0.0.9-rc2.tar.gz
T 148   tar xvfz ISPConfig-3.0.0.9-rc2.tar.gz
7d89f5 149   cd ispconfig3_install/install/
T 150
151 7.2) Installation from SVN
152
6444a9 153   yast2 -i subversion
7d89f5 154   cd /tmp
T 155   svn export svn://svn.ispconfig.org/ispconfig3/trunk/
156   cd trunk/install
157
158
159 7.1+7.2) Now proceed with the ISPConfig installation.
160
161 Now start the installation process by executing:
162
163 php -q install.php
164
165 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!):
166
167 http://192.168.0.100:8080/
168
169 the default login is:
170
171 user: admin
172 password: admin
173
174 In case you get a permission denied error from apache, please restart the apache webserver process.
175
176 Optional:
177
490039 178 Install a webbased Email Client
7d89f5 179
6444a9 180 yast2 -i squirrelmail
7d89f5 181
T 182 ----------------------------------------------------------------------------------------------------------
183
184 Hints:
185
186 debian 4.0 under openvz:
187
188 VPSID=101
189 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
190 do
191   vzctl set $VPSID --capability ${CAP}:on --save
192 done
193
194 ----------------------------------------------------------------------------------------------------------
195
196 Installing Jailkit:
197
198 cd /tmp
cdf85e 199 wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz
T 200 tar xvfz jailkit-2.5.tar.gz
201 cd jailkit-2.5
7d89f5 202 ./configure
T 203 make
204 make install
cdf85e 205 rm -rf jailkit-2.5*