Brother's LNMP Environment Pack 1.2 has built-in PUREFTPD installer.
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.
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.
The code is as follows |
Copy Code |
considerations:
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 not to read the directory, login timeout or report 502 Bad Gateway Error:
- LNMP 1.1 and earlier versions, modifying/usr/local /php/etc/php.ini look for Open_basedir, there are/home/wwwroot/default lines in front of the plus;
- LNMP 1.2 is set in the/home/wwwroot/default/.user.ini to delete the contents of the inside, after a few minutes. 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. Before you modify it: Chattr-i/home/wwwroot/default/.user.ini After the modification is complete: chattr +i/home/wwwroot/default/.user.ini br>
- 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 a # in front of the line Direct comments.
3.LNMP 1.2 can begin 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.
/ETC/INIT.D/PUREFTPD restart