This article guides you how to install Pure-FTPd on CentOS 6 and how to configure and use it so you can access your server via ftp connection using your favorite ftp client (e.g:FileZilla).
You better firstly set up LAMP on this server.
Login to your server via SSH and add the repo:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
Then:
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
Now:
cd /tmp wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
Next update Yum:
yum update
Each time yum asks you to confirm, simply type Y then hit Enter.
Now Installing Pure-FTPd on CentOS:
yum install pure-ftpd
Go to Pure-FTPd config folder:
cd /etc/pure-ftpd/
Next, edit the config file:
nano -w pure-ftpd.conf
- Once editor appear,Look for #UnixAuthentication and uncomment that line:
- Then change No in VerboseLog to yes.
- Uncomment the PureDB line
- Uncomment the CreateHomeDir line
- Create ftp user
Finally, save Pure-FTPD user database:
pure-pw mkdb
Once you done all configuration, Start service and enable the service to start on boot.
service pure-ftpd restart chkconfig pure-ftpd on
Use your favorite FTP client to connect.