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
7 comments
[...] source JigishThakar.com [...]
[...] has written up a quick look at a FTP server that’s been written entirely in PHP – nanoFTP. nanoFTPd is an ftp daemon [...]
[...] is the original post: An ftp server written in PHP | A blend of programming and seo Share and [...]
[...] An ftp server written in PHP [...]
[...] An ftp server written in PHP [...]
Hi
Nice work thanks.
What ftp commands does this support?
Is it possible to change the port that an ftp coNnection is created on using this?
Sorry if this seems like noob questions I haven’t installed it yet wanted to know those things first before trying it?
Thanks
@Courtney:
Hey, no problem.
It supports: LIST,NLST,PASV,PORT,SYST,PWD,CWD,CDUP,TYPE,NOOP,RETR,SIZE,STOR,DELE,HELP,SITE,APPE,MKD,RMD,RNFR,RNTO
and the port can be changed in config.php (under the listening->port setting)
Leave a Comment