Moodle problem

SuSe 11.1 - I have used Yast to download Moodle, but this automatically installs the data directory in the web path /srv/www which is considered insecure

I have tried creating the directory in /srv ,both through the Moodle script and directly using Dolphin and have changed the owner to wwwrun in group www as recommended but Moodle is still prevented from accessing the directory even with Apparmor and firewall not running, and file permissions of 777. SElinux is not installed.

Any ideas?

You’d have to look at the web server logs to see what was the reason for access denial. One possibility is the open_basedir setting. It’s not very well known. See here:

Php open_basedir Tweak