Install ISPConfig 3 ProFTPd for Debian
TipsMake.com - For Linux users, ISPConfig 3 is the leading solution in the field of hosting management on open source. It allows managing multiple servers through 1 cpanel control system. If you are using a VPS server with OpenVZ, unfortunately you cannot run the Pureftpd that comes with ISPConfig by default. The following article will show you how to use ProFTPd to replace Pureftpd easily.
Prepare to install
ProFTPd is a powerful and simple FTP server for installation and configuration, used by many servers. However, this tutorial does not include quota because it is not supported in VPS (if you do not want to edit ftp_user_edit.php in ISPConfig 3).
In this illustration we use Debian 5.0 Lenny but it can also be applied to version 6.0. Some other distributions may need some modification.
Note: this process works fine on a clean server and installs ISPConfig 3. If using the current server will need to enter and editting / saving every user created, which may cause some problems.
Setting
First, run the following command independently:
apt-get install proftpd proftpd-mod-mysql
Create Group & User
useradd -u 2001 -s / bin / false -d / bin / null -c "proftpd user" -g ftpgroup ftpuser
Configure the database
Run the following command:
Use dbispconfig
Then run the following query:
'/ sbin / nologin',
ADD `count` INT (11) NOT NULL DEFAULT '0',
ADD `access` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
ADD `modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00';
CREATE TABLE ftp_group (
groupname varchar (16) NOT NULL default '',
gid smallint (6) NOT NULL default '5500',
members varchar (16) NOT NULL default '',
KEY groupname (groupname)
) TYPE = MyISAM COMMENT = 'ProFTP group table';
INSERT INTO `ftp_group` (` groupname`, `gid`,` members`) VALUES
('ftpgroup', 2001, 'ftpuser');
Configure ProFTPd
We will first modify the /usr/local/ispconfig/interface/lib/config.inc.php file:
Find the variable db_password and password note for later.
Edit the file /etc/proftpd/proftpd.conf :
Find to line:
Remove the caption for it to become:
Edit the file /etc/proftpd/sql.conf :
Delete all content in it and replace it with:
# # Proftpd sample configuration for SQL-based authentication. # # (This không phải được sử dụng nếu bạn muốn xác thực PAM-based) # DefaultRoot ~ SQLBackend mysql # The passwords printed MySQL are encrypted using CRYPT SQLAuthTypes Plaintext Crypt SQLAuthenticate users # used to connect to the database # databasename users group database_user user_password SQLConnectInfo dbispconfig @ localhost ispconfig _insertpasswordhere_ # Here we tell ProFTPd the names of the database columns in the "usertable" # we want it to interact with. Đã có các tên với các người dùng trong cơ sở dữ liệu dbUser trong sqp_user username password uid gid dir shell # Here we tell ProFTPd the names of the database columns in the "grouptable" # we want it to interact with. Again các tên với các cùng trong cơ sở dữ liệu SQLGroupInfo ftp_group groupname gid members # set min UID and GID - otherwise these are 999 each SQLMinID 500 # create a directory user on demand if it doesn't exist CreateHome off # Update count every time logs in SQLLog PASS updatecount SQLNamedQuery updatecount UPDATE "count = count + 1, accessed = now () WHERE userid = '% u'" ftpuser # Update modified everytime user uploads or deletes a file SQLLog STOR, DELE modified SQLNamedQuery modified UPDATE, DELE modified SQLNamedQuery modified UPDATE "modified = now () WHERE userid = '% u' "ftpuser RootLogin off RequireValidShell off
Make sure you have changed _insertpasswordhere_ with a password from ISPConfig.
If the MySQL database is on another server, change localhost to represent your MySQL server.
Edit the file /etc/proftpd/modules.conf :
Find to line:
and uncomment it to:
Change the line:
City:
Finally run:
Change ISPConfig 3
Now we need to change some files in ispconfig. Although this is not the best idea because when upgrading to the new version, these changes will disappear. However, in this case, ProFTPD will work better.
Edit the file /usr/local/ispconfig/interface/web/sites/ftp_user_edit.php :
Find the line:
$ gid = $ web ["system_group"];
and replace with:
$ uid = $ userinfo ['uid'];
$ gid = $ userinfo ['gid'];
It is done! Note that if you are logged into the ISPConfig web console, you must log out before changing the registrations on your computer.
You should read it
- Manage servers and databases with detailed utilities in SQL Operations Studio (preview)
- Balancing download of Exchange 2007 SP1 Hub Transport servers with Windows Network Load Balancing (Part 1)
- Microsoft Azure Arc will support OpenShift and Red Hat Enterprise Linux
- Set up ProFTPd with TLS on Ubuntu 11.04
- SaltStack has the most serious vulnerability ever, thousands of servers can be seriously affected
- What is Kubernetes?
- Open multiple Exchange Servers mailboxes with Outlook 2010
- [Theory] What is Proxy Server?
May be interested
- Set up ProFTPd with TLS on Ubuntu 11.04ftp is a popular file transfer protocol used today. however, this protocol gradually becomes less secure because the entire password and data of the file is transmitted as clear text.
- How to Install Debiandebian is an operating system based on the gnu/linux build. the debian operating system, like most other linux distributions, is free and open source. it is a popular operating system for both desktop and server use, spawning several...
- How to set the JAVA_HOME path in Debian 10in this article, we will learn how to install java jdk on the debian operating system and then set the java_home and path variables.
- How to upgrade Debianin every two year period, debian will have no changes. program and feature versions remain the same during this time.
- How to install NVM on Debiannvm stands for node version manager. with nvm, you can manage multiple node.js instances of nodejs and switch between them without uninstalling and reinstalling the node.
- ProFTPD remote code execution vulnerability affects more than 1 million servers worldwidemore than 1 million is the number of proftpd servers that are vulnerable to remote code execution worldwide.
- Notable changes and additions in Debian 11 'Bullseye'debian is one of the oldest, most stable and flexible linux distributions in the free and open source world.
- Do not destroy the Debian system!debian is a powerful and reliable system, but new users are still very easy to ruin the system, by not doing everything the way debian does.
- Debian 10 Buster, New features in Debian 10 Busterdebian 10 buster has been released. let's explore the new features in debian 10 buster through the following article!
- How to Restart Debian Using the Command Linethe linux operating system can run without a reboot not only for a few weeks but for years. but sometimes there's a good reason to reboot your linux system after a week or two, depending on the situation.