Figure-ProFTPD
In the past few days, the company has finally had a holiday and can finally settle down and learn more.Proftp+ Mysql + quota.
Before installing proftp, you must first make a job. If your mysql is compiled by yourself, you must first Modify/etc/ld. so. conf; otherwise, an error will be reported when you run proftp later.
Vi/etc/ld. so. conf
Add the following line:
/Usr/local/mysql/lib/mysql
Note: If you have different installation paths for mysql, enter the corresponding path. For mysql compilation and installation, see Linux + Apache + Mysql + PHP typical configuration.
1. Download related software
Wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.2.9.tar.gz
Download the latest proftp version 1.2.9
Wget http://www.castaglia.org/proftpd/modules/proftpd-mod-quotatab-1.2.11.tar.gz
This is the disk quota module that works with proftp.
2. Decompress and compile
Tar zvxf proftpd-1.2.9.tar.gz
Tar zvxf proftpd-mod-quotatab-1.2.11.tar.gz
Cp mod_quotatab/*. c proftpd-1.2.9/contrib/
Cp mod_quotatab/*. h proftpd-1.2.9/contrib/
Vi proftpd-1.2.9/contrib/mod_ SQL _mysql.c
Find the line # include and change mysql. h to the path of the file in your system, such as/usr/local/mysql/include/mysql. h.
Compile:
./Configure \
-- Prefix =/usr/local/proftpd \
-- With-modules = mod_ SQL: mod_ SQL _mysql: mod_quotatab \
: Mod_quotatab_ SQL: mod_ratio \
-- With-Primary des =/usr/local/mysql/include/mysql \
-- With-libraries =/usr/local/mysql/lib/mysql
Make
Make install
Here we have added support for mysql, quota, ratio, and other modules during compilation. I will talk about their applications later.
OK. Now we can start proftp, as long
/Usr/local/proftpd/sbin/proftpd
Use your ftp client to test the following and you should be able to log on normally, including anonymous and linux user names.
In fact, the default proftp is more than enough for daily server management. You still need to modify it, that is, the default proftp configuration file does not support ftp resume, so we only need
Vi/usr/local/proftpd/etc/proftpd. conf
Add the following two lines
AllowRetrieveRestart on
AllowStoreRestart on
Restart the following proftp to resume the file.
Create a proftpd script
As long as the source code directory in proftp
Proftpd-1.2.9/contrib/dist/rpm/proftpd. init. d/etc/rc. d/init. d/proftpd
Remember to modify the proftpd file. Generally, You need to modify the actual path of proftpd.
Chmod 755/etc/rc. d/init. d/proftpd
OK
You can use this tutorial to start, stop, and restart proftp later.
Well, let's talk about this today, and talk about some basic proftp configurations tomorrow :)
Based on the introduction in this article, we learned how to install proftp. Next we will talk about basic configuration!
- ProFTPD malformed STAT Command Parameter Remote DoS Defect
- Proftpd supports sfv Verification
- FTP service Proftpd + mysql + quota
- What do MySQL users need to authenticate ProFTPD?
- Use of Limit in Proftpd
- ProFTPD Server Security Policy
- Study Notes for Proftpd prawns