Can't delete g2data folder

mcgrelio
mcgrelio's picture

Joined: 2003-02-03
Posts: 52
Posted: Sun, 2005-06-05 10:20

Hi,
i use G2 v3.3.4 and i've noticed that i can't CHMOD files and folders in the g2data folder (via FTP). CHMOD simply doesn't work.
Now i just want to completely remove Gallery2 from my server but i can't delete the g2data folder.
How can i do?
Is it a know issue?
Thx.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-06-05 10:28

mcgrelio, there's no version 3.3.4 of G2, where do you have this number from?
see the G2 FAQ on how to remove the g2data folder (bharat's cleanup script).
The link to the FAQ is in my signature.

 
mcgrelio
mcgrelio's picture

Joined: 2003-02-03
Posts: 52
Posted: Sun, 2005-06-05 10:38
valiant wrote:
mcgrelio, there's no version 3.3.4 of G2, where do you have this number from?
see the G2 FAQ on how to remove the g2data folder (bharat's cleanup script).
The link to the FAQ is in my signature.

Ooooops... Sorry :D
I was posting also in the PhpGedView forum and had a lapsus... That number is the current version of PhpGedView.
Of course i have G2 beta3, sorry.
Now i check the link, thx a lot!

 
mcgrelio
mcgrelio's picture

Joined: 2003-02-03
Posts: 52
Posted: Sun, 2005-06-05 12:12

I had read the FAQ but not the posts.
Ok, i've downloaded the script and executed it succesfully.
After that i have deleted everything in g2data except the locks and cache folders.
These are still undeletable.

I run the cleanup script a second time and now i get this (the folder are still undeletable):

Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/core
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/_all
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/albumselect
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/archiveupload
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/captcha
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/cart
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/comment
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/customfield
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/debug
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/exif
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/ffmpeg
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/gd
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/imageblock
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/imageframe
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/imagemagick
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/members
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/migrate
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/mime
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/multilang
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/netpbm
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/newitems
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/nokiaupload
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/panorama
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/photoaccess
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/randomhighlight
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/rearrange
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/register
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/remote
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/rewrite
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/search
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/shutterfly
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/sizelimit
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/slideshow
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/squarethumb
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/thumbnail
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/thumbpage
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/uploadapplet
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/useralbum
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/watermark
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/webcam
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/zipcart
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/dcraw
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/icons
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/publishxp
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/quotas
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/module/slideshowapplet
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/entity
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/layout
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/layout/classic
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/layout/hybrid
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/layout/matrix
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/layout/siriux
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/layout/slider
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/layout/tile
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/cache/layout/_all
Directory: : /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/gallery/g2data/locks

Warning: chmod(): Operation not permitted in /home/vhosts/famigliamosca.mcgrelio.com/var/www/html/bin/cleanup.php on line 48

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2005-06-05 16:18

To use the cleanup script to remove the cache and locks directories, you've got to specify the sub-directories first and work your way up.

It's a pain. If you hadn't already started with that, as I don't think this will work after you've deleted some of those files. You could use /lib/tools/test/ EmptyGallery or ResetGallery.

What I've done in the past to clean out my g2data is create a little PHP script.

You'll need to double check this as there might be a typo or error, I'm not a PHP expert.
<? exec('rm -Rf /path/to/g2data/') ?>

You'll also want to delete that script after you use it.

 
mcgrelio
mcgrelio's picture

Joined: 2003-02-03
Posts: 52
Posted: Sun, 2005-06-05 16:43
nivekiam wrote:
To use the cleanup script to remove the cache and locks directories, you've got to specify the sub-directories first and work your way up.

It's a pain. If you hadn't already started with that, as I don't think this will work after you've deleted some of those files. You could use /lib/tools/test/ EmptyGallery or ResetGallery.

What I've done in the past to clean out my g2data is create a little PHP script.

You'll need to double check this as there might be a typo or error, I'm not a PHP expert.
<? exec('rm -Rf /path/to/g2data/') ?>

You'll also want to delete that script after you use it.

Ok, thx a lot for the info.
I'll try that piece of code.

 
rushelp

Joined: 2007-08-04
Posts: 2
Posted: Sat, 2007-08-04 17:59

Hi, I have the same problem. I can't delete that folder. I couldn't find an instruction in the FAQ, anybody can explain how to delete it?