#install config pure-db
sudo apt-get install pure-ftpd
sudo groupadd ftpgroup
sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser -d /home/ftpuser
sudo chown -R ftpuser:ftpgroup /home/ftpuser
sudo pure-pw useradd $USERNAME -u ftpuser -d /home/ftpuser
sudo pure-pw mkdb
cd /etc/pure-ftpd/conf
sudo echo 'no' > PAMAuthentication
sudo echo 'no' > UnixAuthentication
sudo echo '/etc/pure-ftpd/pureftpd.pdb' > PureDB
sudo ln -s ../conf/PureDB /etc/pure-ftpd/auth/50pure
Restart the apache
sudo service apache2 restart
service pure-ftpd restart