Pureftpd + Mysql

yum install -y mysql mysql-server
wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.22.tar.gz
tar zxvf pure-ftpd-1.0.22.tar.gz
cd pure-ftpd-1.0.22
./configure \
--prefix=/usr/local/pureftpd \
--with-probe-random-dev  \
--with-paranoidmsg \
--with-altlog \
--with-puredb \
--with-extauth \
--with-pam \
--with-cookie \
--with-throttling \
--with-ratios  \
--with-quotas \
--with-ftpwho \
--with-largefile \
--with-welcomemsg  \
--with-uploadscript \
--with-virtualhosts \
--with-diraliases \
--with-virtualchroot \
--with-peruserlimits \
--with-language=simplified-chinese \
--with-mysql \
--with-tls \
#如遇到 configure: error: libmysqlclient is needed for MySQL support 的话就 cp /usr/lib/mysql/libmysqlclient.sq /usr/lib/
make install
mkdir –pv /usr/local/pureftpd/etc
cp pureftpd-mysql.conf /usr/local/pureftpd/etc
cp configuration-file/pure-config.pl /usr/local/pureftpd/sbin/
cp configuration-file/pure-ftpd.conf /usr/local/pureftpd/etc/
chmod 755 /usr/local/pureftpd/sbin/pure-config.pl
cd contrib
cp redhat.init /etc/init.d/pureftpd
chmod u+x /etc/init.d/pureftpd
chkconfig --add pureftpd
chkconfig pureftpd on
vi /etc/init.d/pureftpd #修改其相关默认路径到 /usr/local/pureftpd/
wget http://machiel.generaal.net/files/pureftpd/ftp_v2.1.tar.gz
tar zxvf ftp_v2.1.tar.gz
#为其配置web访问,运行 install.php,按提示操作

Pureftp web端管理软件 ftp_v2.1.tar.gz

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.