mod_hostinglimits -- LVE limits for apache

Description:Wraps around PHP/CGI scripts, making them to run within LVE context
Status:External
Module Identifier:hostinglimits_module
Source Files:mod_hostinglimits.c
Compatibility:Unix pre-fork MPM

Summary 

mod_hostinglimits works with existing cgi/php modules, to put them into LVE context. In most cases the cgi/php process will be placed into LVE with ID of user that sites belongs to. mod_hostinglimits detects the user from SuexecUserGroup directive.

This can be overwritten via LVEId parameter on the Directory level

  1. LVE doesn't work for mod_include #exec due to its "filter" nature.
Example:
LoadModule hostinglimits_module modules/mod_hostinglimits.so
<IfModule mod_hostinglimits.c>
   AllowedHandlers cgi-script php5-script php4-script

</IfModule>

SuexecUserGroup 

User and group for processes spawned by daemon. This parameter is used by mod_hostinglimits to figure out user id under which sites run, and use it as LVE ID for that site. In most cases nothing has to be done beyond setting this directive. Most modern control panels will set this parameter by default.

SkipErrors 

Description:Allow apache to continue if LVE is not available
Syntax:SkipErrors On
Default:SkipErrors Off
Context:server config
Status:External
Module:mod_hostinglimits

Prevents apache from existing if LVE is not available.

Example:
SkipErrors Off

AllowedHandlers Directive 

Description:List of handlers that should be placed into LVE
Syntax:AllowedHandlers cgi-script php5-script my-script
Default:none
Context:server config
Status:External
Module:mod_hostinglimits

This directive allows to list handlers which will be intercepted and placed into LVE.

Example:
AllowedHandlers cgi-script 

LVEId 

Description:Allows to setup separate LVE id on per directory level. If not set, user id of corresponding user is used
Syntax:LVEId number
Default:User Id is used
Context:directory config
Status:External
Module:mod_hostinglimits

Specifies LVE id for particular directory

Example:
<Directory "/home/user1/domain.com/forums">
  LVEId 10001
</Directory>