The Perfect Server - Mandriva 2008 Free (Mandriva 2008.0) - Page 6
13 Proftpd
Install Proftpd like this:
urpmi proftpd
For security reasons you can add the following lines to /etc/proftpd.conf (thanks to Reinaldo Carvalho; more information can be found here: http://www.proftpd.org/localsite/Userguide/linked/userguide.html):
vi /etc/proftpd.conf
[...] DefaultRoot ~ IdentLookups off ServerIdent on "FTP Server ready." [...] |
Be sure to comment out the following lines at the end of /etc/proftpd.conf in order to allow ftp users to CHMOD:
[...] # Bar use of SITE CHMOD by default #<Limit SITE_CHMOD> # DenyAll #</Limit> |
Then restart Proftpd:
/etc/init.d/proftpd restart
14 Webalizer
Mandriva 2008 doesn't come with a Webalizer package anymore, therefore we install the static Webalizer binary from the Webalizer web site like this:
urpmi libgeoip1 geoip libgeoipupdate0 awffull
cd /tmp
wget ftp://ftp.mrunix.net/pub/webalizer/webalizer-2.01-10-static.gz
gunzip webalizer-2.01-10-static.gz
mv webalizer-2.01-10-static /usr/bin/webalizer
chmod 755 /usr/bin/webalizer
15 Install Some Perl Modules Needed By SpamAssassin (Comes With ISPConfig)
To install all needed Perl Modules, we can use the appropriate Mandriva packages and install them using urpmi:
urpmi perl-HTML-Parser perl-Digest-SHA1 perl-DB_File perl-Net-DNS
16 The End
The configuration of the server is now finished, and if you wish you can now install ISPConfig on it.
17 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 Mandriva's suExec is compiled with /var/www as Doc_Root. Run
/usr/sbin/suexec -V
and the output should look like this:
[root@server1 ~]# /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_SUEXEC_UMASK=077
-D AP_UID_MIN=100
-D AP_USERDIR_SUFFIX="public_html"
[root@server1 ~]#
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
- Mandriva: http://www.mandriva.com
- Easyurpmi: http://easyurpmi.zarb.org
- ISPConfig: http://www.ispconfig.or