Install pure-ftpdwithMySQL $ sudoapt-getinstallpure-ftpd-mysql to switch to the webpage directory $ cd/var/www to download the PureFTPd webpage management system (the system must support PHP) $ wgethttp: // machiel.generaal.net/files/pureftpd/ftp_v2.1.tar.gz (available to http://machiel.gen
Install pure-ftpd with MySQL
$ Sudo apt-get install pure-ftpd-mysql
Switch to the webpage directory
$ Cd/var/www
Download the PureFTPd Web Page Management System (the system must support PHP)
$ Wget http://machiel.generaal.net/files/pureftpd/ftp_v2.1.tar.gz
(You can go to http://machiel.generaal.net/to query a new version of the Management System)
Decompress the downloaded package
$ Tar zxvf ftp_v2.1.tar.gz
Open the browser and enter the URL:
Http: // your ip/ftp/install. php
Then follow the prompts on the webpage to complete each step in sequence.
The system will prompt you to modify the mysql. conf file.
Switch to the directory where the file is located
$ Cd/etc/pure-ftpd/db
Back up the original profile
$ Sudo mv mysql. conf mysql. conf. bak
Copy all the content prompted for modification on Step 6 of the Management System webpage.
Create the mysql. conf file and paste the copied content
$ Sudo vi mysql. conf
Restart the Pure-FTPd server
$ Sudo pure-ftpd-control restart
Enable webpage editing for ftp users
Http: // your ip/ftp
After login, you can manage ftp users
PS1.
Error Checking if config. php is writable Failed!
Solution => change config. php In the ftp directory to writable.
PS2.
Error Checking if PHP Extension MYSQL is enabled Failed!
Solution => confirm that the php5-mysql suite is installed
PS3.
To avoid future hacker attacks, delete the install. php file under the ftp directory after setting.