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
Posts: 13451
[Moved to G2 Support]
Posts: 7
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
Posts: 7994
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?
Posts: 8601
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)
Posts: 7
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
Posts: 7
Step 6 creates the config file. Since i'm hanging on step 4 there's no config file.
Posts: 8601
he meant, does it match the value you entered into the installer..
Posts: 7994
Er, right that's what I meant. The path from the PHP script you created is the real path to your g2data dir...
Posts: 7994
Good idea. Done!
Posts: 7
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?
Posts: 7994
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?
Posts: 7
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?
Posts: 7994
Sure. Put this into a .php file on your system:
<?php phpinfo(); ?>
Then post the url to that here.
Posts: 7
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?
Posts: 7994
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"?
Posts: 20
I have teh same problem, the script returned Boo.
My phpinfo:
http://fedora.cobmedia.se/info.php
I'm a linux newbie.
Posts: 7994
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!