Solutions

Search  Users  Rules 
Close
Login:
Password:
Forgot your password?
Register
Login Register
 
Pages: 1
RSS
Can't enter to lve from slave context
I noticed fr om other posts, that this error relates to a confusions between mod_fcgi and mod_hostinglimits.

I would like PHP via FCGI and other scripts monitored by cloudlinux.

I'm running apache 1.3 for this example.
the extra/httpd-hostinglimits.conf looks like this now:

Code
LoadModule hostinglimits_module /hsphere/shared/apache/libexec/mod_hostinglimits.so

<IfModule mod_hostinglim its.c>
   SkipErrors Off
#   AllowedHandlers cgi-script php5-script php4-script php-script application/x-httpd-php5 application/x-httpd-php x-httpd-php fcgid-script application/x-httpd-php4
AllowedHandlers cgi-script fcgid-script
</IfModule>


httpd.conf contains this:

Code
<IfDefine FASTCGI>
   <IfDefine !LIBLVE>
       LoadModule fastcgi_module libexec/mod_fastcgi.so
   </IfDefine>
   <IfDefine LIBLVE>
       LoadModule fastcgi_module libexec/mod_fastcgi_lve.so
   </IfDefine>
</IfDefine>




apache runs like this:
Code
/hsphere/shared/apache/bin/httpd -DLIBPHP5 -DSSL -DFASTCGI -DFRONTPAGE -DSECURITY -DLIBLVE -f /hsphere/local/config/httpd/httpd.conf


Now, the error message (Can't enter to lve from slave context) no longer appears, but lveinfo -d does no longer show websites running PHP5 via fcgi.

I'm guessing they are no longer protected from using to many resources now?
After some more digging, this seems to do the trick. (not sure if there is something redundant in there through)

Code
<IfModule mod_hostinglimits.c>
   <IfModule mod_fcgid.c>
            EnableLVE on
   </IfModule>
   SkipErrors Off
   <IfModule mod_cgi.c>
         AllowedHandlers php5-script php4-script php-script application/x-httpd-php5 application/x-httpd-php x-httpd-php fcgid-script application/x-httpd-php4
   </IfModule>
   <IfModule !mod_cgi.c>
         AllowedHandlers cgi-script php5-script php4-script php-script application/x-httpd-php5 application/x-httpd-php x-httpd-php fcgid-script application/x-httpd-php4
   </IfModule>

</IfModule>

Hello, Gregor!

Can you say - do you use mod_fcgid or mod_fastcgi? Why did you comment this string "AllowedHandlers cgi-script php5-script php4-script php-script application/x-httpd-php5 application/x-httpd-php x-httpd-php fcgid-script application/x-httpd-php4"? I checked integration H-Sphere 3.5 and CloudLinux - it works correct - without "Can't enter to lve fr om slave context".

This configuration file:

Code
<IfModule mod_hostinglimits.c>
   <IfModule mod_fcgid.c>
            EnableLVE on
   </IfModule>
   SkipErrors Off
   <IfModule mod_cgi.c>
         AllowedHandlers php5-script php4-script php-script application/x-httpd-php5 application/x-httpd-php x-httpd-php fcgid-script application/x-httpd-php4
   </IfModule>
   <IfModule !mod_cgi.c>
         AllowedHandlers cgi-script php5-script php4-script php-script application/x-httpd-php5 application/x-httpd-php x-httpd-php fcgid-script application/x-httpd-php4
   </IfModule>

</IfModule> 


is for mod_hostinglimits+apache2.2+mod_fcgid, but not for apache1.3+mod_hostinglim its+mod_fastcgi. If lvetop still blank, can you describe your problem more detail on helpdesk page (https://helpdesk.cloudlinux.com). I need investigate this problem more deep.

Regards,
Alexey
CloudLinux Developers Team
Edited: Alexey Berezhok - 01.12.2011 11:36:42
Pages: 1
Users browsing this topic (1 guests, 0 registered, 0 hidden)