chown all files and folders/subfolder content www-data:www-data for /var/www/html ?

May 22, 2018 816 views
Apache WordPress Linux Commands Ubuntu 16.04

Hello, I need to manually upload a backup for my WP project under /var/www/html. My issue is that this gives all files root root permission.
I tried chown www-data:www-data /var/www/html
But that doesn't seem to work.

So how do I do this?
Thanks for your help in advance!

Be the first one to answer this question.