Prerequisites:
==============

To install the F*EX server, you need a UNIX system with perl, xinetd and
/usr/lib/sendmail (either original or a clone like postfix or exim). 
Your perl must have the following standard modules:

CGI
CGI::Carp
Digest::MD5
Encode
Fcntl
File::Basename
Getopt::Std
IO::Handle
POSIX

Optional is the non-standard perl modul Net::DNS for better error handling.

On Debian and Ubuntu Linux you need to:

	apt-get install xinetd perl-modules libnet-dns-perl
	test -x /usr/lib/sendmail || apt-get install postfix

Do not forget to open port 80 on your firewalls and routers for incoming
connections!

To install F*EX, simply run "./install", then edit lib/fex.ph and set your
local config.  If you want to upgrade from a previous F*EX version, you
also can run "./install", no old config files will be overwritten.

Use "./install -p 8888" to install F*EX on port 8888 instead on default
port 80. 

You might want to add "bind = YOUR_IP_ADRESS" to /etc/xinetd.d/fex, to bind
fexsrv to this (only) address and to avoid prompting the install script
for it.



Hints:
======

F*EX runs with its own uid (default: fex), which will be created by the
install script.

F*EX uses a directory (FEXHOME) containing anything needed to run fex.
Default is FEXHOME=/home/fex, the home directory of the "fex" user.


If you want fex to be installed elsewhere create a new "fex" user account
before running ./install. E.g.:

adduser --system --group --gecos "File EXchange" --home /srv/fex fex
./install

To enhance security you can remove write permission for user fex on all
files but the spool, with:

	FEXHOME=`awk -F: '/^fex:/{print $6}' /etc/passwd`
	chown -R root:root $FEXHOME
	chown -R fex       $FEXHOME/spool

