can't get cleanup script to work

kathyvt

Joined: 2002-08-11
Posts: 3
Posted: Tue, 2002-10-22 01:55

I uploaded the cleanup.php.gz to my webserver gallery directory.
decompressed it with gzip.
I access the script in my browser, I enter the correct path to the album I want to edit files from, hit go --
It seems to do something, and I do NOT get any error messages. Yet the permissions for the albums remain unchanged, and I am unable to edit or delete files.

What am I missing?

- kathyvt

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3473
Posted: Tue, 2002-10-22 02:36

Questions:
You say "it seems to do something"... are you seeing the "Directory: ..." line(s) and "File: ..." line for each item in the directory?

If so, who owns the files in the album directory you're looking at? Are you sure it's the web server user, and not yourself? (providing a copy of your "ls -la" output would help).

-Beckett (beck@beckettmw.com)

 
kathyvt

Joined: 2002-08-11
Posts: 3
Posted: Tue, 2002-10-22 20:16
Quote:
are you seeing the "Directory: ..." line(s) and "File: ..." line for each item in the directory?

I enter the path in the form field, hit go. The browser waits, and its status line shows "opening http://www.[mydomain].com/gallery/cleanup.php?dir=%2Fvar%2Fwww%2Fhtml%2Fgallery%2Falbums%2Fwfmerc2002"
and then nothing happens. I do not see any error messages, no messages or lists of "Directory:.." line(s) on the page itself - nothing. The page with the simple instructions and the "Path (on your filesystem) to a file or directory to fix?" form box
simply reloads the same as it started.

Quote:
Are you sure it's the web server user, and not yourself?

I think the web server - here is the printout for that album:
drwxr-xr-x 2 48 48 4096 Oct 22 01:09 .
drwxrwxrwx 14 simontow simontow 4096 Sep 14 11:48 ..
-rw-r--r-- 1 48 48 5670 Aug 27 18:47 aaa.highlight.jpg
-rw-r--r-- 1 48 48 1035738 Aug 27 18:47 aaa.jpg
-rw-r--r-- 1 48 48 36405 Aug 27 18:47 aaa.sized.jpg
-rw-r--r-- 1 48 48 3868 Aug 27 18:47 aaa.thumb.jpg
-rw-r--r-- 1 48 48 3801 Oct 22 01:09 album.dat
-rw-r--r-- 1 48 48 3801 Oct 20 12:32 album.dat.bak
-rw-r--r-- 1 48 48 0 Aug 27 18:45 album.dat.lock
-rw-r--r-- 1 48 48 6 Aug 27 18:47 serial.1.dat

I am basically a newbie to php scripts - I have installed and configured a few, but have little experience or understanding troubleshooting them. - sorry

- kathy