Add ftp_user to the www-data group, and then set /var/www to be owned by ftp_user, the group is www-data, and the permissions are 750. For directories that require write permissions for the web server, press g+w.
Generally speaking, the permissions of ftp should be consistent with the permissions of apache, for example, both use the www-data user. This can avoid many permission problems, such as ftp being unable to modify or delete files, apache showing 403, etc. If there is more than one user using ftp to upload, and you want to distinguish between different users, you can put all ftp user accounts and www-data into the same group.
Be sure to use FTP.
Add ftp_user to the www-data group, and then set /var/www to be owned by ftp_user, the group is www-data, and the permissions are 750. For directories that require write permissions for the web server, press g+w.
Generally speaking, the permissions of ftp should be consistent with the permissions of apache, for example, both use the www-data user. This can avoid many permission problems, such as ftp being unable to modify or delete files, apache showing 403, etc.
If there is more than one user using ftp to upload, and you want to distinguish between different users, you can put all ftp user accounts and www-data into the same group.