LAMP + pureftp application in the Network

Source: Internet
Author: User

Applications in the Network

Introduction

Is an application-layer server that implements resource sharing, such as uploading and downloading resources. Ftpftp2121ftp Local Account: added to the local account and stored in files. It is extremely insecure and easy to capture packets when the local account is logged on to the server.

Ftpanonymousftp Working Mode

2: Passive Mode

1: pureftp supports the background management interface. you can log on to the background management interface through http to add or delete users to the ftp server. Users are added to the ftpuser database where mysqlserver stores pureftp data.

Currently, the popular website architecture on the internet is) apachephp/perl/phthon. The software package used to build the environment is the package that comes with the system, which is easy to install and easy to build.

Mysqlmysql-server-5.0.77-3.el5.i386.rpm

PhpPhpphp-mysql-5.1.6-23.2.el5_3.i386.rpm

Yum

650) this. width = 650; "title =" \ "image 4.png \" "src =" % 5C "alt =" 121135837.png \ ""/> installation is complete

For security purposes, httpdmysqld needs to set a password for the user account

650) this. width = 650; "title =" \ "image 6.png \" "src =" % 5C "alt =" 121205584.png \ "/>

650) this. width = 650; "title =" \ "image 8.png \" "src =" % 5C "alt =" 121221227.png \ ""/> Apache, after the Apachephp environment is set up, test whether the connection between and is successful?

Apachephp

How does php test the connection with each other?

Success to test whether it is successful

650) this. width = 650; "title =" \ "13.13.png \" "src =" % 5C "alt =" 121328346.png \ "/>

Mysqld 2, combined with the use of the database, stores the content of the mall page in the database. Place the directory formed after decompression in the home directory of the site on the server to access the mall.

Step 2 check the environment

650) this. width = 650; "title =" \ "image 17.png \" "src =" % 5C "alt =" 121427674.png \ ""/> refresh the page again

650) this. width = 650; "title =" \ "image 18.png \" "src =" % 5C "alt =" 121448479.png \ ""/>

You can register a member

Esc_goods

650) this. width = 650; "title =" \ "image 23.png \" "src =" % 5C "alt =" 121625332.png \ ""/> View the table

650) this. width = 650; "title =" \ "image 23.png \" "src =" % 5C "alt =" 124514589.png \ "/>

650) this. width = 650; "title =" \ "image 24.png \" "src =" % 5C "alt =" 124527910.png \ ""/>

You can achieve a simple, stable, convenient and beautiful online shop.

Pureftp. sql1mysqlpureftpftpuserpureftppureftp. sqlftpusers

There are tables in the database

650) this. width = 650; "title =" \ "image 28.png \" "src =" % 5C "alt =" 124610126.png \ "/>

Pureftp1./configure \\

-- With-mysql \ maps the virtual users in the database to the files stored by local users

-- With-welcomemsg \ -- with-cookie \ supports virtual directories

-- With-diraliases \ quota supported

-- With-sysquotas \ support rate

Supported domain values

Cdconfiguration-file/

3, add pure-config.plcppure-config.pl/usr/local/Pure-FTPd/sbin/

Configuration-file copy to cpconfiguration-file/pure-ftpd.conf/usr/local/pureftpd/etc/

Change the following two rows:

19 $ fullpath/usr/local/pureftpd/etc/pure-ftpd.conf -- daemonize

Chkconfig -- addpureftpd

Configuration Modification configuration file

ChrootEveryoneyes Anonymous Logon not allowed

20.1007, # chmod-R777/ftproot # chownvirtualftp: virtualftp/ftproot

PureadminPureadminpureftpmysqlftpusers unzip the source code to the Home Directory of the server site $ cfg ['dbhost'] = 'localhost'; // mysqlhost

Authorize this user in the database script to log on to the server to manage the database.

$ Cfg ['page'] = 15;

Encryption for passwords of common users

$ Cfg ['gid'] = 1000; // gid

'Directory of the added user's home directory $ cfg ['qs'] = 100; // quotasize

$ Cfg ['dl '] = 200; // DLBandwidth $ cfg ['Dr'] = 0; // DLRatio

When httppureftpadminuser creates a common user, the home directory of the common user is automatically created under the directory.

650) this. width = 650; "title =" \ "image 30.png \" "src =" % 5C "alt =" 124637305.png \ "/>

Ftp/ftprootpureftpmysqlpureftpd-mysql.conf modify pure-ftp.conf that specifies the location of the interface file

650) this. width = 650; "title =" \ "image 32.png \" "src =" % 5C "alt =" 124700603.png \ "/>

MYSQLPasswordtmppasswd

<1> # vi/usr/local/pureftpd/etc/pure-ftpd.conf <1>

<2> # pure-pwuseradduser1-u <2> 2> ftpvirtual description:

After the steps are completed, the user will store the ing between the virtual user and the System user in the database file.

650) this. width = 650; "title =" \ "image 34.png \" "src =" % 5C "alt =" 124725667.png \ ""/>

Note: in the future, mkdb should be executed every time a user database is added or modified.

Ftpftproot

This article is from "My blog" blog, please be sure to keep this source http://7615912.blog.51cto.com/7605912/1300503

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.