PDA

View Full Version : Newbie Moodle Installation?



bullzi
07-01-2009, 05:26 PM
I recently installed Moodle using Simple Scripts and when I log in to administrate I get a warning message:
"Your site configuration might not be secure. Please make sure that your dataroot directory (/home/foo/public_html/moodle/moodledata) is not directly accessible via web."

My question is, where would I move it and what would the URL be?

I'm not clear on how accessible the public_html folder is. If I browse to http://www.mysite.com/moodle/moodledata/test.html I get a 500 error.

Any help or link to explanation of public_html would be appreciated.

felgall
07-01-2009, 09:48 PM
What is in public_html may be accessible from the web unless you implement something to block the access. Anything outside of public_html is not accessible from the web.

EricJ
07-01-2009, 09:48 PM
You should try changing the permissions on the moodledata 0700, and all the files inside to 0600. and see if that works..

If it makes your installation run funny, try out 0750 for the moodledata directory, and 0640 for the files inside.

You can change these inside the regular file manager from the cPanel, the permissions are on the far right hand side.

bullzi
07-02-2009, 07:49 AM
Thanks for your replies.
So it seems Moodle is warning and recommending moving it outside of the public_html folder. But if I do that, how would a user access it in a browser?

Early Out
07-02-2009, 07:57 AM
If no one here knows the answer to that question, you might want to wander over to the moodle site (http://moodle.org/), where they have a support section and some forums ("Community").

bullzi
07-02-2009, 09:03 AM
Thanks. I just signed up for their forum and have it open in another tab.

dyessick
07-09-2009, 09:15 PM
The user doesn't access the data directly so they don't need access via public_html. The user accesses the data indirectly via cgi scripts. This allows Moodle to provide a layer of security.

By putting the data under the public_html a user could access data using a browser rather than through the Moodle scripts, thus bypassing any security.

Don