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