Problem with g2data directory location ?

F&BS

Joined: 2004-11-30
Posts: 2
Posted: Tue, 2004-11-30 04:53

Hello,

all the installation of G2 was excellent but trying to access to it at first time I receive one problem :

Quote:
"Warning: mkdir(../../../g2data): Permission denied in /home/blanchy/flore-succulente-www/gallery2/modules/core/classes/GalleryPlatform.class on line 683

Warning: mkdir(../../../g2data/cache): No such file or directory in /home/blanchy/flore-succulente-www/gallery2/modules/core/classes/GalleryPlatform.class on line 683

Warning: mkdir(../../../g2data/cache/module): No such file or directory in /home/blanchy/flore-succulente-www/gallery2/modules/core/classes/GalleryPlatform.class on line 683

Warning: mkdir(../../../g2data/cache/module/core): No such file or directory in /home/blanchy/flore-succulente-www/gallery2/modules/core/classes/GalleryPlatform.class on line 683

Warning: mkdir(../../../g2data/cache/module/core/0): No such file or directory in /home/blanchy/flore-succulente-www/gallery2/modules/core/classes/GalleryPlatform.class on line 683

Warning: mkdir(../../../g2data/cache/module/core/0/0): No such file or directory in /home/blanchy/flore-succulente-www/gallery2/modules/core/classes/GalleryPlatform.class on line 683

Warning: fopen(../../../g2data/cache/module/core/0/0/0.inc): failed to open stream: No such file or directory in /home/blanchy/flore-succulente-www/gallery2/modules/core/classes/GalleryPlatform.class on line 341

Warning: flock(): supplied argument is not a valid stream resource in /home/blanchy/flore-succulente-www/gallery2/modules/core/classes/GalleryPlatform.class on line 359

Warning: Cannot modify header information - headers already sent by (output started at /home/blanchy/flore-succulente-www/gallery2/modules/core/classes/GalleryPlatform.class:683) in /home/blanchy/flore-succulente-www/gallery2/main.php on line 105"

I put it just at first root of my website, not to be accessed directly, it is on 777 mode...
What do I need to change to make it work ?
Are all the directories and files in this g2data/ DIR need to be on chmod 777 ?
Thanks by advance...

Christophe Blanchy
http://www.flore-succulente.com/

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2004-11-30 05:21

That's odd. The fact that it's trying to mkdir the g2data directory seems to indicate that it's not where you're telling it is. Did you move the g2data directory after running the installer? What did you set it to in your config.php? And where is it on disk?

Judging from your output, G2 thinks it's at /home/blanchy/flore-succulente-www/gallery2/g2data

 
F&BS

Joined: 2004-11-30
Posts: 2
Posted: Tue, 2004-11-30 06:12

Thanks for this quick reply !

In fact I thought it was possible to put the folder in the first root of my web space, not to be accessible... The problem is that the address can only be relative. I did not modified anything after the install but just tried to check it and like I was in the install folder at the beginning, I needeed to add one ../
Now it's working.
I try to import one album now...

Thank's

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2004-11-30 06:44

The address does not need to be relative, and you can put your g2data outside of your web root. Try moving it to /home/blanchy/ and putting /home/blanchy/g2data in your config.php. That should work for you.