FTP cannot upload files/directories in Linux workaround

Source: Internet
Author: User

In Linux can not upload files or folders The most problem is the permissions problem, but sometimes it is not necessarily a permission problem, like I am not enough space, below I summarize some ftp can not upload file/directory solution

In the exclusion of user groups and permissions and other issues, the most likely cause the FTP file can not be uploaded and often ignored the factor is that the hard disk space is full, and the hard disk space is full of the problem is mostly log files occupy, such as MySQL log will unknowingly become very large, until the full amount of the remaining hard disk space.

Workaround:

1, regular manual cleanup or use a script to clean up the MySQL log or other related log files.

2. Turn off MySQL log (not recommended)


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

Execute the Vi/etc/selinux/config in the terminal and change the enforcing of the selinux=enforcing to disable. Then save Exit VI, perform SETENFORCE 0 or restart. You can upload it.

If, you are not the above workaround, it is possible that you did not go to the FTP server under the Incoming folder, or you do not have to change the permissions of the incoming folder to 777.


or This solution

Direct SSH connection is performed later:

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 cannot overwrite the file, open the pure-ftpd.conf configuration file at the end of the append:

AllowOverwrite on
Allowstorerestart on

Finally Wq save, restart PUREFTPD service can.

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.