Welcome Guest | Login

need a special permission set on a folder

Normally I'd do a CHMOD on my own, but I wasn't sure if I'd do it correctly, according to these instructions (for migrating Gallery2):

"Have your webhosting partner change the owner of the g2data dir recursively (all files and folders) to the webserver user, unless php cgi + suexec is used. If you don't understand this instruction, forward it directly to your webhosting partner. The webhost has to do this only once, I'm sure they will do it. If they don't then make sure that the webserver user can write and delete files in this directory (chmod 777)."

Also, I sent a ticket concerning this, but I'm not sure if it went through, as after hitting the send button I got a timeout/404.

2008-06-09 10:56 PM

I've chowned the g2data directory which was in your home directory to webserver user recursively. Please verify this now.

2008-06-09 11:57 PM

I can see and generate thumbnails, so I assume it works.  Thanks!

2008-06-10 07:28 AM

Hmm, I did notice something interesting though... My disk space usage went from something over 3 gigs to down to 111 megs.  I checked directories manually and there's definitely more than 111 megs in there.  I mean, as much as I would like 3 gigs of free space, you might want to check that out :)

2008-06-11 10:31 AM

The size of directory "g2data" is pasted below
=
du -sh g2data/
3.3G    g2data/
=
This is the reason for the sudden drop in disk space usage. I think this ownership modification is necessary for your application. We will let you know incase this affects our server in future.

2008-06-11 10:44 AM

Regards,
Rahul
Ah, that would make sense.  Any way to more accurately check my disk space usage than cPanel? Like, some variant of ls?

2008-06-11 11:15 AM

Please note that diskusage is calculated on the basis of user ownership. Here 'nobody' user owns the directory. Hence it is not calculated in your username quota..

2008-06-11 11:56 AM

Regards,
Rahul
Right, I understand that perfectly.  I'm just wondering if there's another way to measure disk usage so I know if I'm going over, say, by typing something like ls in SSH.

2008-06-11 11:59 AM

Ok..Please ssh to your account and run the following command.

$ du -sh .

This will show you the total diskusage of your home directory..

2008-06-11 12:16 PM

Regards,
Rahul
That worked great, thanks!

2008-06-11 12:37 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.