H-Sphere and LVE
Requirements
- LVE installed Apache 2.2.x or 1.3 mod_suexec should be enabled Apache should be configured with MPM Prefork wget and yum should be installed
Installing CloudLinux enhancements
For Apache 1.3 do
# yum install hsphere_mod_hostinglimits1_3
For Apache 2.2 do
# yum install hsphere_mod_hostinglimits
Optionally you can compile software from source:
Source tarballs : Additional config files:FastCGI support
To install LVE support for mod_fastcgi
For Apache 1.3 do:
# yum install hsphere_mod_fastcgi1_3
For Apache 2.2.x do:
# yum install hsphere_mod_fastcgi
That RPM will replace default mod_fastcgi.so with the one enhanced by CloudLinux
Alternatively you can install mod_fcgid:
# yum install hsphere_mod_fcgid
Once RPM is installed, change LoadModule in apache config file from mod_fastcgi to mod_fcgid
* One important consideration with mod_fcgid is to set PHP_FCGID_CHILDREN=0 in php wrapper. See http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#examples for more details
Changes introduces by RPMs
For apache 1.3 RPM will add a line at the end of the /hsphere/shared/apache/conf/custom.conf to include hsphere_modhostinglimits config file. Comment out the include to disable mod_hostinglimtis
Edit hsphere_modhostinglimits config file to change mod_hostinglimtis parameters
Additional files installed:
/hsphere/shared/apache/conf/hsphere_modhostinglimits1_3.conf
/hsphere/shared/apache/libexec/mod_hostinglimits.so
If you are using Apache 2.2, /hsphere/shared/apache2/conf/custom.conf will be modified
/hsphere/shared/apache2/conf/hsphere_modhostinglimits.conf
/hsphere/shared/apache2/modules/mod_hostinglimits.so
Default templates for modules
mod_hostinglimits
<IfModule mod_hostinglimits.c> SkipErrors Off AllowedHandlers application/x-httpd-php5 application/x-httpd-php cgi-script php-script php5-script php4-script </IfModule>
php5 - will be executed as apache module.
Additional links
- http://64.131.90.141/docs/3.3/admin/parallels-hsphere-3.3-administrator-guide.pdf http://64.131.90.141/docs/
