A blend of programming and seo

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

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • Reddit
  • Twitter
  • HackerNews
  • StumbleUpon
  • Technorati

7 comments

1 nanoFTPd: An ftp server written in PHP | JigishThakar.com { 05.18.09 at 11:53 am }

[...] source JigishThakar.com [...]

2 Justin’s Blog: An ftp server written in PHP | Webs Developer { 05.19.09 at 11:53 am }

[...] has written up a quick look at a FTP server that’s been written entirely in PHP – nanoFTP. nanoFTPd is an ftp daemon [...]

3 An ftp server written in PHP | A blend of programming and seo { 05.20.09 at 3:06 pm }

[...] is the original post: An ftp server written in PHP | A blend of programming and seo Share and [...]

4 ??????? » [Web] ???? { 05.22.09 at 6:59 pm }

[...] An ftp server written in PHP [...]

5 [??] ???? (?) | ??? - ???? - ???? - ???? - AppleBOY { 05.28.09 at 12:33 am }

[...] An ftp server written in PHP [...]

6 Courtney { 01.26.10 at 3:51 am }

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

7 Roy (rawseo) { 01.26.10 at 11:30 pm }

@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