I applied several different fixes. wordpressuser
$ sudo adduser wordpressuser www-data
$ sudo chown www-data:www-data -R /var/www/html
$ chmod 7777 -R /var/www/html
$ reboot
root # adduser www-data www-data
None of these worked and the person ran out of steps because no matter what I did, WordPress wouldn't let me update or install stuff without it asking for FTP access.
I have my static web site in the HTML folder, the WordPress in a directory called blog, and a podcast generator in a folder called podcasts.
Everything inside the html folder, including the html folder itself, has full read write and execute permissions under the user www-data and group www-data.
sftp, and the standard Wordpress update mechanism is over FTP. You can install an ftp server locally on the server and then configure Wordpress to point to that FTP server internally for its updates. This is what my Wordpress sites do.chmodcommand created a gigantic security hole.ls -land try updating it manually.