Welcome! Log In Create A New Profile

Advanced

OK to chown www-data.www-data?

Gilles Ganault
July 27, 2010 08:16AM
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.


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

OK to chown www-data.www-data?

Gilles Ganault July 27, 2010 08:16AM

Re: OK to chown www-data.www-data?

Gilles Ganault July 27, 2010 08:40AM

Re: OK to chown www-data.www-data?

Gilles Ganault July 27, 2010 08:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 303
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready