How to solve the problem that CentOS ftp cannot upload files
Detection steps for ftp files that cannot be uploaded:
1. Open the vsftp configuration file (/etc/vsftpd/vsftpd.conf) and check the write_enable status to ensure that it has writable permissions:
2. Check whether the ftp user has the directory Read and write permissions are also found to be feasible in 775 status (www group).
Recommended learning: CentOS usage tutorial
3. If the above settings are correct, you can try the following solution:
Solution:
①. Check the Selinux status of ftp: sestatus -b | grep ftp
②. You can see in the result: ftp_home_dir off
③, change the status to on: setsebool -P ftp_home_dir on
④, restart vsftpd service: service vsftpd restart
PHP Chinese website, a lot of MySQL videos Tutorial, welcome to learn!
The above is the detailed content of How to solve the problem that CentOS ftp cannot upload files. For more information, please follow other related articles on the PHP Chinese website!