Member
Member
Ipstenu   2010-04-30, 16:41
#1

About once a week I upload a couple hundred images. The rest of the time, my site is really static. This plugin is perfect for that, since I can keep my CPU usage low The night I upload those images, though, they need to be available right then and there, and show up in their parent folder etc.

Right now, I have two options to clear my cache: Delete the WHOLE cache, or login as root and kill just the appropriate files. The reason I have to login as root, is that the folders and files get created as owned by nobody, which means my user ID can't clean them without shenanigans.

Is there a way to have the account IDs the owners, so that I can just kill them with MY id, or ... some way to more selectively kill the files?

Administrator
Administrator
acrylian   2010-04-30, 17:23
#2

No, except you delete them manually via ftp. Generally the cache does delete outdated file itself and updates according to the limit set on the option.

Member
Member
Ipstenu   2010-04-30, 20:36
#3

Can't delete via FTP any more than I can logged into shell. Probably for this reason:

Quote:[...] the folders and files get created as owned by nobody, which means my user ID can't clean them without shenanigans.
So is there a way to get the files created and owned as ipstenu:ipstenu and not nobody:nobody?

Member
Member
sbillard   2010-05-01, 00:40
#4

This is a configuration error for your server. These files are created by Zenphoto, so should belong to the "owner" for the running scripts. They should be no different from the cached images, can you delete those through FTP?

Member
Member
Ipstenu   2010-05-02, 02:01
#5

Nope. Looks like they're owned by nobody as well.

I'm going to go look into PHP and see why it's being stupid.

Member
Member
Ipstenu   2010-05-05, 00:59
#6

Yeah, it'd my host. And since fiddling with PHP screwed up other things, I scripted a cleanup script in PHP that fixes permissions. Since it runs as nobody it has access to ... nobody's files. I feel like Polyphemus.

Member
Member
sbillard   2010-05-05, 02:57
#7

So, then I guess nobody is really somebody

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.