
Originally Posted by
GaryT
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:
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