if your files are owned by your user account, and group owned by www-data
As I said, the output of ls -la of /var/www/ gives
drwxrwxrwx 5 nobody nogroup 4096 Feb 4 00:31 wordpress
(I’m not changing the output by renaming groups/owner. This is the exact permissions)
The owner is ‘nobody’ and the group owned by ‘nogroup’.
Is this a possible mistake that causes problems?