Skip to content

Commit 0711af0

Browse files
committed
- Added support for Fedora 9
1 parent 7d89f56 commit 0711af0

File tree

10 files changed

+2342
-7
lines changed

10 files changed

+2342
-7
lines changed

INSTALL_FEDORA_9.txt

Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
Installation
2+
-----------
3+
4+
It is recommended to use a clean (fresh) Fedora 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+
vi /etc/selinux/config
16+
17+
and set:
18+
19+
SELINUX=disabled
20+
21+
then reboot the server.
22+
23+
24+
1) Install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin with the following command line (on one line!):
25+
26+
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 getmail
27+
28+
useradd -m -s /bin/bash compileuser
29+
passwd compileuser
30+
31+
visudo
32+
33+
## Allow root to run any commands anywhere
34+
root ALL=(ALL) ALL
35+
compileuser ALL=(ALL) ALL
36+
37+
38+
su compileuser
39+
40+
mkdir $HOME/rpm
41+
mkdir $HOME/rpm/SOURCES
42+
mkdir $HOME/rpm/SPECS
43+
mkdir $HOME/rpm/BUILD
44+
mkdir $HOME/rpm/SRPMS
45+
mkdir $HOME/rpm/RPMS
46+
mkdir $HOME/rpm/RPMS/i386
47+
48+
echo "%_topdir $HOME/rpm" >> $HOME/.rpmmacros
49+
50+
51+
wget http://prdownloads.sourceforge.net/courier/courier-authlib-0.61.0.tar.bz2
52+
wget http://prdownloads.sourceforge.net/courier/courier-imap-4.4.1.tar.bz2
53+
wget http://prdownloads.sourceforge.net/courier/maildrop-2.0.4.tar.bz2
54+
55+
sudo rpmbuild -ta courier-authlib-0.61.0.tar.bz2
56+
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
60+
61+
rpmbuild -ta courier-imap-4.4.1.tar.bz2
62+
63+
sudo rpm -ivh /home/compile/rpm/RPMS/i386/courier-imap-4.4.1-1.9.i386.rpm
64+
65+
sudo rpmbuild -ta maildrop-2.0.4.tar.bz2
66+
67+
sudo rpm -ivh /home/compile/rpm/RPMS/i386/maildrop-2.0.4-1.9.i386.rpm
68+
69+
exit
70+
71+
yum install postfix
72+
73+
chkconfig --levels 235 mysqld on
74+
/etc/init.d/mysqld start
75+
76+
chkconfig --levels 235 httpd on
77+
/etc/init.d/httpd start
78+
79+
chkconfig --levels 235 courier-authlib on
80+
/etc/init.d/courier-authlib start
81+
82+
chkconfig --levels 235 sendmail off
83+
chkconfig --levels 235 postfix on
84+
chkconfig --levels 235 saslauthd on
85+
/etc/init.d/sendmail stop
86+
/etc/init.d/postfix start
87+
/etc/init.d/saslauthd start
88+
89+
chkconfig --levels 235 courier-imap on
90+
/etc/init.d/courier-authlib restart
91+
/etc/init.d/courier-imap restart
92+
93+
94+
Set the mysql database password:
95+
96+
mysqladmin -u root password yourrootsqlpassword
97+
mysqladmin -h ispconfig.local -u root password yourrootsqlpassword
98+
99+
100+
2) Install Amavisd-new, Spamassassin and Clamav (1 line!):
101+
102+
yum install amavisd-new spamassassin clamav clamav-data clamav-server clamav-update unzip bzip2 unrar
103+
104+
chkconfig --levels 235 amavisd on
105+
chkconfig --levels 235 clamd.amavisd on
106+
/usr/bin/freshclam
107+
/etc/init.d/amavisd start
108+
/etc/init.d/clamd.amavisd start
109+
110+
3) Install apache, PHP5 and phpmyadmin (1 line!):
111+
112+
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
113+
114+
115+
4) Install pure-ftpd and quota
116+
117+
yum install pure-ftpd quota
118+
119+
chkconfig --levels 235 pure-ftpd on
120+
121+
5) Install mydns
122+
123+
rpm -i http://mydns.bboy.net/download/mydns-mysql-1.1.0-1.i386.rpm
124+
125+
chkconfig --levels 235 mydns on
126+
127+
6) Install vlogger and webalizer
128+
129+
yum install webalizer perl-DateTime-Format-HTTP perl-DateTime-Format-Builder
130+
131+
cd /tmp
132+
wget http://n0rp.chemlab.org/vlogger/vlogger-1.3.tar.gz
133+
tar xvfz vlogger-1.3.tar.gz
134+
mv vlogger-1.3/vlogger /usr/sbin/
135+
rm -rf vlogger*
136+
137+
7) Configure the firewall
138+
139+
Now you should switch off the firewall by running:
140+
141+
system-config-firewall-tui
142+
143+
ISPConfig comes with a iptables bsed firewall script that can be meneged from within the ispconfig interface.
144+
145+
146+
8) Install ISPConfig 3
147+
148+
There are two possile scenarios, but not both:
149+
7.1) Install the latest released version
150+
7.2) Install directly from SVN
151+
152+
apt-get install php5-cli
153+
154+
8.1) Installation of beta 3 from tar.gz
155+
156+
cd /tmp
157+
wget http://www.ispconfig.org/downloads/ISPConfig-3.0.0.6-beta.tar.gz
158+
tar xvfz ISPConfig-3.0.0.6-beta.tar.gz
159+
cd ispconfig3_install/install/
160+
161+
8.2) Installation from SVN
162+
163+
apt-get install subversion
164+
cd /tmp
165+
svn export svn://svn.ispconfig.org/ispconfig3/trunk/
166+
cd trunk/install
167+
168+
169+
8.1+8.2) Now proceed with the ISPConfig installation.
170+
171+
Now start the installation process by executing:
172+
173+
php -q install.php
174+
175+
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!):
176+
177+
http://192.168.0.100:8080/
178+
179+
the default login is:
180+
181+
user: admin
182+
password: admin
183+
184+
In case you get a permission denied error from apache, please restart the apache webserver process.
185+
186+
Optional:
187+
188+
Install a webbased FTP Client
189+
190+
apt-get install squirrelmail
191+
ln -s /usr/share/squirrelmail/ /var/www/webmail
192+
193+
Access squirrelmail:
194+
195+
http://192.168.0.100/webmail
196+
197+
198+
To configure squirrelmail, run:
199+
200+
/usr/sbin/squirrelmail-configure
201+
202+
----------------------------------------------------------------------------------------------------------
203+
204+
Hints:
205+
206+
debian 4.0 under openvz:
207+
208+
VPSID=101
209+
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
210+
do
211+
vzctl set $VPSID --capability ${CAP}:on --save
212+
done
213+
214+
----------------------------------------------------------------------------------------------------------
215+
216+
Installing Jailkit:
217+
218+
apt-get install build-essential autoconf automake1.9 libtool flex bison
219+
cd /tmp
220+
wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz
221+
tar xvfz jailkit-2.5.tar.gz
222+
cd jailkit-2.5
223+
./configure
224+
make
225+
make install
226+
rm -rf jailkit-2.5*

install/dist/conf/fedora9.conf.php

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'] = 'fedora9';
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.amavisd';
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)