In diesem Artikel werden wir sehen, wie man CloudLinux 6 mod_hostinglimits löst: Bereits in LVE. POA/HostingNG-Fehler.
Wenn Sie POA/HostingNG verwenden und die folgenden Fehler in Protokollen sehen:
[Thu Aug 14 14:11:37 2014] [error] mod_hostinglimits:Already inside LVE: LVE(121842) HANDLER(php-cgi-script) HOSTNAME(domain1.com) URL(/index.php) TID(8354) errno (1) Read more: http://e.cloudlinux.com/MHL-EPERM
[Thu Aug 14 14:11:37 2014] [error] mod_hostinglimits:Already inside LVE: LVE(123272) HANDLER(php-cgi-script) HOSTNAME(domain2.com) URL(/home.php) TID(8052) errno (1) Read more: http://e.cloudlinux.com/MHL-EPERM
Das Problem liegt darin, wie Apache auf POA funktioniert. Um das Problem unter CloudLinux 6 zu beheben, müssen wir das Einrichten von LVE durch andere (nicht nur LVE-Administratoren) Benutzer zulassen: Ab Kernel 2.6.32-673.8.1.lve1.4.3.1 :
$ echo "options kmodlve lve_user_setup=Y' > /etc/modprobe.d/lve.conf
$ echo "Y' > /sys/module/kmodlve/parameters/lve_user_setup
Für Kernel vor 2.6.32-673.8.1.lve1.4.3.1:
$ echo "options lve lve_user_setup=Y' > /etc/modprobe.d/lve.conf
$ echo "Y' > /sys/module/lve/parameters/lve_user_setup
Leider kann lve_setup_enter, das für POA (HostingNG) in mod_hostinglimits verwendet wird, unter CloudLinux 5 nicht korrekt funktionieren, es gibt immer EPERM zurück. Es funktioniert also nur auf CL6 oder Hybrid-Kernel. Link zur Installation des Hybridkernels: http://docs.cloudlinux.com/index.html?hybrid_kernel.html