InMotion Hosting Support Center

Creating moodle data directory

Category: Moodle

2012-05-16 12:40 pm EST

Hits: 6,083

I'm trying to install moodle and getting into a point where Data directory need to be created/placed inside the web root.
Here are some info.

Moodle directory: /home/wordsu5/public_html/training

Data directory: /home/wordsu5/moodledata
(directory permission should be 0777)

Could you please help me install it?


You must login before you can ask a follow up question.

You must login before you can submit an answer.



43,761 Points
2012-05-16 1:10 pm EST
Hello Wordsup,If you are installing the Moodle via the Fantastico instllation tool found in your cPanel, that directory is automatically created for you during the install. I would recommend this method if it is the proper version as it handles all the details in the back end. In my test installation, the folder was created under my main moodle install directory and named uploaddata instead of moodledata, but that is quite OK, you can name/rename it anything you like.

If you are performing a manual install, simply create the new folder wherever you want it to be in your cPanel File Manager. I would place it within the same folder you installed Moodle in. Once you have created the folder, you can change the file permissions to 777.

In your case I would create the moodledata directory at /home/wordsu5/public_html/training/moodledata

If you have any further questions or concerns with the issue, feel free to reply here with a comment with more information.

- Scott M

You must login before you can post a comment about this answer.

But doesn't the data directory need to be outside of the web root for security purposes? Wordsup had the data directory in his question "/home/wordsu5/moodledata" which is what Moodle requires, not inside the web root as you have it with "/home/wordsu5/public_html/training/moodledata". I am working on moving an existing Moodle course to an InMotion server and I am very confused by this.
3 Points
2013-06-19 12:31 pm EST
Thank you for pointing that out. You are correct the moodledata folder should be outside. Its a security reason. I placed a strike through through the text. Just place the moodledata in the default location. Sorry for the confusion.
5,889 Points
2013-06-20 10:01 am EST
Like this Question?

Related Articles

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!