View Full Version : Setting size limit on a directory via CPanel??
ascii 06-02-2002, 02:11 AM I signed up with crystalweb.biz recently and tried setting a limit on a directory via CPanel... I couldn't figure it out. I IM'd two of their support people. One said it couldn't be done, the other said they'd research it.:rolleyes:
I'd like to create a couple of directories and limit their size( for incoming FTP, etc.) Is it not possible? Or am I just dealing with the wrong webhost or something?
ascii 06-02-2002, 01:59 PM ???:(
Chicken 06-02-2002, 02:34 PM I added via CPanel to your thread title as I know that there are a lot of cPanel users here, so maybe that will catch their eye. Chances are many of them have read this though. I don't use it so I can't answer your question...
secludo 06-02-2002, 02:46 PM I also had this question and was told that unless I'm a reseller, it can't be done. I don't know if it's just not available in CPanel, or if my host doesn't allow it.
Elena 06-02-2002, 03:22 PM As far as I know, this isn't a feature that comes with cpanel/whm. To be sure, you'd probably want to ask at the cpanel forums: http://forums.cpanel.net
If you find that this is not a supported feature, you might try requesting it by going here and filling out the form: http://web.cpanel.net/bugzilla/enter_bug.cgi?bug_severity=enhancement
secludo 06-02-2002, 03:31 PM Originally posted by Elena
As far as I know, this isn't a feature that comes with cpanel/whm.
Umm.. I would say that it had better be a feature that comes with WHM - just not CPanel.
WiredMom 06-02-2002, 08:19 PM erm.
The only way I know how to limit a directory is to create it as a subdomain through WHM - specifying size/bandwidth/ftp etc.,
That also gives it a control panel and all that fun stuff like a normal domain.
secludo 06-02-2002, 08:44 PM Originally posted by Shi
erm.
The only way I know how to limit a directory is to create it as a subdomain through WHM - specifying size/bandwidth/ftp etc.,
That also gives it a control panel and all that fun stuff like a normal domain.
...which, in effect, would be creating a new account, kind of the point of WHM, which is why I say that it pretty much has to be a feature. Otherwise when resellers give other people accounts, those people can use all the space they want :)
Elena 06-02-2002, 10:45 PM secludo, I think maybe you misunderstood the posters question or perhaps I did. :o
I assumed this is just a regular user (not a reseller) who would like to set a limit on a directory.. which is not an option in cpanel or whm atm. Like the first poster stated.. limit the space on the incoming FTP directory, not an entire account. The two options here are completely different.. which means the feature to limit space for a specific directory (not an account) doesn't exist. Even though you can create sub-domain accounts in whm, you can't create an account for say /home/user/public_html/directory/sub-directory if you wanted to limit the space on sub-directory.. get what I'm saying?
There are scripts out there that can limit space per directory.. which is why I mentioned suggesting this as a feature enhancement to include in the users cpanel... they already added ways to limit space per POP account.. so it's not so unlikely that Nick would add something like this in as well. ;)
secludo 06-03-2002, 12:35 AM I know that is what he/she is asking. I said that I don't think it's possible in CPanel, and someone else said that they don't think it's a feature in CPanel/WHM - it IS a feature in WHM is all I was saying, and it kind of has to be because of what WHM is for :)
Elena 06-03-2002, 02:34 AM Actually, it's not a feature in whm either. You can setup an account for a sub-domain, but that creates a hole new account.. example.. it limits the size on /home/user - and for the purpose of limiting the size of the incoming ftp directory.. that wouldn't work since anon ftp would be setup on that account in another directory again since it is a "real account" in all it's meaning.. it would repeat the same as for a domain base account.. heh.. going in circles. It's late over here... :D
You can't set a limit to a sub-directory in whm... if a client has /home/user/public_html/sub/mom -- in whm you wouldn't be able to set a limit on the sub-directory mom, since it isn't a top level directory. Now I'm just babbling LOL
Anyway.. if no one has requested it.. I'll add it in as a requested feature later tonight. It would be nice to have this for clients who sub-host their friends and family. :)
chrisb 06-03-2002, 02:59 AM You really don't need it to be a feature of CPanel. You'd probably need to use an Apache directive and put it in an .htaccess file in the directory that you want to limit.Check www.apache.org/docs
secludo 06-03-2002, 03:39 AM Originally posted by Elena
Actually, it's not a feature in whm either. You can setup an account for a sub-domain, but that creates a hole new account.. example.. it limits the size on /home/user
Err, sorry, that's what I meant when I said:
Originally posted by secludo
...which, in effect, would be creating a new account
chrisb 06-03-2002, 05:14 AM Originally posted by chrisb
You really don't need it to be a feature of CPanel. You'd probably need to use an Apache directive and put it in an .htaccess file in the directory that you want to limit.Check www.apache.org/docs
Ummm... it looks like I was wrong. After researching Apache docs for over an hour, I couldn't find anything that would allow you to set a limit on an FTP directory size. The closest I saw was LimitBodySize, and that's just for HTTP.
I think it can be done and someone could come up with a work-around; but am not quite sure how. Maybe it IS a good idea for CPanel to add this feature after all; but probably better added to Apache.
I'm still not sure I understand your question though. If you are allowing others to upload to your ftp site through a BROWSE button from one of your web pages; then CGI UPLOAD from CGI.pm will let you set size limits.
Post back and explain it from the angle of what are you trying to accomplish and/or prevent, and I'll try to help further. I take it you are on a Linux server?
ascii 06-03-2002, 10:20 AM Originally posted by chrisb
Post back and explain it from the angle of what are you trying to accomplish and/or prevent, and I'll try to help further. I take it you are on a Linux server? Yes, on a Linux server.
Someone posted earlier about sub-hosting to family members, etc. That is basically what I'd like to do. It doesn't have to be a deeply nested subdirectory. " /public_html/~mybrother " would be fine as I could set up a subdomain to that directory. I want to be able to limit the space so that my brother doesn't take advantage of me and upload tons of data to the space I've set aside for him... you'know what I mean?
Elena 06-03-2002, 05:13 PM :bawling:
I put in the feature request and it was rejected. Darn, this would have been such a neat feature too! You can take a look:
http://web.cpanel.net/bugzilla/show_bug.cgi?id=611
I still think there could be a way to do this, I'll research more and if I find anything promising I'll reopen that request for further consideration... sure would make everyones lives easier for sharing space on accounts imo.
chrisb 06-04-2002, 09:58 AM Further research leads me to believe that this is going to have to be done at the server level. If your hosts uses ProFTP, then I believe they can set incoming FTP directory limits for you with mod_quota. If they use another type of FTP server, then I'd research info on that particular FTP server. Sorry, I couldn't be of more help.
|