1. 安装
sudo aptitude install proftpd proftpd-mysql
2. 配置
/etc/proftpd/proftpd.conf
把
Include /etc/proftpd/sql.conf
前面的注释去掉
然后修改/etc/proftpd/sql.conf,我的相关配置如下:
SQLBackend mysql
SQLEngine on
SQLAuthenticate on
SQLAuthTypes Plaintext Crypt
SQLConnectInfo ftp@localhost proftp abcde
SQLUserInfo ftpuser userid passwd uid gid homedir shell
SQLGroupInfo ftpgroup groupname gid members
3. 创建mysql库
此处请参照Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Ubuntu 8.04 LTS
4. restart proftpd
sudo /etc/init.d/proftpd restart
发表回复