一、安装及配置
推荐下载
wget http://fossies.org/unix/misc/pure-ftpd-1.0.34.tar.gz
下载phpweb管理组件
wget http://www.yiyou.org/docs/PureAdmin_03_php/PureAdmin-0.3.tar.gz
MySQL.conf
解压编译及安装&常见问题排错
tar zxvf pure-ftpd-1.0.34.tar.gz
cd pure-ftpd-1.0.34/
./configure --prefix=/usr/local/pureftpd --with-cookie --with-language=simplified-chinese --with-puredb --with-mysql --with-tls --with-virtualchroot
…………………………………………………………………………………………………
checking for mysql_init in -lmysqlclient... no
configure: error: libmysqlclient is needed for MySQL support
编译时候若出现上面的提示,则安装mysql和mysql-devel RPM包,这里为了简便,直接使用rpm方式解决
[root@server1 pure-ftpd-1.0.29]# yum -y install mysql mysql-devel
若编译方式安装mysql数据库,前面的编译选项可以改成"--with-mysql=/usr/local/mysql",并将/usr/local/mysql目录下的头文件和开发库文件加入ld.so.conf,该文件维护着系统的动态链接库