Compiling proftpd

To compile and install proftpd from scratch, follow these directions (uses version 1.3.2b in this example):

wget http://files.directadmin.com/services/customapache/proftpd-1.3.2b.tar.gz
tar xvzf proftpd-1.3.2b.tar.gz
cd proftpd-1.3.2b
install_user=ftp install_group=ftp ./configure --prefix=/usr/local --sysconfdir=/etc --localstatedir=/var/run --mandir=/usr/local/man --without-pam --disable-auth-pam --with-modules=mod_ratio:mod_readme LDFLAGS=-static
make
make install

Then restart proftpd.

If you need a new /etc/proftpd.conf file, you can get the DA template from /usr/local/directadmin/data/templates/proftpd.conf. The 2 files should be very similar. * Note, if you use the template, you have to replace the 1 instance of |SERVER_IP| with your actual server IP address. * Note, prefix on Linux is –prefix=/usr

If, after this compile, when you telnet to port 21, you see: 220 ProFTPD 1.3.2b Server (ProFTPD Default Installation) [127.0.0.1]

This would imply that proftpd is using a different proftpd.conf. Run the following to link this other proftpd.conf to the current one:

rm -f /usr/local/etc/proftpd.conf
ln -s /etc/proftpd.conf /usr/local/etc/proftpd.conf

The telnet to 21 should look like:

server# telnet localhost 21
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 ProFTPD 1.3.2b Server ready.
 
ftp/copmpile.txt · Last modified: 2010/02/20 21:49 by muscardin
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Please visit Automatic Backlinks to start earning free backlinks Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki forex signals