commit | author | age
|
532ae5
|
1 |
|
L |
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 |
Install some basic packes and the compilers that we need later |
|
10 |
|
|
11 |
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 |
|
12 |
|
|
13 |
1) Install Postfix, Courier, Saslauthd, MySQL with the following command line (on one line!): |
|
14 |
|
|
15 |
yast2 -i postfix postfix-mysql mysql mysql-client 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 |
|
16 |
|
|
17 |
chkconfig --add mysql |
|
18 |
/etc/init.d/mysql start |
|
19 |
|
|
20 |
chkconfig --add postfix |
|
21 |
/etc/init.d/postfix start |
|
22 |
|
|
23 |
chkconfig --add saslauthd |
|
24 |
/etc/init.d/saslauthd start |
|
25 |
|
|
26 |
chkconfig --add saslauthd |
|
27 |
/etc/init.d/saslauthd start |
|
28 |
|
|
29 |
chkconfig --add fam |
|
30 |
chkconfig --add courier-authdaemon |
|
31 |
chkconfig --add courier-pop |
|
32 |
chkconfig --add courier-imap |
|
33 |
/etc/init.d/courier-pop start |
|
34 |
/etc/init.d/courier-imap start |
|
35 |
chkconfig --add courier-pop-ssl |
|
36 |
chkconfig --add courier-imap-ssl |
|
37 |
/etc/init.d/courier-pop-ssl start |
|
38 |
/etc/init.d/courier-imap-ssl start |
|
39 |
|
|
40 |
|
|
41 |
cd /tmp |
|
42 |
wget http://download.opensuse.org/repositories/server:/mail/openSUSE_11.0/i586/getmail-4.7.6-1.4.i586.rpm |
|
43 |
rpm -i getmail-4.7.6-1.4.i586.rpm |
|
44 |
|
|
45 |
// Install maildrop |
|
46 |
wget http://download.opensuse.org/repositories/home:/atzewilms/openSUSE_11.1_Update/i586/maildrop-2.0.4-10.5.i586.rpm |
|
47 |
rpm --force -i maildrop-2.0.4-10.5.i586.rpm |
|
48 |
|
|
49 |
// Install pam_mysql |
|
50 |
yast2 -i pam-devel |
|
51 |
cd /tmp |
|
52 |
wget http://heanet.dl.sourceforge.net/sourceforge/pam-mysql/pam_mysql-0.7RC1.tar.gz |
|
53 |
tar xvfz pam_mysql-0.7RC1.tar.gz |
|
54 |
cd pam_mysql-0.7RC1 |
|
55 |
./configure |
|
56 |
make |
|
57 |
make install |
|
58 |
rm -rf /tmp/pam_mysql-0.7RC1 |
|
59 |
rm /tmp/pam_mysql-0.7RC1.tar.gz |
|
60 |
|
|
61 |
|
|
62 |
// Set the mysql database password: |
|
63 |
|
|
64 |
mysql_secure_installation |
|
65 |
|
|
66 |
|
|
67 |
2) Install Amavisd-new, Spamassassin and Clamav (1 line!): |
|
68 |
|
|
69 |
yast2 -i amavisd-new clamav clamav-db zoo unzip unrar bzip2 unarj perl-DBD-mysql |
|
70 |
|
|
71 |
chkconfig --add amavis |
|
72 |
chkconfig --add clamd |
|
73 |
/etc/init.d/amavis start |
|
74 |
/etc/init.d/clamd start |
|
75 |
|
|
76 |
2.1) Install apache2 |
|
77 |
|
|
78 |
yast2 -i apache2 apache2-mod_fcgid |
|
79 |
|
|
80 |
rpm -i http://download.opensuse.org/repositories/server:/php/server_database_apache_openSUSE_11.0/i586/suphp-0.6.2-10.41.i586.rpm |
|
81 |
|
|
82 |
3) Install PHP5 modules (1 line!): |
|
83 |
|
|
84 |
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 apache2-mod_php5 |
|
85 |
|
|
86 |
Then run the following to enable the Apache modules: |
|
87 |
|
|
88 |
a2enmod suexec |
|
89 |
a2enmod rewrite |
|
90 |
a2enmod ssl |
|
91 |
a2enmod actions |
|
92 |
a2enmod suphp |
|
93 |
a2enmod fcgid |
|
94 |
|
|
95 |
// Fix a suexec permission problem |
|
96 |
|
|
97 |
chown root:www /usr/sbin/suexec2 |
|
98 |
chmod 4755 /usr/sbin/suexec2 |
|
99 |
|
|
100 |
// and start apache |
|
101 |
|
|
102 |
chkconfig --add apache2 |
|
103 |
/etc/init.d/apache2 start |
|
104 |
|
|
105 |
cd /tmp |
|
106 |
|
|
107 |
yast2 -i pwgen |
|
108 |
rpm -i http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_11.1/noarch/phpMyAdmin-3.1.2-1.1.noarch.rpm |
|
109 |
ln -s /srv/www/htdocs/phpMyAdmin /usr/local/ispconfig/interface/web/phpmyadmin |
|
110 |
|
|
111 |
// Warnings like "warning: phpMyAdmin-3.1.2-1.1.src.rpm: Header V3 DSA signature: NOKEY, key ID 367fe7fc" can be ignored. |
|
112 |
|
|
113 |
4) Install pure-ftpd and quota |
|
114 |
|
|
115 |
yast2 -i pure-ftpd quota |
|
116 |
|
|
117 |
chkconfig --add pure-ftpd |
|
118 |
/etc/init.d/pure-ftpd start |
|
119 |
|
|
120 |
|
|
121 |
5) Install mydns |
|
122 |
|
|
123 |
cd /tmp |
|
124 |
wget http://download.opensuse.org/repositories/home:/bajizs_cnt/openSUSE_11.1/i586/mydns-ng-1.2.8-1.1.i586.rpm |
|
125 |
wget http://download.opensuse.org/repositories/home:/bajizs_cnt/openSUSE_11.1/i586/mydns-ng-mysql-1.2.8-1.1.i586.rpm |
|
126 |
rpm -i mydns*.rpm |
|
127 |
|
|
128 |
chkconfig --add mydns |
|
129 |
|
|
130 |
6) Install vlogger and webalizer |
|
131 |
|
|
132 |
cd /tmp |
|
133 |
wget http://n0rp.chemlab.org/vlogger/vlogger-1.3.tar.gz |
|
134 |
tar xvfz vlogger-1.3.tar.gz |
|
135 |
mv vlogger-1.3/vlogger /usr/sbin/ |
|
136 |
rm -rf vlogger* |
|
137 |
yast2 -i webalizer perl-DateManip |
|
138 |
|
|
139 |
6.1 Install fail2ban |
|
140 |
|
|
141 |
rpm -i http://download.opensuse.org/repositories/home:/leonardocf/openSUSE_11.0/i586/fail2ban-0.8.2-5.2.i586.rpm |
|
142 |
|
|
143 |
|
|
144 |
|
|
145 |
|
|
146 |
6.2) Cleanup |
|
147 |
|
|
148 |
rm -f /tmp/*.rpm |
|
149 |
|
|
150 |
6.2 Install jailkit |
|
151 |
|
|
152 |
cd /tmp |
|
153 |
wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz |
|
154 |
tar xvfz jailkit-2.5.tar.gz |
|
155 |
cd jailkit-2.5 |
|
156 |
./configure |
|
157 |
make |
|
158 |
make install |
|
159 |
cd .. |
|
160 |
rm -rf jailkit-2.5* |
|
161 |
|
|
162 |
|
|
163 |
7) Install ISPConfig 3 |
|
164 |
|
|
165 |
There are two possile scenarios, but not both: |
|
166 |
7.1) Install the latest released version |
|
167 |
7.2) Install directly from SVN |
|
168 |
|
|
169 |
7.1) Installation of beta 3 from tar.gz |
|
170 |
|
|
171 |
cd /tmp |
|
172 |
wget http://www.ispconfig.org/downloads/ISPConfig-3.0.0.9-rc2.tar.gz |
|
173 |
tar xvfz ISPConfig-3.0.0.9-rc2.tar.gz |
|
174 |
cd ispconfig3_install/install/ |
|
175 |
|
|
176 |
7.2) Installation from SVN |
|
177 |
|
|
178 |
yast2 -i subversion |
|
179 |
cd /tmp |
|
180 |
svn export svn://svn.ispconfig.org/ispconfig3/trunk/ |
|
181 |
cd trunk/install |
|
182 |
|
|
183 |
|
|
184 |
7.1+7.2) Now proceed with the ISPConfig installation. |
|
185 |
|
|
186 |
Now start the installation process by executing: |
|
187 |
|
|
188 |
php -q install.php |
|
189 |
|
|
190 |
// Cleanup |
|
191 |
rm -rf /tmp/trunk |
|
192 |
|
|
193 |
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!): |
|
194 |
|
|
195 |
http://192.168.0.100:8080/ |
|
196 |
|
|
197 |
the default login is: |
|
198 |
|
|
199 |
user: admin |
|
200 |
password: admin |
|
201 |
|
|
202 |
In case you get a permission denied error from apache, please restart the apache webserver process. |
|
203 |
|
|
204 |
Optional: |
|
205 |
|
|
206 |
Install a webbased Email Client |
|
207 |
|
|
208 |
yast2 -i squirrelmail |
|
209 |
|
|
210 |
|