PureftPD + MySQL + Pureftpd

xiaoxiao2021-03-06  60

I have been with my RH9 in these days, I have encountered a lot of difficulties in installing Pureft MySQL. Today, I finally let PureftPD work. Therefore, I will write down this note. When you are water, you will discuss Linux my email: IAMROOT @ 21cn.com Declaration: 1: I am Linux newbie, I don't know much about a lot of basic things, so if there is wrong in the text, please bear with me, please point out two: In the installation process, I will refer to a lot of online Excellent articles, gave me a big help, express thanks to these seniors.

Three: I finally talked about how to set file permissions in PureftPD, and the friend is a good way to set permissions in PureftPD. Please use the method I feel a stupid. ,;) The body is the "Pureft MySQL Quota Pureft_php_manager instance installation" of the NICOSOFT brother ", first: First of all, you have to install a lot of articles on this step in this step, I also I don't say it. 2: Install Pure ftpd 1.0.16a #tar pure-ftpd-1.0.16a.tar.gz #cd pure-ftpd-1.0.16a #. / Configure / --prefix = / usr / local / pureftpd / --with-mysql = / server / mysql / --------- >> My MySQL installed in / server / mysql / --with-pured / ---------- >> This is not forgotten, I am because I forgot this, the result is a lot of time --with-paradomoidmsg / --With-shadow / --with-welcomemsg / --with-uploadscript / --with-quotas / WITH-COOKIE / --WITH-PAM / --WITH-VIRTUALHOSTS / --WITH-VIRTUALROOT / --WITH-DIRTUALROOT / --WITH-DIRALIAS / --WITH-SYSQUOTAS / --WITH-RATIOS / --WITH-FTPWHO / --WITH- THROTTLING / --WITH-LANGUAGE = Simplified-Chinese --------------- >> Socket session shows the language of the information displayed. Default is English, Simplified-Chinese Simplified Chinese, Traditional- Chinese Big5 Traditional Chinese #make #make check #make install #cd configuration-file #chmod u x pure-config.pl #cp pure-config.pl / usr / local / sbin / #cp pure-ftpd.conf / usr / local / etc / # CD / usr / local / pureft #mkdir etc ---------------- >> After I installed, there is no ETC directory below / usr / local / pureftpd directory, I have established it myself. one will be used later point, pureftpd complete the three basic installation: installation pureftpd_php_manager #unzip pureftpd_php_manager.zip #cd pureftpd_php_manager #mv pureftpd-mysql.conf.sample /usr/local/etc/pureftpd-mysql.conf #cd .. # CP -R pureftpd_php_manager / www / robY / pureft_php_manager --------- >> / www / robY / is my apache documentroot 4: Jian Library #Mysql -p MySQL> CREATE DATABASE PUREFTPD; MYSQL> USE PureftPD; MySQL> 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; OK has been established, let's create an account mysql> grant all on ON Pureftpd. * to pureftpd @ localhost identified by '123456'; ok I built a account for pureftPD password 123456 5: Editing 1. First let's edit / www/pureftpd_php_manager/pureftp.config.php I only say the most critical Several $ pureftp_config_file = '/usr/local/etc/pureftpd-mysql.conf'; $ ftp_who = "/ usr / local / sbin / pure-ftpwho"; other temporary notctories 2. Let's edit the most important files /us/local/etc/pure-ftpd.conf Here I only change the most important several, please introduce the reference information mentioned in the text, there will be a detailed introduction After all, we need it now now. PureftPD works mysqlconfigfile /usr/local/pureftpd/etc/pureftpd-mysql.conf pured / usr / local / pureftPD / E Tc / pureftpd.pdb 3. Let's edit /usr/local/etc/pureftpd-mysql.conf mysqluser pureft mySQLPassword 123456 MySQLDATABASE PUREFTPD key is the top three in this six: re-system adds a user group, for the back Virtual- User preparing #groupadd ftpusers #useradd ftpusers -g ftpusers so we create an FTPUsers group and a ftpusers user seven: add users #CD / usr / local / pureftpd / bin #. / Pure-pw useradd user1 through pure-pw -u ftpusers -d / home / ftpusers ok This is the FTP account User1 to create now as long as you start the pureftPD, you can access the FTP through the account USER1. The main directory I use it here is / home / ftpusers 8: Start # / usr /local/sbin/pure-config.pl/usr/local/etc/pure-ftpd.conf is now available in the account established in Seven and Nine to access the FTP Nine:

转载请注明原文地址:https://www.9cbs.com/read-119203.html

New Post(0)