View ¡m../ftp/webftp/INSTALL¡n
If you don't have it already, get a recent version of the Perl programming language. Then go to your nearest CPAN mirror and get the Net::FTP module. Net::FTP is in Graham Barr's libnet bundle, which can be found here (hopefully): http://search.cpan.org/search?mode=module&query=libnet Move web-ftp.cgi, MiniServer.pm, web-ftp.conf, and WebFTPPages.pm to your cgi-bin directory. There are two ways Web-FTP may be run. 1. Specify a host in web-ftp.conf, and web-ftp will only conect to that single host. This is useful for secure connections to your web site. 2. If you do not specify FTPhost in the web-ftp.conf file users will be allowed to type in a host of their own, thus turning web-ftp into a web based ftp client. This is very useful if you are behind a firewall that allows http but blocks ftp. The only thing you may be required to edit in web-ftp.cgi is the perl command call at the first line of the script. Currently it is #!/usr/bin/perl If your perl is in a different directory (e.g. /usr/local/bin/perl) or goes by a different name (e.g. /usr/bin/perl5.6) then simply change this line appropriately. If you would like to use the compiled C Session cgi, which should improve speed and lower system load, you may either try to use the compiled version included (It is very simple C and should work on most Intel/AMD systems, I hope). Otherwise you may compile your own. Try gcc web-ftp.c -o web-ftpc.cgi or cc web-ftp.c -o web-ftpc.cgi On Solaris I had to use: gcc -lnsl -lsocket web-ftp.c -o web-ftpc.cgi Later on there may be a more sophisticated system for compiling and such, but for now, consider this experimental :) Once you have a web-ftpc.cgi that works (or whatever you choose to name it) alter the web-ftp.conf file to use MainCGI=web-ftpc.cgi this will cause web-ftp to use the c version for all connections other than the log in screen.