Thanks. This post helped me figure it out: Panel works locally, not on remote server - #3 by elmnt
I needed to change ownership of the contents of site/accounts/ - not just the directory itself (which is not clear from the preceding error message.
Fixed it using: chown -R www-data:www-data /site/accounts
May thanks