README.Windows 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ------------------------ WINDOWS PORT OF PURE-FTPD ------------------------
  2. Pure-FTPd was designed for Unix-like systems. Still, it is possible to
  3. run it on Windows using Cygwin.
  4. This should be considered experimental and unsupported.
  5. ------------------------ INSTALLATION ------------------------
  6. Copy the executable files (*.EXE) in a suitable directory. Also copy
  7. CYGWIN1.DLL in that directory.
  8. Create a C:\CYGWIN directory (you can leave it empty, but the
  9. directory should be there) .
  10. ------------------------ RUNNING THE SERVER ------------------------
  11. PURE-FTPD.EXE works like Unix's /usr/local/sbin/pure-ftpd program and all
  12. command-line switches apply as well.
  13. A noticeable difference, though, is that users can't be stored in
  14. /etc/passwd (or equivalent files) . All users have the same UID/GID.
  15. So better chroot everyone.
  16. Users must be in a puredb database. PURE-PW.EXE can be used to create
  17. virtual users. It you use it in the default configuration, you have to
  18. create C:\CYGWIN\etc and C:\etc .
  19. Ray Jachrist says that Pure-FTPd can run as a service using Firedaemon:
  20. http://www.firedaemon.com/ .
  21. ------------------------ SERVER FILES ------------------------
  22. All files managed by Pure-FTPd have their path relative to C:\CYGWIN .
  23. It means that starting the server with:
  24. pure-ftpd -lpuredb:/etc/pureftpd.pdb
  25. Will read:
  26. C:\CYGWIN\etc\pureftpd.pdb
  27. It also applies to log files and users directories.
  28. ------------------------ ANONYMOUS FTP ------------------------
  29. Files for anonymous FTP must be stored in a directory called:
  30. C:\CYGWIN\FTP
  31. (of course you can use the -e switch to disable anonymous FTP) .
  32. Alternatively, you can have a FTP_ANON_DIR environment variable to
  33. define the directory for public files.
  34. Virtual hosting is supported as well. Files must be in:
  35. C:\CYGWIN\PURE-FTPD\<ip>\
  36. If you don't want anonymous users to upload files, use the -i switch.
  37. ------------------------ COMPILATION ENVIRONMENT ------------------------
  38. Pure-FTPd can be compiled on Cygwin with the following command:
  39. env LDFLAGS="-static -s" \
  40. ./configure --with-everything --with-brokenrealpath \
  41. --without-shadow --with-nonroot --with-tls
  42. All these switches (except --with-everything and --with-tls) are highly
  43. recommended to compile Pure-FTPd on Windows.
  44. Required packages are: base, gcc (+ dependencies), make and the crypt
  45. library. libsodium is also recommended if you are using PureDB.
  46. All of these can be installed with the standard Cygwin installer
  47. (http://www.cygwin.com/) .