licess 发表于 2010-5-12 14:16:01

Debian5.0 + LNMP0.4下安装pureftpd

VPS换成Linode后,采用了Debian5.0+LNMP0.4的环境配置,但是LNMP的包中没有安装ftp服务,这就需要自己装一个了,LNMP包中有一个pureftpd.sh脚本,是用来安装pureftpd的,不幸的是,该脚本在在CentOS下能完美的安装pureftpd,但是在Debian下跑完后并不能成功安装。又是在网上一顿狂搜,花了好一段事件才终于搞定了这个pureftpd,下面是我自己的安装步骤(未重复验证),仅作参考:

一,编译安装pureftpdcd /root/lnmp0.4/
apt-get install unzip
wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.29.tar.gz
tar zvxf pure-ftpd-1.0.29.tar.gz
cd pure-ftpd-1.0.29
cp /usr/local/mysql/lib/mysql/*.* /usr/lib/
./configure --prefix=/usr/local/pureftpd CFLAGS=-O2 --with-mysql=/usr/local/mysql --with-quotas --with-cookie --with-virtualhosts --with-virtualroot --with-diraliases --with-sysquotas --with-ratios --with-altlog --with-paranoidmsg --with-shadow --with-welcomemsg--with-throttling --with-uploadscript --with-language=simplified-chinese
make
make check
make install
mkdir /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 +x /usr/local/pureftpd/sbin/pure-config.pl到此,pureftpd编译完毕,接下来是配置,很幸运的是,pureftpd的配置已经可以WEB界面配置了。

二,配置pureftpdunzip User_manager_for-PureFTPd_v2.1_CN.zip
mv ftp /home/wwwroot/
chmod 777 -R /home/wwwroot/ftp/
chown www -R /home/wwwroot/ftp/访问http://yourdomain/ftp/install.php 接下来参考军哥的《lnmp之pureftpd管理面板安装教程》 如果上传的时候遇到权限问题,比如你的网站是从别的服务器打包wget过来,然后用root解压的,可以
chmod 755 -R /home/wwwroot/
chown www -R /home/wwwroot/
页: [1]
查看完整版本: Debian5.0 + LNMP0.4下安装pureftpd