Forums | Mahara Community

Support /
Dataroot in configuration file


anonymous profile picture
Account deleted
Posts: 214

16 August 2010, 4:26

At present, the suggestion for the dataroot is something outside of our htdocs folder for mahara.

Is it worth adding a default, or note to the installation guide than an acceptable option for the dataroot would be something like:

$dataroot = dirname(dirname(__FILE__)) . '/dataroot';

Or is that not really acceptable?  It should give a path relative to the config.php and parallel to htdocs.

Andrew

anonymous profile picture
Account deleted
Posts: 48

16 August 2010, 22:43

A lot of the installations I've seen put mahara in a directory inside their webroot - eg http://www.example.com/mahara

Which would make the dataroot in your example still inside the webroot

also - less experienced devs would have no idea what the function dirname() was actually doing so could potentially cause confusion

IMO examples should be more generic and simple for non php users to understand- full paths eg for windows this would be:

c:/inetpub/www/mahara

c:/inetpub/maharadata

untill we get a gui to generate the config.php - my vote is to keep examples text based and not include any php functions.

2 results