Posts made by Visvanath Ratnaweera

Picture of Particularly helpful Moodlers Picture of Translators
`Are you content now?' said the Caterpillar.

`Well, I should like to be a little larger, sir, if you wouldn't mind,' said Alice: `three inches is such a wretched height to be.'

`It is a very good height indeed!' said the Caterpillar angrily, rearing itself upright as it spoke (it was exactly three inches high).

smile
Picture of Particularly helpful Moodlers Picture of Translators
Is it that difficult?

a) The user www-data need read permissions in the moodle directory (and everything inside). No write permissions!
OK, life would be easier if it had (one time) during installation, since Moodle tries to create the config.php file inside moodle. Not a big deal if it hadn't, Moodle gives you the content of config.php with which you could create it with a text editor.

b) The user www-data need write permssions in the moodledata diretory.
This directory is empty when you instal. So there is no discussion about things inside. Moodle starts creating subdirectories, etc. you don't have to worry about their permissions.

Emma, you wrote:
> 1. Ownership: www-data needs to be owner both on moodle and moodledata folder.

Wrong! See above.

> 2. Permissions: I run mine with 755 permissions on both folders - however, many tighten down the moodledata to 644, I believe, which is more secure.

These permission "codes" have no meaning unless you tell us who the owner is and to which group those files/directories belong. Do some reading on Unix file permissions and experiment. It is very simple (unlike ACL https://de.wikipedia.org/wiki/Access_Control_List for example).

P.S. Of course there are paranoid ways of doing this. If you are a beginner, forget it!

P.P.S. Chris, what is that horrible URL you gave, https://www.google.com/url?q=https%3A%2F%2Fdocs.moodle.org%2F26%2Fen%2FStep-by-step_Installation_Guide_for_Ubuntu&sa=D&sntz=1&usg=AFQjCNHUsGgeeMsGfzWxlrZScj2HKnwO7w. Never seen such an ugly thing!
sad
Average of ratings: Useful (1)