FTP service Proftpd + mysql + quota (1)

Source: Internet
Author: User

 

Figure-ProFTPD

1. Download related software

Download 1.1Proftpd

Download 1.2MySQL

1.3 download proftpd-mod-QuotaTab

2 Installation

2.1 decompress proftpd-1.2.9rc1.tar.gz

2.2 decompress proftpd-mod-quotatab-1.2.10.tar.gz

2.3 install MySQL

2.4 compile and install proftpd and proftpd-mod-quotatab

3 Configuration

3.1 configure the proftpd. conf file

3.1.1 set the disk quota

3.1.2 database information used by the disk quota Module

3.1.3 configure the FTP user as the MySQL database authentication method

4. Create FTP system users and groups

5. Create an FTP user authentication table

6. Create a disk quota data table

7. Data Table Initialization

8. Run proftpd

9 configure proftpd to execute the script

10 FAQ

11 other problems

1. Download related software

1.1 download proftpd

Download To The proftpd-1.2.9rc1 for Linux:

Http://www.proftpd.org/download.html

The above address is a list of FTP download sites. select one.

1.2 download MySQL

MySQL can go to the http://www.mysql.com to download, generally every Linux release has been installed by default MySQL, you can use the following command to view:

Rpm-qa | grep MySQL

If you do not have one, find and install it on your Linux installation CD. Generally, it will be started automatically after installation. You can view the following command:

Ps-ef | grep mysql

If you see the corresponding process, it indicates that MySQL is running; otherwise, start it on your own:

/Etc/rc. d/init. d/mysql start

1.3 download proftpd-mod-quotatab

Below is the proftpd-mod-quotatab:

Http://www.castaglia.org/proftpd/modules/proftpd-mod-quotatab-1.2.10.tar.gz

2 Installation

2.1 decompress proftpd-1.2.9rc1.tar.gz

Set the file proftpd-1.2.9rc1.tar.gz to the/root directory:

Tar-xzvf proftpd-1.2.9rc1.tar.gz

2.2 decompress proftpd-mod-quotatab-1.2.10.tar.gz

Tar-xzvf proftpd-mod-quotatab-1.2.10.tar.gz

2.3 install MySQL

Assume that the rpm package name for MySQL is MySQL-3.23.56-i386.rpm

Rpm-ivh MySQL-3.23.56-i386.rpm

2.4 compile and install proftpd and proftpd-mod-quotatab

First, copy all files in the extracted proftpd-mod-quotatab directory to the modules directory in the extracted proftpd directory, go to the contrib directory and edit the mod_ SQL _mysql.c file:

Vi mod_ SQL _mysql.c

Find # include Change mysql. h to the path of the file in your system, for example,/usr/include/mysql. h.

Run the following command in the extracted proftpd directory:

. /Configure -- prefix =/usr/local/proftpd -- with-modules = mod_ SQL: mod_ SQL _mysql: mod_quotatab: mod_quotatab_ SQL -- with-supported des =/usr/include/mysql -- with-libraries =/usr/lib/mysql

Note that you should find the corresponding include and lib directories for MySQL based on your Linux system. The paths in the above example are default for most Linux systems. If your MySQL is compiled and installed by source code, the two directories are generally in the installation path.

If configure is correct, make; make install.

Make

Make install

After completion, a proftpd directory will be generated under the/usr/local directory:

Cd/usr/local/proftpd

Ls will see the bin etc man sbin var five directories. If sbin/proftpd is executed, the proftpd service will be started. But the system users are still using it. Please continue to see the following ......


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.