Hi, I am a newbie in linux, apache and gallery..
I downloaded the gallery and run it.. everything goes fine until step 4..
I have followed the stepes
$ mkdir /var/www/html/album
$ chmod 777 /var/www/html/album
but It keep returning
The directory you entered is read only
8 drwxrwxrwx 2 root root 4096 Dec 19 21:24 album
8 drwxr-xr-x 12 1000 80 4096 Dec 19 21:09 gallery2
but it should be read-able and write-able
the owner of album is root
I am able to go to
http://tpoon
http://tpoon/gallery2
and
http://tpoon/album
so, I think it is not my apache problem
and I am using Gallery 2 Alpha-4
Thanks,
Tung
Posts: 8601
are you in a virtual/chroot type of environment? ie, is it possible when you do mkdir /var/www/html/album that the real location on the server is something like /users/tpoon/var/www/html/album ?
can you post your phpinfo or a link to it?
Posts: 4
Thanks for replying mindless..
I think i am notnot in the virtual/chroot of environment
when I typed 'cd /var'
and then i typed 'pwd'
then it return /var
How can i get my phpinfo ?
Posts: 8601
for phpinfo make a phpinfo.php with
<?php phpinfo(); ?>
for chroot check make a test.php with
<?php print getcwd(); ?>
and make sure the value you see in your browser matches what you see from the command line.
Posts: 4
Thanks, I am not working in a chroot enviroment...
and here is my phpinfo
http://tung.kicks-ass.org/phpinfo.php
http://tung.kicks-ass.org/test.php
Posts: 7994
Just tried those urls now and they timed out for me. Is the server up?
Posts: 4
the server's up again, sorry bharat
Posts: 7994
I tried again and the server was offline. My timing stinks. :-/
Posts: 3
I am having the same problem. Has anyone solved this?
As you can see below it has full access
drwxrwxrwx+ 2 csabato 96 Sep 22 11:31 g2data
php info:
http://www.willamette.edu/~csabato/gallery2/phpinfo.php
Posts: 32509
what is the result of this script? put it into a gallery2/install/test.php file and browse to it.
<?php var_dump(is_writeable('/usr/local/home/dante/staff/csabato/public_html/gallery2/g2data')); ?>
Posts: 3
var_dump(is_writeable('/usr/local/home/dante/staff/csabato/public_html/gallery2/g2data'));
returns false any idea why?
Posts: 32509
please try mindless' post from Posted: Mon, 2004-12-20 18:32
Posts: 3
I appriciate your help.
the "phpinfo.php" page posted above contains that information at the top.
http://www.willamette.edu/~csabato/gallery2/phpinfo.php
values do not match...
web value: /usr/local/home/dante/staff/csabato/public_html/gallery2
shell value /home/dante/staff/csabato/public_html/gallery2
things I've tried
1)
chmod 777 /home/dante/staff/csabato/public_html/gallery2/g2data
2)
cd /home/dante/staff/csabato/public_html/gallery2
pwd (result: /home/dante/staff/csabato/public_html/gallery2)
chmod 777 g2data
3)
chmod 777 via wsftp
both ftp and shell show the folder g2data with permissions of drwxrwxrwx+ but alas the file is not seen as writable by php.
??????
Posts: 8601
very odd.. you might try is_readable on g2data, and both is_readable/is_writeable on all parent dirs up to / to see which give the value you expect and which don't..