Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    May 2010
    Posts
    321

    Question

    I used to have litespeed on the VPS and it had an option in there called:

    PHP suEXEC Max Conn

    It basicly limited the amount of processes a user can have, Now I can't afford the licence now as it will cost me a bomb for an 8core cpu - So Im wondering is there an option whats not in litespeed to use such option ?

    Thanks in advance.

    Anyone

  2. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by GaryT View Post
    I used to have litespeed on the VPS and it had an option in there called:

    PHP suEXEC Max Conn

    It basicly limited the amount of processes a user can have, Now I can't afford the licence now as it will cost me a bomb for an 8core cpu - So Im wondering is there an option whats not in litespeed to use such option ?

    Thanks in advance.
    I'm not familiar with how LiteSpeed implemented the described option; however, as a starting point, I would consider using both suPHP and suEXEC and then I believe you may effectively restrict the number of per-user processes by customizing the Linux pam_limits configuration located at the following path:
    Code:
    /etc/security/limits.conf
    The following command may be used to view help information about configuring limits.conf for pam_limits:
    Code:
    # man limits.conf
    For additional reference I recommend the following PAM documentation resources:
    A Linux-PAM page
    Linux-PAM FAQ
    The Linux-PAM Administration and Developer Guides
    The Linux-PAM System Administrators' Guide

    To determine if suEXEC and suPHP are enabled or disabled you may use WebHost Manager (WHM) via the following menu path:
    WHM: Main >> Service Configuration >> Apache Configuration >> PHP and SuExec Configuration

    Alternatively, the status of suEXEC and suPHP can also be viewed or set via root SSH access using the following commands:
    Code:
    /usr/local/cpanel/bin/rebuild_phpconf --current
    /usr/local/cpanel/bin/rebuild_phpconf --help
    Documentation: Configuring PHP and suEXEC from the Command Line

  3. #3
    Member
    Join Date
    May 2010
    Posts
    321

    Default

    First off, Thank you for the reply and I'm sorry for posting in the wrong section !

    Regarding your answer, I was already looking into:

    /etc/security/limits.conf
    I'm unsure on what to actually edit/change to be perfectly honest with you, In this conf at the bottom I see:

    #<domain> <type> <item> <value>
    #

    #* soft core 0
    #* hard rss 10000
    #@student hard nproc 20
    #@faculty soft nproc 20
    #@faculty hard nproc 50
    #ftp hard nproc 0
    #@student - maxlogins 4

    # End of file
    I assume this is it, Just unsure which is actually which, I did google for some information but I found it very confusing.

    Thanks once again and anyone else who wishes to help me I would appreciate it.

  4. #4
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,891
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    This should prove helpful I think.
    limits.conf(5) - Linux man page
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  5. #5
    Member
    Join Date
    May 2010
    Posts
    321

    Default

    I already checked that through google search. Thanks !

    It does not state though that if you decide to put a limit in place what line / Place to edit the limit.

    It just says, If you decide to read the following examples.

  6. #6
    Member
    Join Date
    May 2010
    Posts
    321

    Default

    I also asked on Litespeed forums - One of there techs replied:

    "PHP suEXEC Max Connections" is max number of lsphp processes for an user account.

    I think no such settings in apache mod_php or suPHP, but there are similar settings in apache + mod_fastcgi or mod_fcgid
    Obviously they will not say as its part of a product they use, Now at the moment it has no affect on my server without this intergrated, But I can see processes building up so a nice limit of 4/5 would be nice rather than the default of 20 whats been put in place somewhere.
    Last edited by GaryT; 08-29-2010 at 06:32 AM.

  7. #7
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,891
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Quote Originally Posted by GaryT View Post
    I already checked that through google search. Thanks !

    It does not state though that if you decide to put a limit in place what line / Place to edit the limit.

    It just says, If you decide to read the following examples.
    Well, it gives you the examples, but above that also details what each variable is you might use, or not. Those not being used in the default config you've posted above have the # in front of them.

    Not sure exactly what you're wanting to do here, if you can be more specific it might help someone to offer more suggestions.
    In WHM > Apache Configuration > Global Configuration you'll find some settings for several things that might be helpful to whatever it is you want to restrict.

    There is also in WHM > Apache Configuration > Memory Usage Restrictions tool and of course there's ConfigServer Security & Firewall which if setup correctly can block IPs automatically if too many connections from the same IP setting is met.

    As a few examples.
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  8. #8
    Member
    Join Date
    May 2010
    Posts
    321

    Default

    Main >> System Health >> Show Current CPU Usage

    Click on a PID to View More Information about a process

    Some account I host have around 20 or more processes. Now the litespeed addon was able to limit this, I do not have litespeed so I was wondering how to put limits in place.

    Sorry if I explained this completly wrong and thanks for your reply.
    Last edited by GaryT; 08-29-2010 at 01:21 PM.

  9. #9
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,891
    cPanel/Enkompass Access Level

    Root Administrator

    Question

    Can you post a snip of one of those processes you're looking at?
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  10. #10
    Member
    Join Date
    May 2010
    Posts
    321

    Default



    I cannot show any user info due to privacy protection, However I can confirm there is 1 user there with 13 active processes, Litespeed could limit this so there must be some intergration where I can limit this without litespeed, On there module I had it set to 1 / 3 so it could use between those limits which it did stick by and ran like a dream but, Due to growing faster than I thought I had to get the new box and the price of litespeed is, erm, expensive

    as for the edit for limitation, where, Im unsure
    Last edited by GaryT; 08-29-2010 at 05:14 PM.

Similar Threads & Tags
Similar threads

  1. Replies: 2
    Last Post: 08-27-2010, 10:16 PM
  2. Problem with "Configure PHP and SuExec"
    By anton_latvia in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-14-2009, 12:01 AM
  3. Updated Apache/PHP, now "Access Forbidden" on all sites
    By Xinil in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 07-18-2008, 02:22 PM
  4. Do you need "PHP suEXEC Support" if php is up to Version 5.1.6?
    By jols in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-11-2006, 04:05 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube