Because of personal operation ECS need, need to build an FTP server, I use Centos7.2 operating system, yum install Vsftpdy, and successfully configured FTP upload download operation.
For some reason, uninstall the httpd that reinstalled Apache and modified the/etc/httpd/httpd.conf file,
Can be a normal connection, but when uploading files, always report 553 could not create file and Failed to change directory. Error message.
First: permissions are set on the Htdocs directory, if set to Chmod-r 777/path directory/htdocs
Solution.
First create a directory in the FTP directory, and then set the permissions to 777
$ sudo mkdir/var/ftp/write
$sudo Chmod-r 777/var/ftp/write
Then modify the vsftp configuration file/etc/vsftpd.conf file
Add at the end
local_root=/Path Directory/htdocs
Save, then kill the VSFTPD process, and then restart the VSFTPD server program.
Try, upload the file to the write directory, this time can be normal uploading files.
Service vsftpd Restart after reboot, successfully solve the problem.