OK to chown www-data.www-data?

Gilles Ganault gilles.ganault at free.fr
Tue Jul 27 16:11:22 MSD 2010


Hello

As a test PHP5/SQLite3 failed creating a database, I figured it was
because /var/www/nginx-default/ was owned by root.root while Nginx
spawns children processes (threads?) as www-data.www-data.

So I ran "chown -R www-data.www-data /var/www/nginx-default/" and the
script ran successfully.

Which begs the question: Is it OK or even recommended that
www-data.www-data should own the Nginx web directory, or are there
side-effects I should know about?

Thank you.




More information about the nginx mailing list