I’d like to make a suggestion for editing the documentation section here to make it clearer how to upload files in /var/www/ using SFTP.
As a less experienced user it was not immediately clear to me that after following the instructions I would need to upload the files to /home/USER/apps/ instead of directly to /var/www/
This led to me continuing to try in vain to upload them to /var/www/
I think the documentation needs to have a conceptual explanation of what the instruction commands do.
I’ve rewritten the documentation below to include this, as well as some improvements for readability in English:
"In the YunoHost web admin interface, under ‘Groups and permissions’, you can specify which users can access your system through SFTP.
For security reasons however, any users given SFTP permission will be restricted to making changes within their own home directory.
App directories in /var/www/ are outside of a user’s home directory, so if you want to give access to a specific app through SFTP, follow these additional steps after giving a user SFTP permission in the web interface. They will create a directory in /home/USER/apps/ and copy its contents to /var/www/ for you.
Afterwards, to edit your app through SFTP, you will need to upload your files and make changes in the /home/USER/apps/ directory for your app. The changes will be reflected in /var/www/ for you.
In the instructions below, USER is the user to whom you wish to give permission to edit wordpress files"