这几天一直在配自己的FC6,其它的都差不多了,现在就差FTP部分.
一. 首先你要安装好mysql, apache, php
这一步网上有大量的文章可以参考,我也就不说了
二. 安装 pure-ftpd-1.0.21
- tar pure-ftpd-1.0.21.tar.gz
- cd pure-ftpd-1.0.21
- ./configure --prefix=/usr/local/pureftpd --with-mysql=/usr/local/mysql --with-puredb --with-paranoidmsg --with-shadow --with-welcomemsg --with-uploadscript --with-quotas --with-cookie --with-virtualhosts --with-virtualroot --with-diraliases --with-sysquotas --with-ratios --with-ftpwho --with-throttling --with-language=simplified-chinese
--with-puredb
这个可别忘记了,我就是因为忘记了这个,结果浪费了很多时间
--with-language=simplified-chinese
Socket 会话显示出来的信息的语言.缺省为英语,simplified-chinese 简体中文,traditional-chinese BIG5繁体中文
如果显示下面的错误:
引用:
checking for mysql_init in -lmysqlclient... yes
checking whether mysql clients can run... no
configure: error: Your MySQL client libraries aren't properly installed
提示找不到mysql client libraries,处理方法:
--with-mysql=/usr/local/mysql
这儿只需要指向你的mysql的安装路径即可
- make && make check && make install
- cd configuration-file
- chmod u+x pure-config.pl
- cp pure-config.pl /usr/local/sbin/
- cp pure-ftpd.conf /usr/local/etc/
- mkdir /usr/local/pureftpd/etc
安装后,在/usr/local/pureftpd目录下面并没有etc目录,我自己建立了一个,后面会用到
至此,pureftpd安装基本完成
二. 在系统中增加一个用户组
- groupadd ftpusers
- useradd -g ftpusers -s /sbin/nologin ftpusers
这样我们便建立一个ftpusers组和一个ftpusers 用户
三. 通过pureftpd_php_manager来增加用户(软件下载见二楼!)
在浏览器中打开
http://yourip/ftp_admin/install.php
下面就很简单了, 看提示安装!
四. 启动
引用:
/usr/local/sbin/pure-config.pl /usr/local/etc/pure-ftpd.conf
现在可以用前面建立的帐号来访问ftp了!
整个过程就大致如此了,欢迎各位朋友指正!