My document dataroot (config.php) and is writeable by www-data, Is this an issue?

My document dataroot (config.php) and is writeable by www-data, Is this an issue?

Doulos Xavier發表於
Number of replies: 2

This document https://docs.moodle.org/405/en/Upgrading mentions that

chown -R root:root moodle (Linux debian - or even create a user especially for moodle. Don't use the web server user, e.g. www-data)

My document dataroot (config.php) and is writeable by www-data, Is this an issue?

var/www/mywebsite/moodledata

drwxr-xr-x 13 www-data mywebsite 4096 Mar 26 11:04 moodledata/

評比平均分數: -
In reply to Doulos Xavier

Re: My document dataroot (config.php) and is writeable by www-data, Is this an issue?

Andrew Lyons發表於
Core developers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片 Testers的相片

No, this is correct. This is where Moodle stores your user data. Moodle is a web application and runs on a web server. Typically (on Debian/Ubuntu/some others) the web servers runs as the www-data user so it needs access to this location to write your files.