installing Gallery2 step4->storage

PhilFuXX

Joined: 2005-01-07
Posts: 7
Posted: Fri, 2005-01-07 15:19

Hi folks,

I got a problem with step 4, setting up the storage. I get the following error message:

The directory you entered is read only

Well, that can't be the truth since I set permission to 777. I just followed the instructions, created a directory and changed directory permissions using chmod. Regardless where I create the picture directory (as subfolder of /gallery2, or somewhere else) it keeps giving me the same massage.

What can I do? Thanks for help in advance.

So long,

Arno

----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: 2-alpha-4
Apache version: don't know, system check says ok
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system: unix
Web browser/version (if applicable): FireFox 1.0

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2005-01-07 18:19

[Moved to G2 Support]

 
PhilFuXX

Joined: 2005-01-07
Posts: 7
Posted: Fri, 2005-01-07 19:00

Hi,

I just saw there's another guy who has the same problem:

http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=24447

I tried that lillte PHP program and I got the "boo". I suppose that means G2 is alright, it depends on the web server. I've no idea how to fix that. Does anyone know what to do? Would it help to install G1?

Greetings,

Arno

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2005-01-08 05:34

Try creating this script and putting it in your g2data directory:

<?php system("pwd"); ?>

then browse to that and see what it tells you. Does that match what you put into config.php?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2005-01-08 22:49

bharat, just a thought... perhaps if the user has trouble on that step in the installer it could offer this suggestion, to help people who are unaware of being in a chroot environment... (of course that only helps if the dir is web accessible)

 
PhilFuXX

Joined: 2005-01-07
Posts: 7
Posted: Sun, 2005-01-09 20:29

Hi bharat,

the php script returns the afs path of my home-dir. I couldn't find that config.php. Where is it supposed to be located? I just found a config template ...

Arno

 
PhilFuXX

Joined: 2005-01-07
Posts: 7
Posted: Sun, 2005-01-09 20:41

Step 6 creates the config file. Since i'm hanging on step 4 there's no config file.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-01-09 22:06

he meant, does it match the value you entered into the installer..

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2005-01-09 22:37

Er, right that's what I meant. The path from the PHP script you created is the real path to your g2data dir...

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2005-01-10 00:29
mindless wrote:
bharat, just a thought... perhaps if the user has trouble on that step in the installer it could offer this suggestion, to help people who are unaware of being in a chroot environment... (of course that only helps if the dir is web accessible)

Good idea. Done!

 
PhilFuXX

Joined: 2005-01-07
Posts: 7
Posted: Tue, 2005-01-11 11:05

Hi,

the path which is being returned by:

<?php system("pwd"); ?>

is exactly the same as mentioned at step 4 (directory path).

The permission setting of ./g2data is:

drwxrwxrwx

So, I used the example script above and changed it a bit to:

<?php system("mkdir ./test"); ?>

It is supposed to create the subdirectory "test". I copied it to ./g2data and executed it. It didn't create a subdirectory. Presumably, the php interpretor doesn't have the permission to write to directory and that's also the reason why G2 creates the error.

Is there a security option in PHP which globally denies writing to the file system?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2005-01-13 07:36

That's pretty weird. I agree that it's probably something to do with your PHP configuration. Can you give us access to your phpinfo() output?

 
PhilFuXX

Joined: 2005-01-07
Posts: 7
Posted: Fri, 2005-01-14 10:49

yeah, I know. Here's the link to the phpinfo.php (is that what you're looking for?):

http://www-user.tu-chemnitz.de/~gebs/gal2/lib/tools/phpinfo.php

Somehow, it doesn't work. It says I gotta configure Gallery (You must create a config.php file in the Gallery directory before you can continue configuring the application. Use the installer to create one.) and that's impossible as you know.

Is there any other way obtaining phpinfo?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2005-01-15 00:46

Sure. Put this into a .php file on your system:

<?php phpinfo(); ?>

Then post the url to that here.

 
PhilFuXX

Joined: 2005-01-07
Posts: 7
Posted: Mon, 2005-01-24 18:52

Sorry, I've been pretty busy lately.

Following this link will get you to the phpinfo page:

http://www-user.tu-chemnitz.de/~gebs/gal2/test.php

What does it say and why isn't it working accordingly?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2005-01-25 04:11

Ok, phpinfo.php says that test.php lives at:
/afs/tu-chemnitz.de/home/urz/g/gebs/public_html/gal2/test.php

So if you put your g2data directory in your home directory, then it should be at:

/afs/tu-chemnitz.de/home/urz/g/gebs/g2data

So you should do this in a shell:
$ cd /afs/tu-chemnitz.de/home/urz/g/gebs
$ mkdir g2data
$ chmod 777 g2data

Then enter this for your g2data directory:
/afs/tu-chemnitz.de/home/urz/g/gebs/g2data

Does that still say "read only"?

 
lindehoff

Joined: 2005-04-03
Posts: 20
Posted: Wed, 2005-04-20 09:15

I have teh same problem, the script returned Boo.
My phpinfo:
http://fedora.cobmedia.se/info.php

I'm a linux newbie.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2005-04-21 06:32

lindehoff, please start a new topic for your problem. When you do, fill out the support template and try to answer the questions that we've asked already in this topic so that we have enough information to help you quickly. Thanks!