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.

How to limit number of PHP processes when running suPHP?

Discussion in 'Workarounds and Optimization' started by anton_latvia, Oct 27, 2011.

  1. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    Hi,
    basically here is the question: How to limit number of PHP processes when running suPHP?

    I tried adding limit to /etc/security/limits.conf:

    Code:
    ringeri         hard    nproc   10
    but this did not help (I did not restart server, just restarted apache/php).

    Anton.
     
  2. gnutoolbox

    gnutoolbox Member

    Joined:
    Sep 25, 2011
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
  3. anton_latvia

    anton_latvia Well-Known Member
    PartnerNOC

    Joined:
    May 11, 2004
    Messages:
    348
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    Latvia
    cPanel Access Level:
    Root Administrator
    Hm, is it the only way for limiting number of processes spawned by suPHP? So far it looks like converting to fastCGI is more smooth solution..
     
  4. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    386
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    Hello,

    Perhaps you may take a look into the below URL

    core - Apache HTTP Server

    Also the two main well known applications using in Hosting servers to limit the resources per user are CloudLinux and 1H hive ( personally I love this ). Both will allow you to have better control over total processes that can be owned by a user ( it involve ALL processes; read their documentation for more details )

    Thank you,
    Nibin.
     
Loading...

Share This Page