The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Limiting a user usage

Discussion in 'General Discussion' started by Spokuz, Oct 29, 2005.

  1. Spokuz

    Spokuz Well-Known Member
    PartnerNOC

    Joined:
    Apr 24, 2003
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lisbon - Portugal
    cPanel Access Level:
    Root Administrator
    Hi

    I have a user that eats all the resources in the machine (CPU and MySQL), because he has lots of access to his website. Is there any way to control the usage of httpd to is website, witouth having to use Virtuozzo?

    Thank you:)
     
  2. bamasbest

    bamasbest Well-Known Member

    Joined:
    Jan 10, 2004
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    16
  3. Spokuz

    Spokuz Well-Known Member
    PartnerNOC

    Joined:
    Apr 24, 2003
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lisbon - Portugal
    cPanel Access Level:
    Root Administrator
    Great, thanks a lot:D

    Also, I have seen that some companies have Cpanel VPS. Does anyone now where can I get it?
     
  4. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    Refer following in Apache Docs:

    RLimitCPU Directive
    RLimitMEM Directive
    RLimitNPROC Directive

    In case you have php running as nobody or cgi as nobody (mod_perl) RLimitNPROC could lead you to a condition where you start seeing "cannot fork" messages in the error_log.

    Anup
     
    #4 anup123, Oct 29, 2005
    Last edited: Oct 29, 2005
  5. Spokuz

    Spokuz Well-Known Member
    PartnerNOC

    Joined:
    Apr 24, 2003
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lisbon - Portugal
    cPanel Access Level:
    Root Administrator
    anup, those options are for limited the Apache in a general way, not for a single user, right? I need to limit just one
     
  6. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    Context: server config, virtual host
    So it can be used server wide and/or within virtual host container.

    Just as i said, no mod_perl, no php as apache module because in both cases cgi and php are running as nobody and this would / could result in what's mentioned earlier.

    Cheers
    Anup
     
  7. Spokuz

    Spokuz Well-Known Member
    PartnerNOC

    Joined:
    Apr 24, 2003
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lisbon - Portugal
    cPanel Access Level:
    Root Administrator
    Thankl you all for your reply. We choosed to go with the QoS
     
Loading...

Share This Page