[Resolved] PHP suEXEC Max Conn for Single VirtHost

Status
Not open for further replies.

sahith

Well-Known Member
#1
At present i am using PHP suEXEC with litespeed. and PHP suEXEC Max Conn are set to 40. So all accounts in server are getting 40 PHP suEXEC Max Connections.

But i need 100 PHP suEXEC Max Connections for a single account and all remain accounts should be at 40. Is that possible and may i know how to configure it.

Thanks.
 

sahith

Well-Known Member
#3
May i know where do i need to mention the following line
Code:
<IfModule LiteSpeed>
LSPHP_Workers 100
</IfModule>
in /usr/local/apache/conf/httpd.conf ??

But any modification to httpd.conf file will get reverted when we reload or update apache, right? So how we can add the above lines to a particular vhost without getting reverted?

Thank you.
 
Last edited by a moderator:

sahith

Well-Known Member
#5
at present i have following in pre_main_2.conf which applies to all virtual hosts.
Code:
<IfModule LiteSpeed>
LSPHP_ProcessGroup on
LSPHP_Workers 40
</IfModule>
And it is empty in /usr/local/apache/conf/userdata/std/ where i am supposed to add

Code:
<IfModule LiteSpeed>
LSPHP_Workers 100
</IfModule>
 
Last edited by a moderator:

Pong

Administrator
Staff member
#6
To apply to an individual virtualhost in cPanel:

2.2 With SSL /usr/local/apache/conf/userdata/ssl/2_2/$user/$domain/$includename.conf
Without SSL /usr/local/apache/conf/userdata/std/2_2/$user/$domain/$includename.conf
2.4 With SSL /usr/local/apache/conf/userdata/ssl/2_4/$user/$domain/$includename.conf
Without SSL /usr/local/apache/conf/userdata/std/2_4/$user/$domain/$includename.conf

create one if not there
 

sahith

Well-Known Member
#8
Okay i just created custom.conf and added
Code:
<IfModule LiteSpeed>
LSPHP_ProcessGroup on
LSPHP_Workers 100
</IfModule>
to /usr/local/apache/conf/userdata/std/2_4/$user/custom.conf

after that run following commands...

Code:
/usr/local/cpanel/bin/apache_conf_distiller –update
/usr/local/cpanel/bin/build_apache_conf
SUCCESS

Thank you very much.
 
Last edited by a moderator:
Status
Not open for further replies.
Top