Starting pure-ftpd: 421 Configuration error: Invalid SQL configuration file

对Pure-FTPd进行编译升级时候发现加载mysql配置错误,后来阅读Pure-FTPd官方文档发现编译时候不能丢一个比较关键的参数–with-everything,如果不加上此参数,mysql配置认证方式无法正常加载,启动ftp会提示以下错误:

Starting pure-ftpd: 421 Configuration error: Invalid SQL configuration file:

官方参考地址:https://download.pureftpd.org/pub/pure-ftpd/doc/README.MySQL

顺便附注一下编译安装Pure-FTPd的操作:

下载:

ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/
wget ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.46.tar.bz2

解压:
tar jxvf pure-ftpd-1.0.46.tar.bz2

编译:
./configure –prefix=/www/wdlinux/pureftpd-1.0.46 –with-tls –with-mysql –sysconfdir=/www/wdlinux/etc –with-language=simplified-chinese –with-everything

make && make install