pure-FTP on openVZ on debian

Here is description how to compile pure ftp to run in openVZ server.
First install needed packages and pure-ftpd-mysql:

apt-get install pure-ftpd-mysql build-essential libpam0g-dev libmysqlclient15-dev

Then download and compile new pure-fptd:


cd /tmp
wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.22.tar.gz
tar -xvzf pure-ftpd-1.0.22.tar.gz
cd pure-ftpd-1.0.22
./configure --prefix=/usr/sbin --without-capabilities --with-virtualchroot --with-mysql --with-pam --with-altlog --with-wrapper --with-mysql --with-cookie --with-throttling --with-ratios --with-paranoidmsg --with-quotas
make
make install

and finally replayce original binnary with compiled one:
cp /usr/sbin/pure-ftpd /usr/sbin/pure-ftpd-mysql

and normaly startup pure-ftpd:
/etc/init.d/pure-ftpd-mysql start

This entry was posted in Linux tips and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *