The Perfect Server - CentOS 5.3 i386 [ISPConfig 2] - Page 4

8 Quota

(If you have chosen a different partitioning scheme than I did, you must adjust this chapter so that quota applies to the partitions where you need it.)

To install quota, we run this command:

yum install quota

Edit /etc/fstab and add ,usrquota,grpquota to the / partition (/dev/VolGroup00/LogVol00):

vi /etc/fstab

/dev/VolGroup00/LogVol00 /                       ext3    defaults,usrquota,grpquota        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0

Then run

touch /aquota.user /
chmod 600 /aquota.*
mount -o remount /
quotacheck -avugm
quotaon -avug

to enable quota.


9 Install A Chrooted DNS Server (BIND9)

To install a chrooted BIND9, we do this:

yum install bind-chroot

Then do this:

chmod 755 /var/named/
chmod 775 /var/named/chroot/
chmod 775 /var/named/chroot/var/
chmod 775 /var/named/chroot/var/named/
chmod 775 /var/named/chroot/var/run/
chmod 777 /var/named/chroot/var/run/named/
cd /var/named/chroot/var/named/
ln -s ../../ chroot
cp /usr/share/doc/bind-9.3.4/sample/var/named/named.local /var/named/chroot/var/named/named.local
cp /usr/share/doc/bind-9.3.4/sample/var/named/named.root /var/named/chroot/var/named/named.root
touch /var/named/chroot/etc/named.conf
chkconfig --levels 235 named on
/etc/init.d/named start

BIND will run in a chroot jail under /var/named/chroot/var/named/. I will use ISPConfig to configure BIND (zones, etc.).


10 MySQL (5.0)

To install MySQL, we do this:

yum install mysql mysql-devel mysql-server

Then we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server:

chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start

Now check that networking is enabled. Run

netstat -tap | grep mysql

It should show a line like this:

[root@server1 named]# netstat -tap | grep mysql
tcp        0      0 *:mysql                     *:*                         LISTEN      2497/mysqld
[root@server1 named]#

If it does not, edit /etc/my.cnf and comment out the option skip-networking:

vi /etc/my.cnf


and restart your MySQL server:

/etc/init.d/mysqld restart


mysqladmin -u root password yourrootsqlpassword
mysqladmin -h -u root password yourrootsqlpassword

to set a password for the user root (otherwise anybody can access your MySQL database!).

Share this page:

8 Comment(s)

Add comment


From: mati malsub at: 2010-02-11 16:32:54

hi Falko,

Shouldn't the following command:

chmod 600 smtpd.key

be moved a bit downward, as the command currently following it:

mv -f smtpd.key.unencrypted smtpd.key

 resets smtpd.key-s 600 permissions back to 644?

From: at: 2009-06-18 21:09:16
From: Andrija Panic at: 2009-08-13 13:44:49

Unfortunately, ProFTPD can not be downloaded using the provided link...

You can download it with following command:



From: at: 2009-10-26 22:22:31

Step 12.3 ( install mod_ruby )

when I run

./configure.rb --with-apr-includes=/usr/include/apr-1

i get

checking for a BSD compatible install... /usr/bin/install -c
checking whether we are using gcc... yes
checking Ruby version... 1.8.5
checking for static Apache module support... no
checking for dynamic Apache module support... ./configure.rb:171: command not found: apxs -q INCLUDEDIR
./configure.rb:171: command not found: apxs -q LIBEXECDIR
configure.rb: error: failed to exec apxs

any ideas?


From: Emilio at: 2009-05-30 21:32:37

Dear Mr. Timme. I just performed the 5.1 installation yesterday. I guess I was feeling challenging and re-did a an old computer I have and where I run my home phone system.

No, I'm no expert, just a very amateur computer and technology attracted person.

The reason for writing to you today is just to say thank you and what a fantastic job you have done with these tutorial. I had used the same tutorial to just mid capacities about a year ago and yesterday I noticed I had learned a bit more so things went smoother but my amazement is in the care you put into them. Every single command as clockwork and at the end you know you have an excellent server setup.

As I'm writing to you I'm downloading 5.3 just because I ran into your latest tutorial. It's been raining here in S. Florida so, if my download goes ok I just might re-do the old box with a new 5.3.

Thank you so much. It is people like you that make the internet the beauty it is.


Emilio Valle

From: hAppz at: 2009-11-06 14:00:25

NOTE: when you complete this howto i always install ispconfig with wget

1. cd /tmp

2. wget

3. tar xvfz ISPConfig-2.2.34.tar*

4. cd /install_ispconfig

5. ./setup


Think this is all....


From: at: 2009-09-16 03:42:29
From: Anonymous at: 2009-12-03 22:21:35

Thank you, but...

4. cd /tmp/install_ispconfig

Fantastic guide, Congratulations. ^^