by Emma Richardson.
chown -R apache:root path/to/moodle
chmod -R 755 path/to/moodle
Run the same on the moodledata folder too. You can tighten permissions back up later if you want once you get things going.