Skip to content

Commit 663619e

Browse files
committed
- Added support for CentOS 5.2
1 parent 90511b7 commit 663619e

File tree

5 files changed

+359
-9
lines changed

5 files changed

+359
-9
lines changed

INSTALL_CENTOS_5.2.txt

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
Installation
2+
-----------
3+
4+
It is recommended to use a clean (fresh) CentOS 5.2 install. Then follow the steps below to setup your server with ISPConfig 3:
5+
6+
Installation of some basic requirements:
7+
8+
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
9+
yum update
10+
yum groupinstall 'Development Tools'
11+
yum groupinstall 'Development Libraries'
12+
13+
You should disable selinux now, as some programs will not start when selinux is enabled:
14+
15+
system-config-securitylevel-tui
16+
17+
then reboot the server.
18+
19+
20+
1) Install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin with the following command line (on one line!):
21+
22+
yum install ntp httpd mysql-server php php-mysql php-mbstring rpm-build gcc mysql-devel openssl-devel cyrus-sasl-devel pkgconfig zlib-devel phpMyAdmin pcre-devel openldap-devel postgresql-devel expect libtool-ltdl-devel openldap-servers libtool gdbm-devel pam-devel gamin-devel postfix
23+
24+
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
25+
26+
cd /tmp
27+
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
28+
rpm -i rpmforge-release-0.3.6-1.el5.rf.i386.rpm
29+
yum update
30+
31+
yum install getmail
32+
33+
useradd -m -s /bin/bash compileuser
34+
passwd compileuser
35+
36+
visudo
37+
38+
## Allow root to run any commands anywhere
39+
root ALL=(ALL) ALL
40+
compileuser ALL=(ALL) ALL
41+
42+
43+
su compileuser
44+
45+
mkdir $HOME/rpm
46+
mkdir $HOME/rpm/SOURCES
47+
mkdir $HOME/rpm/SPECS
48+
mkdir $HOME/rpm/BUILD
49+
mkdir $HOME/rpm/SRPMS
50+
mkdir $HOME/rpm/RPMS
51+
mkdir $HOME/rpm/RPMS/i386
52+
53+
echo "%_topdir $HOME/rpm" >> $HOME/.rpmmacros
54+
55+
56+
wget http://prdownloads.sourceforge.net/courier/courier-authlib-0.61.0.tar.bz2
57+
wget http://prdownloads.sourceforge.net/courier/courier-imap-4.4.1.tar.bz2
58+
wget http://prdownloads.sourceforge.net/courier/maildrop-2.0.4.tar.bz2
59+
60+
sudo rpmbuild -ta courier-authlib-0.61.0.tar.bz2
61+
62+
sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-authlib-0.61.0-1.i386.rpm
63+
sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-authlib-mysql-0.61.0-1.i386.rpm
64+
sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-authlib-devel-0.61.0-1.i386.rpm
65+
66+
rpmbuild -ta courier-imap-4.4.1.tar.bz2
67+
68+
sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-imap-4.4.1-1.i386.rpm
69+
70+
sudo rpmbuild -ta maildrop-2.0.4.tar.bz2
71+
72+
sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/maildrop-2.0.4-1.i386.rpm
73+
74+
exit
75+
76+
chkconfig --levels 235 mysqld on
77+
/etc/init.d/mysqld start
78+
79+
chkconfig --levels 235 httpd on
80+
/etc/init.d/httpd start
81+
82+
chkconfig --levels 235 courier-authlib on
83+
/etc/init.d/courier-authlib start
84+
85+
chkconfig --levels 235 sendmail off
86+
chkconfig --levels 235 postfix on
87+
chkconfig --levels 235 saslauthd on
88+
/etc/init.d/sendmail stop
89+
/etc/init.d/postfix start
90+
/etc/init.d/saslauthd start
91+
92+
chkconfig --levels 235 courier-imap on
93+
/etc/init.d/courier-authlib restart
94+
/etc/init.d/courier-imap restart
95+
96+
97+
Set the mysql database password:
98+
99+
mysqladmin -u root password yourrootsqlpassword
100+
mysqladmin -h ispconfig.local -u root password yourrootsqlpassword
101+
102+
103+
2) Install Amavisd-new, Spamassassin and Clamav (1 line!):
104+
105+
yum install amavisd-new spamassassin clamav clamd clamav-data clamav-server clamav-update unzip bzip2 unrar
106+
107+
chkconfig --levels 235 amavisd on
108+
chkconfig --levels 235 clamd on
109+
/usr/bin/freshclam
110+
/etc/init.d/amavisd start
111+
/etc/init.d/clamd start
112+
113+
3) Install apache, PHP5 and phpmyadmin (1 line!):
114+
115+
yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-magickwand php-magpierss php-mapserver php-mbstring php-mcrypt php-mhash php-mssql php-shout php-snmp php-soap php-tidy curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel phpmyadmin
116+
117+
118+
4) Install pure-ftpd and quota
119+
120+
cd /tmp
121+
wget http://centos.karan.org/el5/extras/testing/i386/RPMS/pure-ftpd-1.0.21-15.el5.kb.i386.rpm
122+
rpm -i pure-ftpd-1.0.21-15.el5.kb.i386.rpm
123+
124+
yum install quota
125+
126+
chkconfig --levels 235 pure-ftpd on
127+
/etc/init.d/pure-ftpd start
128+
129+
5) Install mydns
130+
131+
wget http://mydns.bboy.net/download/mydns-mysql-1.1.0-1.i386.rpm
132+
rpm -ivh mydns-mysql-1.1.0-1.i386.rpm
133+
134+
chkconfig --levels 235 mydns on
135+
136+
6) Install vlogger and webalizer
137+
138+
yum install webalizer perl-DateTime-Format-HTTP perl-DateTime-Format-Builder
139+
140+
cd /tmp
141+
wget http://n0rp.chemlab.org/vlogger/vlogger-1.3.tar.gz
142+
tar xvfz vlogger-1.3.tar.gz
143+
mv vlogger-1.3/vlogger /usr/sbin/
144+
rm -rf vlogger*
145+
146+
7) Install ISPConfig 3
147+
148+
Disable the firewall:
149+
150+
system-config-securitylevel-tui
151+
152+
There are two possile scenarios, but not both:
153+
7.1) Install the latest released version
154+
7.2) Install directly from SVN
155+
156+
7.1) Installation of beta 3 from tar.gz
157+
158+
cd /tmp
159+
wget http://www.ispconfig.org/downloads/ISPConfig-3.0.0.6-beta.tar.gz
160+
tar xvfz ISPConfig-3.0.0.6-beta.tar.gz
161+
cd ispconfig3_install/install/
162+
163+
7.2) Installation from SVN
164+
165+
yum install subversion
166+
cd /tmp
167+
svn export svn://svn.ispconfig.org/ispconfig3/trunk/
168+
cd trunk/install
169+
170+
171+
7.1+7.2) Now proceed with the ISPConfig installation.
172+
173+
Now start the installation process by executing:
174+
175+
php -q install.php
176+
177+
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!):
178+
179+
http://192.168.0.100:8080/
180+
181+
the default login is:
182+
183+
user: admin
184+
password: admin
185+
186+
In case you get a permission denied error from apache, please restart the apache webserver process.
187+
188+
Optional:
189+
190+
Install a webbased FTP Client
191+
192+
yum install squirrelmail
193+
194+
195+
----------------------------------------------------------------------------------------------------------
196+
197+
Hints:
198+
199+
debian 4.0 under openvz:
200+
201+
VPSID=101
202+
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
203+
do
204+
vzctl set $VPSID --capability ${CAP}:on --save
205+
done
206+
207+
----------------------------------------------------------------------------------------------------------
208+
209+
Installing Jailkit:
210+
211+
cd /tmp
212+
wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz
213+
tar xvfz jailkit-2.5.tar.gz
214+
cd jailkit-2.5
215+
./configure
216+
make
217+
make install
218+
rm -rf jailkit-2.5*

INSTALL_FEDORA_9.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ wget http://prdownloads.sourceforge.net/courier/maildrop-2.0.4.tar.bz2
5454

5555
sudo rpmbuild -ta courier-authlib-0.61.0.tar.bz2
5656

57-
sudo rpm -ivh /home/compile/rpm/RPMS/i386/courier-authlib-0.61.0-1.fc9.i386.rpm
58-
sudo rpm -ivh /home/compile/rpm/RPMS/i386/courier-authlib-mysql-0.61.0-1.fc9.i386.rpm
59-
sudo rpm -ivh /home/compile/rpm/RPMS/i386/courier-authlib-devel-0.61.0-1.fc9.i386.rpm
57+
sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-authlib-0.61.0-1.fc9.i386.rpm
58+
sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-authlib-mysql-0.61.0-1.fc9.i386.rpm
59+
sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-authlib-devel-0.61.0-1.fc9.i386.rpm
6060

6161
rpmbuild -ta courier-imap-4.4.1.tar.bz2
6262

63-
sudo rpm -ivh /home/compile/rpm/RPMS/i386/courier-imap-4.4.1-1.9.i386.rpm
63+
sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/courier-imap-4.4.1-1.9.i386.rpm
6464

6565
sudo rpmbuild -ta maildrop-2.0.4.tar.bz2
6666

67-
sudo rpm -ivh /home/compile/rpm/RPMS/i386/maildrop-2.0.4-1.9.i386.rpm
67+
sudo rpm -ivh /home/compileuser/rpm/RPMS/i386/maildrop-2.0.4-1.9.i386.rpm
6868

6969
exit
7070

@@ -146,8 +146,8 @@ ISPConfig comes with a iptables bsed firewall script that can be meneged from wi
146146
8) Install ISPConfig 3
147147

148148
There are two possile scenarios, but not both:
149-
7.1) Install the latest released version
150-
7.2) Install directly from SVN
149+
8.1) Install the latest released version
150+
8.2) Install directly from SVN
151151

152152
8.1) Installation of beta 3 from tar.gz
153153

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?php
2+
3+
//*** Fedora 9 default settings
4+
5+
//* Main
6+
$conf['language'] = 'en';
7+
$conf['distname'] = 'centos52';
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/root';
17+
$conf['pam'] = '/etc/pam.d';
18+
19+
//* MySQL
20+
$conf['mysql']['init_script'] = 'mysqld';
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'] = 'apache';
32+
$conf['apache']['group'] = 'apache';
33+
$conf['apache']['init_script'] = 'httpd';
34+
$conf['apache']['version'] = '2.2';
35+
$conf['apache']['vhost_conf_dir'] = '/etc/httpd/conf/sites-available';
36+
$conf['apache']['vhost_conf_enabled_dir'] = '/etc/httpd/conf/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-authlib';
57+
$conf['courier']['courier-imap'] = 'courier-imap';
58+
$conf['courier']['courier-imap-ssl'] = 'courier-imap';
59+
$conf['courier']['courier-pop'] = 'courier-imap';
60+
$conf['courier']['courier-pop-ssl'] = 'courier-imap';
61+
62+
//* SASL
63+
$conf['saslauthd']['config'] = '/etc/sysconfig/saslauthd';
64+
$conf['saslauthd']['init_script'] = 'saslauthd';
65+
66+
//* Amavisd
67+
$conf['amavis']['config_dir'] = '/etc/amavisd';
68+
$conf['amavis']['init_script'] = 'amavisd';
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+
?>

install/dist/lib/centos52.lib.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
3+
/*
4+
Copyright (c) 2008, Till Brehm, projektfarm Gmbh
5+
All rights reserved.
6+
7+
Redistribution and use in source and binary forms, with or without modification,
8+
are permitted provided that the following conditions are met:
9+
10+
* Redistributions of source code must retain the above copyright notice,
11+
this list of conditions and the following disclaimer.
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
* Neither the name of ISPConfig nor the names of its contributors
16+
may be used to endorse or promote products derived from this software without
17+
specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22+
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
23+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24+
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
26+
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
28+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29+
*/
30+
31+
class installer extends installer_dist {
32+
33+
34+
}
35+
36+
?>

0 commit comments

Comments
 (0)