手册:http://mdjhaitao.blog.163.com/blog/static/10143121200743144646883/
http://xieyingwu.blog.sohu.com/33042307.html
编译时出现mysql lib无法找到
--------------编译安装pure-ftpd出现configure: error: Your MySQL ....
编译安装pure-ftpd出现configure: error: Your MySQL client libraries aren't properly installed错误
解决办法
执行以下命令装mysql/lib/mysql/下所有文件复制到/usr/lib/下就可以了.
cp /usr/local/mysql/lib/mysql/*.* /usr/lib/
--------------------------
无法上传,修改文件夹的权限即可
./configure --prefix=/app/ftp/pureftpd --with-ftpwho --with-language=simplified-chinese --with-throttling --with-virtualchroot --with-mysql=/usr/local/mysql
useradd pureftpusers -u 2000 -g pureftpusers -d /app/ftp/ftproot -s /sbin/nologin
INSERT INTO `users` VALUES (1, 'xieyingwu', encrypt('xieyingwu'), '2000', '2000', '/app/ftp/ftproot/xieyingwu', 0, 0, 0, 0, 0, 0, '','*', '1', '2005-04-04 09:20:33', '2005-04-04 09:20:33');
/app/ftp/pureftpd/bin/pure-config.pl /app/ftp/pureftpd/etc/pure-ftpd.conf
/app/ftp/pureftpd/sbin/pure-ftpd -S 21 -c 20 -C 1 -E -u 100 -R -t:800 -a 0
chown pureftpusers /app/ftp/ftproot
chgrp pureftpusers /app/ftp/ftproot
chmod 500 /app/ftp/ftproot
chmod 700 /app/ftp/ftproot
/app/ftp/pureftpd/bin/pure-config.pl /app/ftp/pureftpd/etc/pure-ftpd.conf
cp pure-config.pl /app/ftp/pureftpd/bin
cp pure-ftpd.conf /app/ftp/pureftpd/etc
cp pureftpd* /app/ftp/pureftpd/etc/
mkdir -m 777 /app/ftp/pureftpd/etc
./configure /
--prefix=/app/ftp/pureftpd /
--with-mysql=/usr/local/mysql /
--with-shadow /
--with-pam /
--with-paranoidmsg /
--with-welcomemsg /
--with-uploadscript/
--with-cookie /
--with-virtualchroot /
--with-virtualhosts /
--with-virtualroot /
--with-diraliases /
--with-quotas /
--with-ratios /
--with-ftpwho /
--with-throttling /
--with-language=simplified-chinese