Skip to content

Commit 7d89f56

Browse files
committed
- Added support for openSUSE 11.0
1 parent f6896b4 commit 7d89f56

File tree

10 files changed

+2289
-12
lines changed

10 files changed

+2289
-12
lines changed

INSTALL_OPENSUSE_11.txt

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
Installation
2+
-----------
3+
4+
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:
5+
6+
Install some basic packes and the compilers that we need later
7+
8+
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
9+
10+
1) Install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin with the following command line (on one line!):
11+
12+
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
13+
14+
chkconfig --add mysql
15+
/etc/init.d/mysql start
16+
17+
chkconfig --add postfix
18+
/etc/init.d/postfix start
19+
20+
chkconfig --add saslauthd
21+
/etc/init.d/saslauthd start
22+
23+
chkconfig --add saslauthd
24+
/etc/init.d/saslauthd start
25+
26+
chkconfig --add fam
27+
chkconfig --add courier-authdaemon
28+
chkconfig --add courier-pop
29+
chkconfig --add courier-imap
30+
/etc/init.d/courier-pop start
31+
/etc/init.d/courier-imap start
32+
chkconfig --add courier-pop-ssl
33+
chkconfig --add courier-imap-ssl
34+
/etc/init.d/courier-pop-ssl start
35+
/etc/init.d/courier-imap-ssl start
36+
37+
cd /tmp
38+
wget http://download.opensuse.org/repositories/server:/mail/openSUSE_11.0/i586/getmail-4.7.6-1.4.i586.rpm
39+
rpm -i getmail-4.7.6-1.4.i586.rpm
40+
41+
// Warnings like "warning: getmail-4.7.6-1.4.i586.rpm: Header V3 DSA signature: NOKEY, key ID 367fe7fc" can be ignored.
42+
43+
// Install maildrop
44+
rpm --force -i http://download.opensuse.org/repositories/home%3A/cboltz/openSUSE_10.3/i586/maildrop-2.0.3-16.1.i586.rpm
45+
46+
// Install pam_mysql
47+
48+
yast2 -i pam-devel
49+
cd /tmp
50+
wget http://heanet.dl.sourceforge.net/sourceforge/pam-mysql/pam_mysql-0.7RC1.tar.gz
51+
tar xvfz pam_mysql-0.7RC1.tar.gz
52+
cd pam_mysql-0.7RC1
53+
./configure
54+
make
55+
make install
56+
rm -rf pam_mysql-0.7RC1
57+
rm pam_mysql-0.7RC1.tar.gz
58+
59+
// Set the mysql database password:
60+
61+
mysqladmin -u root password yourrootsqlpassword
62+
mysqladmin -h ispconfig.local -u root password yourrootsqlpassword
63+
64+
65+
2) Install Amavisd-new, Spamassassin and Clamav (1 line!):
66+
67+
yast2 -i amavisd-new clamav clamav-db zoo unzip unrar bzip2 unarj perl-DBD-mysql
68+
69+
chkconfig --add amavis
70+
chkconfig --add clamd
71+
/etc/init.d/amavis start
72+
/etc/init.d/clamd start
73+
74+
3) Install PHP5 modules (1 line!):
75+
76+
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
77+
78+
Then run the following to enable the Apache modules:
79+
80+
a2enmod suexec
81+
a2enmod rewrite
82+
a2enmod ssl
83+
84+
chkconfig --add apache2
85+
/etc/init.d/apache2 start
86+
87+
4) Install pure-ftpd and quota
88+
89+
yast2 -i pure-ftpd quota
90+
91+
// The current pure-ftpd package from SuSE is unstable and segfaults when a file is uploaded,
92+
// we will replace it with a manually compiled package now:
93+
94+
cd /tmp
95+
wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.21.tar.gz
96+
tar xvfz pure-ftpd-1.0.21.tar.gz
97+
cd pure-ftpd-1.0.21/
98+
./configure --sysconfdir=/etc/pure-ftpd --with-everything --with-mysql
99+
make
100+
make install
101+
mv /usr/sbin/pure-ftpd /usr/sbin/pure-ftpd.suse
102+
ln -s /usr/local/sbin/pure-ftpd /usr/sbin/pure-ftpd
103+
rm -rf pure-ftpd-1.0.21
104+
rm -f pure-ftpd-1.0.21.tar.gz
105+
106+
chkconfig --add pure-ftpd
107+
/etc/init.d/pure-ftpd start
108+
109+
110+
5) Install mydns
111+
112+
cd /tmp
113+
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
114+
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
115+
rpm -i mydns*.rpm
116+
rm -rf /tmp/mydns*
117+
118+
chkconfig --add mydns
119+
120+
6) Install vlogger and webalizer
121+
122+
cd /tmp
123+
wget http://n0rp.chemlab.org/vlogger/vlogger-1.3.tar.gz
124+
tar xvfz vlogger-1.3.tar.gz
125+
mv vlogger-1.3/vlogger /usr/sbin/
126+
rm -rf vlogger*
127+
128+
129+
yast2 -i webalizer perl-DateManip
130+
131+
132+
7) Install ISPConfig 3
133+
134+
There are two possile scenarios, but not both:
135+
7.1) Install the latest released version
136+
7.2) Install directly from SVN
137+
138+
apt-get install php5-cli
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.6-beta.tar.gz
144+
tar xvfz ISPConfig-3.0.0.6-beta.tar.gz
145+
cd ispconfig3_install/install/
146+
147+
7.2) Installation from SVN
148+
149+
apt-get install 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 nescessary. 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 FTP Client
175+
176+
apt-get install squirrelmail
177+
ln -s /usr/share/squirrelmail/ /var/www/webmail
178+
179+
Access squirrelmail:
180+
181+
http://192.168.0.100/webmail
182+
183+
184+
To configure squirrelmail, run:
185+
186+
/usr/sbin/squirrelmail-configure
187+
188+
----------------------------------------------------------------------------------------------------------
189+
190+
Hints:
191+
192+
debian 4.0 under openvz:
193+
194+
VPSID=101
195+
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
196+
do
197+
vzctl set $VPSID --capability ${CAP}:on --save
198+
done
199+
200+
----------------------------------------------------------------------------------------------------------
201+
202+
Installing Jailkit:
203+
204+
apt-get install build-essential autoconf automake1.9 libtool flex bison
205+
cd /tmp
206+
wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz
207+
tar xvfz jailkit-2.5.tar.gz
208+
cd jailkit-2.5
209+
./configure
210+
make
211+
make install
212+
rm -rf jailkit-2.5*
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?php
2+
3+
//*** OpenSUSE 11.0 default settings
4+
5+
//* Main
6+
$conf['language'] = 'en';
7+
$conf['distname'] = 'opensuse110';
8+
$conf['hostname'] = 'server1.example.com'; // Full hostname
9+
$conf['ispconfig_install_dir'] = '/usr/local/ispconfig';
10+
$conf['ispconfig_config_dir'] = '/usr/local/ispconfig';
11+
$conf['ispconfig_log_priority'] = 2; // 0 = Debug, 1 = Warning, 2 = Error
12+
$conf['server_id'] = 1;
13+
$conf['init_scripts'] = '/etc/init.d';
14+
$conf['runlevel'] = '/etc';
15+
$conf['shells'] = '/etc/shells';
16+
$conf['cron_tab'] = '/var/spool/cron/tabs/root';
17+
$conf['pam'] = '/etc/pam.d';
18+
19+
//* MySQL
20+
$conf['mysql']['init_script'] = 'mysql';
21+
$conf['mysql']['host'] = 'localhost';
22+
$conf['mysql']['ip'] = '127.0.0.1';
23+
$conf['mysql']['port'] = '3306';
24+
$conf['mysql']['database'] = 'dbispconfig';
25+
$conf['mysql']['admin_user'] = 'root';
26+
$conf['mysql']['admin_password'] = '';
27+
$conf['mysql']['ispconfig_user'] = 'ispconfig';
28+
$conf['mysql']['ispconfig_password'] = md5 (uniqid (rand()));
29+
30+
//* Apache
31+
$conf['apache']['user'] = 'wwwrun';
32+
$conf['apache']['group'] = 'www';
33+
$conf['apache']['init_script'] = 'apache2';
34+
$conf['apache']['version'] = '2.2';
35+
$conf['apache']['vhost_conf_dir'] = '/etc/apache2/sites-available';
36+
$conf['apache']['vhost_conf_enabled_dir'] = '/etc/apache2/sites-enabled';
37+
$conf['apache']['vhost_port'] = '8080';
38+
39+
//* Postfix
40+
$conf['postfix']['config_dir'] = '/etc/postfix';
41+
$conf['postfix']['init_script'] = 'postfix';
42+
$conf['postfix']['user'] = 'postfix';
43+
$conf['postfix']['group'] = 'postfix';
44+
$conf['postfix']['vmail_userid'] = '5000';
45+
$conf['postfix']['vmail_username'] = 'vmail';
46+
$conf['postfix']['vmail_groupid'] = '5000';
47+
$conf['postfix']['vmail_groupname'] = 'vmail';
48+
$conf['postfix']['vmail_mailbox_base'] = '/home/vmail';
49+
50+
//* Getmail
51+
$conf['getmail']['config_dir'] = '/etc/getmail';
52+
$conf['getmail']['program'] = '/usr/bin/getmail';
53+
54+
//* Courier
55+
$conf['courier']['config_dir'] = '/etc/authlib';
56+
$conf['courier']['courier-authdaemon'] = 'courier-authdaemon';
57+
$conf['courier']['courier-imap'] = 'courier-imap';
58+
$conf['courier']['courier-imap-ssl'] = 'courier-imap-ssl';
59+
$conf['courier']['courier-pop'] = 'courier-pop';
60+
$conf['courier']['courier-pop-ssl'] = 'courier-pop-ssl';
61+
62+
//* SASL
63+
$conf['saslauthd']['config'] = '/etc/default/saslauthd';
64+
$conf['saslauthd']['init_script'] = 'saslauthd';
65+
66+
//* Amavisd
67+
$conf['amavis']['config_dir'] = '/etc/amavis';
68+
$conf['amavis']['init_script'] = 'amavis';
69+
70+
//* ClamAV
71+
$conf['clamav']['init_script'] = 'clamd';
72+
73+
//* Pureftpd
74+
$conf['pureftpd']['config_dir'] = '/etc/pure-ftpd';
75+
$conf['pureftpd']['init_script'] = 'pure-ftpd';
76+
77+
//* MyDNS
78+
$conf['mydns']['config_dir'] = '/etc';
79+
$conf['mydns']['init_script'] = 'mydns';
80+
81+
//* Jailkit
82+
$conf['jailkit']['config_dir'] = '/etc/jailkit';
83+
$conf['jailkit']['jk_init'] = 'jk_init.ini';
84+
$conf['jailkit']['jk_chrootsh'] = 'jk_chrootsh.ini';
85+
86+
?>

0 commit comments

Comments
 (0)