Cannot delete and edit var folder on G3 beta 2

azmi

Joined: 2008-10-30
Posts: 6
Posted: Sun, 2009-09-27 12:01

hi,

i try upgrade g3 from bet 2 to beta 3 and the upgrader asked me to create file in tmp folder under var folder. but it seem i cannot edit or change permission for entire var folder....plus i cannot delete them too....

anybody can help me..

thanks

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 17359
Posted: Sun, 2009-09-27 14:22

Ask your host to create the folder. That folder should have existed from the beta2 install. The var folder(s) should have been created during the install and they will be owned by the user that the webserver runs as.
Perhaps your host changed permissions/ownership of files/folders created by the webserver user?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 11023
Posted: Mon, 2009-09-28 07:36

Another possibility is that you create the 'var' folder itself and set the permissions to 777 and that the webserver runs under the user account "nobody" or "apache" or something like that. It created the rest of the structure and most likely, by default the permission on those directories are set to 755 (and files 644) so you can't delete them because you are not the owner of them on the filesystem.

As Dave suggested, probably best to ask your host for help here unless your desire was to just delete everything:

http://codex.gallery2.org/Downloads:Cleanup_Script

That should work even for G3 (or any files owned by the webserver), you just need to know the full path to your gallery3/var directory. That script doesn't actually delete stuff, but changes permissions so you can delete, write, etc.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments