The Perfect Setup - Mandriva 2007 Free Edition - Page 6

14 Proftpd

Install Proftpd like this:

urpmi proftpd

When you see the following:

One of the following packages is needed:
1- proftpd-mod_wrap_file-1.3.0-4mdv2007.0.i586 : A file-specific driver for the mod_wrap module for ProFTPD (to install)
2- proftpd-mod_wrap_sql-1.3.0-4mdv2007.0.i586 : A SQL database driver for the mod_wrap module for ProFTPD (to install)

type in 1.

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 in /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

 

15 Webalizer

Mandriva 2007 doesn't come with a Webalizer package anymore, therefore we install the static Webalizer binary from the Webalizer web site like this:

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

 

16 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

 

17 The End

The configuration of the server is now finished, and if you wish you can now install ISPConfig on it.

 

18 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:

Unless you install ISPConfig in expert mode and change the default web root (which is /var/www), you will be able to run CGI scripts under suExec with ISPConfig.

 

19 Links

Share this page:

6 Comment(s)

Add comment

Comments

From: Anonymous at: 2009-04-21 09:53:48

Thanks for that great tutorial, very instructive and usefull for a noob like me ! But is it always actual ? or is there another more recent ?

From: Tom Smith at: 2009-12-04 05:48:54

The quick fix is to login into the graphical interface with the root user and then you can go about adding the user you want.

From: Tom Smith at: 2009-12-04 06:00:57

The quick fix is to login into the graphical interface with the root user and then you can go about adding the user you want. You just need to open up Mandriva Control Center to do it.

From: feliduca at: 2008-09-30 21:46:35

The quick fix is to login into the graphical interface with the root user and then you can go about adding the user you want. You just need to open up Mandriva Control Center to do it. IF you're comfortable with command line then try out "man useradd". A simple line you'd probably need for useradd would be something like: "useradd -d /home/<user>/ -s /bin/bash <user>" and then you'd do a "passwd user" and set the password.

_________________________

Submited by : Doma de Caballos

From: husky training at: 2011-02-17 07:30:47

I had problems using this on my old computer last week (Can't run the newer version and this one is the only one that has been working stable). Had the same problem as the first poster so I'm going to try it over this weekend using your suggestion :)

 

Hopefully it will work! haha

From: Bedrift at: 2010-11-21 15:34:48

You have explain it in such a simple way with snap shots. Thanks for your efforts.