Ftp server configuration and service 3

Source: Internet
Author: User
Ftp server configuration and service 3-Linux Enterprise Application-Linux server application information. The following is a detailed description. Installation and configuration of webpureftp
Webpureftp is a free software Made in China. It can be used to conveniently manage ftp accounts of the pure-ftpd and mysql structures. I only found a 0.1 version, in this forum, if you need it, you can search for the keyword webpureftp in this forum.
Generate a MYSQL database
Tar zxvf webpureftpd0.1.tar.gz
Cd webpureftp0.1
Edit the pureftp-0.1sql file in the SQL subdirectory. Find "drop table if exists 'Depart _ info';" and enter the following statement before the statement:
Create database pureftp;
USE pureftp;
Run the following command to generate a mysql database:
Mysql-u root-p <SQL/pureftp_0.1. SQL enter the password and the pure-ftpd database is automatically generated.
Generate a pure-ftpd Configuration File
Webpureftp already contains a sample of the Note profile pure-ftpd.conf for pure-ftpd and the profile pureftpd-mysql.conf that connects to the mysql database.
Webpureftp decompressed directory, vi docs/pureftpd-mysql.conf file, modify the following options. Change MYSQLUser network to MYSQLUser root. Find the statement MYSQLPassword 123456 and change it to MYSQLPassword mygoodpwd. This statement is used to set the password for accessing the mysql user. Change MYSQLDatabase network to MYSQLDatabase pureftp. This statement sets pure-ftpd to use mysql database.
Use the following command
Cp docs/pure-ftpd.conf/etc
Cp docs/pureftpd-mysql.conf/etc
Configure webpureftp
In the decompress directory of webpureftp, edit config. inic. php In the config subdirectory.
Find $ default_ftp_root = "/data/ftp" and change it to the actual ftp directory $ default_ftp_root = "/ftproot/". (Note: The/number must be added after the directory .) Find the statement $ obj_db = new db ("localhost", "root", "", "pureftp"); change it to $ obj_db = new db ("localhost", "root ", "mygoodpwd", "pureftp ");
Place the webpureftp directory in the apache home directory. Go to the parent directory of the webpureftp decompression directory and run the following command cp-a webpureftp0.1/var/www/html/webpureftp
Use webpureftp to manage virtual users
After the httpd server is started, use the http: // linux IP Address/webpureftp/index. php to display the authentication page. If the logon interface is successful, the system management and ftp management functions are displayed.
FTP service configuration
Configuring the running parameters of the ftp server is done by modifying the/etc/pure-ftpd.conf file, and pure-ftpd takes effect after each modification.
1. Set whether to lock the user in the user's home directory. ChrootEveryone
2. Set the maximum number of connections simultaneously logged on to the ftp server MaxClientNumber 50
3. Set the maximum number of connections per ip address. MaxClientPerIP 8
4. Set whether only anonymous users are allowed to connect to AnonymousOnly no
5. Set whether anonymous users are allowed to log on to NoAnonymous no.
6. Set the location of the welcome information file FortunesFile/etc/ftpmsg to be created manually.
Note: pure-ftpd not only defines the welcome information for the FTP server, but also defines the welcome information for different users. It only stores the welcome information in the user's home directory named. banner file.
7. Set the user's idle time to exceed the limit. The value of MaxIdleTime is 15 minutes.
8. Set whether anonymous users are allowed to create the AnonymousCanCreateDirs no directory.
9. Set whether to allow the download of the file AntiWarez uploaded by anonymous users yes
10 set the IP address and port bind 192.168.16.177, 21 bound to the FTP server
11 set the bandwidth of anonymous users. The unit of 200 is kB/s.
12. Set whether anonymous users are allowed to upload the file AnonymousCanUpload no
13. Set whether to automatically create the user's main directory CreateHomeDir yes
14. Set the maximum number of concurrent connections for each user. PerUserLimits is the maximum number of connections for normal users and anonymous users before the colon.
Start and Stop the FTP service
/Etc/init. d/pure-ftpd start
/Etc/init. d/pure-ftpd stop
/Etc/init. d/pure-ftpd restart
Run the automatic start or ntsysv command to enable the asterisk (*) before pure-ftpd.
Run/usr/local/pureftpd/sbin/pure-ftpwho on the server to view the user information currently logged on to FTP.



[ This post was last edited by Jack at, September 26 ,.]
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.