Comments on Virtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Management) On CentOS 7.0

This document describes how to install a PureFTPd server that uses virtual users from a MySQL database instead of real system users. This is much more performant and allows to have thousands of ftp users on a single machine. In addition to that I will show the use of quota and upload/download bandwidth limits with this setup. Passwords will be stored encrypted as MD5 strings in the database.

7 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Richard

Right at the start I get this error:

rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/7/x86_64/e/epel-release-7-2.noarch.rpm

Retrieving http://ftp.riken.jp/Linux/fedora/epel/7/x86_64/e/epel-release-7-2.noarch.rpm

curl: (22) The requested URL returned error: 404 Not Found

error: skipping http://ftp.riken.jp/Linux/fedora/epel/7/x86_64/e/epel-release-7-2.noarch.rpm - transfer failed

Thoughts?

 

By: till

There is a new epel version available, use this command instead:

 

rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/7/x86_64/e/epel-release-7-5.noarch.rpm 

By: Vojtas

Hi,is it also possible to integrate possibility to set some users as read only?

By: hosting researcher

thank you very much. information of this article is very useful for web hosting..

By: Krybo

Hi, small correct command...

systemctl enable pure-ftpd.service

systemctl start pure-ftpd.service

By: Baterdene

I've problem with creating /home/ftpuserdir  when I created user on mariadb and and connected using FTP client. But /home/ftpuser directory didn't created.  I edited purftpd.conf and uncommented Create home directory  to YES.  But it's just connects  / directory.  see below log

220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------

220-You are user number 2 of 50 allowed.

220-Local time is now 22:58. Server port: 21.

220-IPv6 connections are also welcome on this server.

220 You will be disconnected after 15 minutes of inactivity.

200 OK, UTF-8 enabled

User (192.168.1.233:(none)): baterdene

331 User ftpuser OK. Password required

Password:

230 OK. Current restricted directory is /

By: Aadeel

This is the most brilliant approach, thank you soooo much. god bless you.