which user is the website host

Posted by Kossel on Server Fault See other posts from Server Fault or by Kossel
Published on 2012-09-13T06:05:44Z Indexed on 2012/09/13 9:40 UTC
Read the original article Hit count: 198

Filed under:
|
|

I m learning about server, and I'm configuring nginx mysql php wordpress. the server distro is debian 6.

I created a new user and I wish each user is the owner of the site folder /var/www/site.one so I chown -R kossel:kossel site.one

my problem is, my wordpress only work if I chmod 644 wp-config.php, which all can read wordpress site suggest that file should be 640.

and my question is: when someone open mydomain.com, wordpress has to access wp-config.php file, but which user is it actually using to "read" that file? root? user kossel? anyone else? how can I properly give it permission or owner??

© Server Fault or respective owner

Related posts about linux

Related posts about vps