The Perfect Server - Fedora 7 - Page 6

13 ProFTPd

ISPConfig has better support for proftpd than vsftpd, so let's remove vsftpd and install proftpd:

yum remove vsftpd

yum install proftpd

Next we must modify /etc/pam.d/proftpd (of course we make a backup of the original /etc/pam.d/proftpd) because otherwise system users will not be able to log in to FTP:

cp /etc/pam.d/proftpd /etc/pam.d/proftpd_orig
cat /dev/null > /etc/pam.d/proftpd
vi /etc/pam.d/proftpd

auth    required     nullok
account required
session required

Now we can create the system startup links for Proftpd and start it:

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


14 Webalizer

To install webalizer, just run

yum install webalizer


15 Synchronize The System Clock

If you want to have the system clock synchronized with an NTP server do the following:

yum install ntp

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


16 Install Some Perl Modules

ISPConfig comes with SpamAssassin which needs a few Perl modules to work. We install the required Perl modules with a single command:

yum install perl-HTML-Parser perl-DBI perl-Net-DNS perl-Digest-SHA1


17 The End

The configuration of the server is now finished, and if you wish you can now install ISPConfig on it, following these instructions:


17.1 A Note On SuExec

If you want to run CGI scripts under suExec, you should specify /var/www as the web root for websites created by ISPConfig as Fedora's suExec is compiled with /var/www as Doc_Root. Run

/usr/sbin/suexec -V

and the output should look like this:

[root@server1 ssl]# /usr/sbin/suexec -V
 -D AP_DOC_ROOT="/var/www"
 -D AP_GID_MIN=100
 -D AP_HTTPD_USER="apache"
 -D AP_LOG_EXEC="/var/log/httpd/suexec.log"
 -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
 -D AP_UID_MIN=500
 -D AP_USERDIR_SUFFIX="public_html"
[root@server1 ssl]#

So if you want to use suExec with ISPconfig, don't change the default web root (which is /var/www) if you use expert mode during the ISPConfig installation (in standard mode you can't change the web root anyway so you'll be able to use suExec in any case).


18 Links

Share this page:

3 Comment(s)

Add comment


From: at: 2007-06-21 04:05:45

Until these how-to's start to incorporate SELinux, AppArmour or equivilant technologies they are not perfect.  Just because it is difficult doesn't mean it should be excluded immediately upon start up.  I mean come on, Fedora 7 is far better for SELinux then previous versions, yet still, people churn out these how-tos which immediately disables it.


Thanks for the How-Tos, but how 'bout some with SELinux enabled, and the problems that were found.

From: at: 2007-08-22 19:13:01

I've just run this setup with great effect on Fedora Core 6 which came pre-installed with my dedicated server. There were just two small things to note:

Before Step 4 (installing apache):

If you want to install a suPHP with ISPConfig later, you will need to install the apache2 header files otherwise compilation will fail. Run the following:

yum install httpd-devel

Step 6 (disabling the firewall):

The command in fc6 should be:


I hope this helps somebody!

Neil Hamilton

From: at: 2007-09-04 13:20:06

thank you for your great how-to

that would be nice, if you could add anonymous configuration file for proftpd.cof

and also config, which lets home users to login!