Forums | Mahara Community

Support /
where is the document root ??


anonymous profile picture
Account deleted
Posts: 14

27 February 2009, 12:17

i will do a fresh install and i will post the config.php file here with the directory.
anonymous profile picture
Account deleted
Posts: 14

27 February 2009, 13:13

when i looked again at the mahara folder there were two folders: "test" and "htdocs" should i copy them both to my directory or copy the content of "htdocs" alone ?
Heinz Krettek's profile picture
Posts: 480

27 February 2009, 14:12

Hi George,

copy the files from htdocs to your directory Wink

please post here the path of this direcory and please don't forget the config.php snippet

cheers
Heinz

anonymous profile picture
Account deleted
Posts: 14

27 February 2009, 14:17

thanks Heinz,

these are my settings:

 

/ database connection details
// valid values for dbtype are 'postgres8' and 'mysql5'
$cfg->dbtype   = 'mysql5';
$cfg->dbhost   = 'localhost';
$cfg->dbport   = null;
$cfg->dbname   = 'otsocial_demo';
$cfg->dbuser   = 'otsocial_user';
$cfg->dbpass   = '**********';

....

 

// applications (this happens most often on shared hosting)
$cfg->dbprefix = '';

....

// this is a big security hole.
$cfg->dataroot = '/var/www/vhosts/onyx-sy.net/httpdocs/otsocial';

 

the mahara is going to be on www.onyx-sy.net/otsocial

 

Heinz Krettek's profile picture
Posts: 480

27 February 2009, 14:54

take care, that /var/www/vhosts/onyx-sy.net/httpdocs/otsocial  has permission 0777

What happens if you try to install? There will be created some di inside the dataroot folder

anonymous profile picture
Account deleted
Posts: 14

27 February 2009, 16:20

Greetings,

i got the same msg, and it did create a new folder "sessions".

 any clues ?

anonymous profile picture
Account deleted
Posts: 14

28 February 2009, 8:56

guys anyone can help ?
anonymous profile picture
Account deleted
Posts: 228

28 February 2009, 10:08

George , as I said to you - the problem is that you are confusing where your mahara installation files (php files) are, with the directory on the disk that needs to be created in another place, which is where files that are uploaded by users go.

This file is not allowed to be inside the folder that mahara's source code lives in.

 So if you have your mahara directory like

 /var/www/yoursite/htdocs/

you cannot put your data directory at /var/www/yoursite/htdocs/data

It must live some where else, for example, /var/www/yoursite/data.

anonymous profile picture
Account deleted
Posts: 14

28 February 2009, 11:39

the root of my website is "httpdocs" and i always place my files in it, i only have created a subfolder called "otsocial" and put them in it and direct the config file to that place, i dont know where is my mistake here !

and if i put mahara outside "httpdocs" i will not be able to call it. 

so "httpdocs" is usualy the place where i start to put my website files in.

anonymous profile picture
Account deleted
Posts: 14

28 February 2009, 13:24

i think the problem is solved it was a miss configration in the config file:

from:  $cfg->dataroot = '/var/www/vhosts/onyx-sy.net/httpdocs/otsocial';

to: $cfg->dataroot = '../otsocial';

now  i only need to upgrade MySQL versio, which give me a questioncould be so different between those two versions of MySQL that he couldn't make it run on both? "5.0.22" and "5.0.25" ?


 

20 results