Forums | Mahara Community

Support /
Your defined data root directory is not writable.


anonymous profile picture
Account deleted
Posts: 4

08 January 2011, 9:59

Good afternoon

 

I'm trying to install mahara in my hosting, but I don't know where I've been wrong because it says that:

 

http://dvlop.com/mahara/index.php

 

When the folder data is 777

 

any idea or solution to edit and solve?

 

many thanks

anonymous profile picture
Account deleted
Posts: 214

11 January 2011, 3:02

Hi Juango,

What do you get from an

ls -ld /home/public_html/mahara/data

and

ls -l /home/public_html/mahara/data

If you can change the ownership to whatever your web user is, rather than chmodding the folder that would be preferential. I suspect that the ownership/mode isn't quite right somewhere.

Andrew

anonymous profile picture
Account deleted
Posts: 4
anonymous profile picture
Account deleted
Posts: 21

11 January 2011, 4:28

Also check if the path is actually correct:

"/home/public_html/mahara/data/" doesn't look right, I would expect it to be something like "/home/<user>/public_html/mahara/data/".

You also have the data in a place accessible to the web server, which isn't good practice.

anonymous profile picture
Account deleted
Posts: 4

11 January 2011, 7:18

Thanks a lot Gary!

I solve both (user and ubication)

 

anonymous profile picture
Account deleted
Posts: 92

09 March 2011, 23:35

I have the same problem on Mac.

Can you give me the help for that?

anonymous profile picture
Account deleted
Posts: 1

18 February 2012, 15:40

Your defined data root directory, /home5/sitename/

maharadata1/, is not writable.

Could you help me, I don't understand because the folder is writable

19 February 2012, 3:19

You have to give the right per,Ossian to your folder. If you are on Ubuntu do chown -R www-data:www-data maharadata1 chmod -R 777 maharadata1
maigoofy's profile picture
Posts: 14

28 February 2012, 21:41

Hi,

I hope you don't mind me asking a similar question.

------------------------
Create the Dataroot Directory
( https://wiki.mahara.org/index.php/System_Administrator%27s_Guide/Installing_Mahara )

This is a directory where Mahara will write files that are uploaded to it, as well as some other files it needs to run. The main point about this directory is that it is one that the web server can write to. The other main point is that it cannot be inside the directory where your Mahara code is! In fact, if you have a public_html directory, it should not be inside that at all.

.../yourusername/public_html
 .../yourusername/maharadata

You will need to make the maharadata directory writable by the web server user. You can either change its owner to be the web server user, or you can chmod it to 777. The latter isn't recommended, but if you're on shared hosting it's what you'll probably have to do. FTP programs will allow you to chmod the directory.
------------------------------------
So according to the explanation, I have two choices:

A: Change its owner to be the web server user
or
B: Chmod it to 777

Question 1:
Does A mean the following in centOS?
    chown -R apache.apache maharadata
   
Question 2:
    Do I need to set A and B, or either A or B?
   
I really appreciate anybody's help on this. Thank you.

29 February 2012, 7:10

Hi,

I personally did both, chmod and chown because on my configuration and together with the use I make of maharadata I need it.

I have no problem having mahra folder being in chown root and chmod 577 but with the maharadata I always do both (www-data and 777).

Bye the way the command on unix isnt' chmod -R apache:apache instead of apache.apache?

Good luck with your installation,

Regard

-dajan

16 results