LNMP install PUREFTPD to open the FTP service and modify the FTP port _linux

Source: Internet
Author: User
Tags port number

Brother's LNMP Environment Pack 1.2 has built-in PUREFTPD installer.

Install PUREFTPD

After entering the LNMP unpacked directory, execute:./pureftpd.sh will display the following figure:


Press the prompt to enter the current MySQL root password, enter the completion, carriage return confirmation, will prompt the following information:


This step is to set the FTP user admin backend login password. Enter Complete carriage return confirmation

Because the PHP admin need to connect the database, so will create an FTP user on MySQL, here is the user's password set. Input complete, carriage return confirmation.

Carriage return shows "Press any key to start install pure-ftpd ..." and then return to confirm to start the installation.

Add an FTP user

After installation, in the browser input: http://your ip/ftp/with the FTP user just set up admin backend login password login. After landing the interface is as follows:

Enter the account and password, uid and GID Select www, and then select the user can access the home directory, set the bandwidth, save it.

PUREFTPD installed, you can remove this user with a ftpuser_1 user.

Precautions:

1. A user may not be able to find the location of the selection directory, select the directory is to click the "home directory" the most behind a circle with a triangular icon, point will come out.

2. If prompted unable to read the directory, login timeout or reported 502 Bad Gateway error:

LNMP 1.1 and earlier version, modify/usr/local/php/etc/php.ini find Open_basedir, there are several/home/wwwroot/default lines in front of add;
LNMP 1.2 of the words in the/home/wwwroot/default/.user.ini set, the contents of the delete, after a few minutes in effect.
The. User.ini file cannot be modified directly, and the hidden file may not be visible under WINSCP, and it is recommended that you modify it using the Vim editor or the Nano Editor.
Need to perform before modification: Chattr-i/home/wwwroot/default/.user.ini
After the modification is complete, execute again: chattr +i/home/wwwroot/default/.user.ini
If it is Lnmpa or lamp, you need to modify the Php_admin_value Open_basedir inside the/usr/local/apache/conf/extra/httpd-vhosts.conf to add the # Direct annotation in front of the line.
3.LNMP 1.2 can start with the command: LNMP FTP {Add|list|del} for FTP account management. It is more convenient to use commands for administration.

4. Modify Admin Panel login password: http://bbs.vpser.net/thread-2038-1-1.html

Above reference: http://lnmp.org/faq/ftpserver.html

Modify the PUREFTPD FTP port

Modifying the default 21 port is relatively safe, and if the Linux server is using PUREFTPD, the way to modify the port number is as follows:

Vi/usr/local/pureftpd/pure-ftpd.conf

Found it

# Bind 127.0.0.1,21

Amended to

Bind 0.0.0.0,2121

The above 2121 is the new port.

Then restart the pureftpd, and if you are using LNMP, execute the following command.

Copy Code code as follows:

/ETC/INIT.D/PUREFTPD restart

Above reference: http://www.xevps.net/pureftpd-change-port.html

Note: If you use a firewall policy such as iptables, please remember to open the new port in the rule.

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.