FTP cannot upload file/directory solution in Linux

Source: Internet
Author: User

After you troubleshoot issues such as user groups and permissions, the most likely cause FTP files can not be uploaded and often overlooked is the hard disk space is full, and the problem of the full disk space is mostly occupied by log files, such as the MySQL log will unknowingly become very large, until the remaining hard disk space.

Solution:

1, regularly manually clean up or use the script to clean up the MySQL log or other related log files.

2. Close MySQL log (not recommended)


There is a problem with the space, if the above solution can not be a permission problem

Executes the vi/etc/selinux/config in the terminal and changes the selinux=enforcing enforcing to disable. Then save Exit VI, perform SETENFORCE 0 or reboot. You can upload it.

If you are not the solution above, it is possible that you did not go to the Incoming folder under the FTP server, or you did not change the Incoming folder's permissions to 777.


or such a solution

After direct SSH connection execution:

Chown Www:www-r Your FTP directory

chmod 777-r Your FTP directory

This gives permission to solve the FTP can not upload, new problems, if you can not overwrite the file, open the pure-ftpd.conf configuration file appended at the end:

AllowOverwrite on
Allowstorerestart on

Finally Wq save, restart the PUREFTPD service.

Configuration file for pureftpd in WDCP:/www/wdlinux/etc/pure-ftpd.conf

Configuration file for pureftpd in LNMP:/usr/local/pureftpd/pure-ftpd.conf

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.