In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use pureftpd in slackware10.1 to set up ftp server with web management", the explanation content in the article is simple and clear, easy to learn and understand, please follow the idea of small series slowly in-depth, together to study and learn "how to use pureftpd in slackware10.1 to set up ftp server with web management" bar!
Pureftpd is a fast, high-quality, full-featured ftp server, the most important thing is to support setting the client default encoding, Pureftpd is very powerful and very easy to use.
The requested URL/etc/purefpd-mysql.conf was not found on this server.
You can clean the puftpd-mysql.con file and add the following content
# If you want to use the Socket connect methode comment out the
# Lines with MMYSQLServer and MYSQLPort.
# If you want to use the Port methode comment out the MYSQLSocket line
#MYSQLSocket /var/lib/mysql/mysql.sock
MYSQLServer localhost
MYSQLPort 3306
MYSQLUser xxxxxxxxxx
MYSQLPassword xxxxxxxxxx
MYSQLDatabase pureftpd
MYSQLCrypt cleartext
MYSQLGetPW SELECT Password FROM ftpd WHERE User="\L" AND status="1″ AND (ipaccess = "*" OR ipaccess LIKE "\R")
MYSQLGetUID SELECT Uid FROM ftpd WHERE User="\L" AND status="1″ AND (ipaccess = "*" OR ipaccess LIKE "\R")
MYSQLGetGID SELECT Gid FROM ftpd WHERE User="\L"AND status="1″ AND (ipaccess = "*" OR ipaccess LIKE "\R")
MYSQLGetDir SELECT Dir FROM ftpd WHERE User="\L"AND status="1″ AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetBandwidthUL SELECT ULBandwidth FROM ftpd WHERE User="\L"AND status="1″ AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetBandwidthDL SELECT DLBandwidth FROM ftpd WHERE User="\L"AND status="1″ AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetQTASZ SELECT QuotaSize FROM ftpd WHERE User="\L"AND status="1″ AND (ipaccess = "*" OR ipaccess LIKE "\R")
MySQLGetQTAFS SELECT QuotaFiles FROM ftpd WHERE User="\L"AND status="1″ AND (ipaccess = "*" OR ipaccess LIKE "\R")
In fact, the contents of this file are the contents of purefpd-mysql.conf.sample file after extracting pureftpd_php_manager.zip
Second, establish the database and table, use the mysql command to enter the database, and then execute the following command
create database pureftpd;
use pureftpd;
DROP TABLE IF EXISTS ftpd;
CREATE TABLE ftpd (
User varchar(16) NOT NULL default ‘’,
status enum(’0′,’1′) NOT NULL default ‘0′,
Password varchar(64) NOT NULL default ‘’,
Uid varchar(11) NOT NULL default ‘-1′,
Gid varchar(11) NOT NULL default ‘-1′,
Dir varchar(128) NOT NULL default ‘’,
ULBandwidth smallint(5) NOT NULL default ‘0′,
DLBandwidth smallint(5) NOT NULL default ‘0′,
comment tinytext NOT NULL,
ipaccess varchar(15) NOT NULL default ‘*’,
QuotaSize smallint(5) NOT NULL default ‘0′,
QuotaFiles int(11) NOT NULL default 0,
PRIMARY KEY (User),
UNIQUE KEY User (User)
) TYPE="MyISAM;
III. Modify file permissions
chmod 4711 /usr/local/pureftpd/sbin/pure-ftpwho
4. Create users and groups by using the following commands
groupadd virtualftp
useradd virtualftp -g virtualftp
usermod /home/ftp -d virtualftp
chown virtualftp:virtualftp /home/ftp
5. Installation of WEB Management
1. Move the downloaded pureftpd_php_manager.zip to/var/www/htdocs with the following command:
mkdir /var/www/htdocs/ftp
mv pureftpd_php_manager.zip /var/www/htdocs/ftp/
The requested URL/ftp/pureftp.conf was not found on this server.
Modify the following statement
$PUREFTP_CONFIG_FILE = ‘/etc/pureftpd-mysql.conf’;
Modify it to look like this
$PUREFTP_CONFIG_FILE = ‘/usr/local/pureftpd/etc/pureftpd-mysql.conf’;
Modify the following statement
$FTP_WHO = "/usr/local/sbin/pure-ftpwho";
Modify it to look like this
$FTP_WHO = "/usr/local/pureftpd/sbin/pure-ftpwho";
Modify the following two statements
$DefaultUid = "wwwrun"; # Default User ID ( must be a real user acct )
$DefaultGid = "wwwadm"; # Default Group ID ( must be a real group acct )
Amend as follows
$DefaultUid = "virtualftp"; # Default User ID ( must be a real user acct )
$DefaultGid = "virtualftp"; # Default Group ID ( must be a real group acct )
Start FTP Server
1. Start the server with the following command
1. Start the server with the following command
/usr/local/pureftpd/etc/pure-config.pl /usr/local/pureftpd/etc/pure-ftpd.conf
2. Start FTP server with system
Just add the above startup command to the/etc/rc.d/rc.local file to start the FTP server with the system.
Add users via WEB interface
Enter the server address in the browser, for example http://192.168.0.1/ftp/index.php(because pureftpd_php_manager is placed here)
The following interface will then appear
Fig. 1
Click ADD USER to add a user, as shown below
Fig. 2
After adding the relevant information, click Save below.
Okay, all configured. Try your server!
Thank you for reading, the above is "how to use pureftpd in slackware10.1 to set up ftp server with web management" content, after learning this article, I believe we have a deeper understanding of how to use pureftpd in slackware10.1 to set up ftp server with web management, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.