nanoFTPd: An ftp server written in PHP
nanoFTPd is an ftp daemon written in php. as of version 4.2.0, php supports the command-line interface (stable since 4.3.0), which nanoFTPd relies on. nanoFTPd is modular, so it’s easy to add custom modules and other stuff, like different database interfaces (currently supports mysql and postgresql).
Features
- user authentication via a database/textfile
- mysql + posgresql support
- passive mode
- dynamic ip support
- basic ftp commands
- logging
Requirements
- PHP 4.2.0 or above
- A database server (mysql or postgres)
- PHP extension: cli
- PHP extension: sockets
- PHP extension: posix
Note: for best performance, compile php with –disable-cgi
Configuring
before running nanoFTPD, you need to do the following:
1) change variables in config.php
2) change the first line of nanoftpd.php to the path of your php binary
Installing
installing is fairly straight forward. you only have to copy the whole directory (with subdirectories) into a directory of your choice… e.g. /usr/share/nanoftpd
(working on a better structure — e.g. config.php into /etc, nanoftpd.php into
/usr/sbin).
Download
You can download nanoftpd here

