I'm learning about servers, and I'm configuring Nginx, MySQL, PHP, and WordPress. the server distro is Debian 6.
I created a new user and I want each user to be the owner of the site folder
/var/www/site.one, so I run the command
chown -R kossel:kossel site.one
My problem is, my WordPress only works if I
chmod 644 wp-config.php, which all can read wordpress site suggest that file should be 640.
My question is, when someone opens mydomain.com, WordPress has to access the wp-config.php file, but which user is it actually using to "read" that file? The root user? User kossel? Anyone else? How can I properly give it permission or ownership?