asda?‰PNG  IHDR ? f ??C1 sRGB ??é gAMA ±? üa pHYs ? ??o¨d GIDATx^íüL”÷e÷Y?a?("Bh?_ò???¢§?q5k?*:t0A-o??¥]VkJ¢M??f?±8\k2íll£1]q?ù???T 3 Ui5@sddlZddlmZddZGdddZGdddZd d Zd d ZGd ddZGdddZ Gddde Z Gddde Z Gddde Z Gddde Z Gddde ZGddde ZGddde Zdd Zd!d"Zd#d$ZdS)%N)versioncCstj|}|jS)N)ospopenread)strZhandler//usr/share/lve/modlscapi/user/lve_diagnostic.pymyExecs r c@s(eZdZdZdZdZdZdZddZdS) LiteSpeedFUnknowncCs^tjjd|_tjjdrZttdjddkrZd|_dtdk|_d td k|_td }dS) Nz/usr/local/lswsz/usr/local/lsws/bin/litespeedzps aux|grep litespeed T1z4grep enableLVE /usr/local/lsws/conf/httpd_config.xml0z$grep -i phpSuexec\> httpd_config.xmlz%file -L /usr/local/lsws/bin/litespeed) rpathisfileexistlenr splitlvesuexec)selfZarchrrr__init__s "zLiteSpeed.__init__N) __name__ __module__ __qualname__rrrrZ correctArchrrrrrr s r c@steZdZdZdZdZdZdZdZdZ dZ dZ dZ dZ dZdZdZddZddZddZd d Zd d Zd dZdS) ApacheInfoFr cCs|j|dS)N)detect)rrrrrr8szApacheInfo.__init__cCs2tj|jtjdkrdStdd|jjdSdS)Nz2.2.0Ti z=Unable to determine list of loaded modules, apache version %sF)r LooseVersion print_warningapache)rrrr check_version;szApacheInfo.check_versioncCst|jjd|ddkS)N _moduler )rmodulesfind)rnamerrrisModuleBszApacheInfo.isModulecCsv|jrr|jd|_|jd|_|jd|_|jd|_|jd|_|jd|_|jd|_|jd|_ |jd |_ dS) N hostinglimitsfcgidZphp5cgicgidsuPHPfastcgidisable_suexecr) moduleInfor(r)r*php_dsor+r,r-r.r/r)rrrr parseModulesEs        zApacheInfo.parseModulescCsHtjj||_|jrDt|d}|jddkrd}x.|jdD] }|jddkr@|jdd}Pq@W|dk rtd|d|d t|d}|dk rtd|d ||jd }xX|D]P}|jd dkr||jdd d|_|jddkr||j dd d|_ qWtj |jtj dkrDd|_ t|d|_ |jdS)Nz -V 2>&1z Syntax errorrr"z lsapi.conf:zmv z.SAVEz.SAVE r zServer version:r /z Server MPM:z2.2Tz -M 2>&1r$r$)rrrrr r&rreplacerrfindmpmrr0r%r2)rrtmpZ lsapi_confslineslinerrrrQs0     zApacheInfo.detectcCs|jrxd|jd|jd|jd|jd|jd|jd|jd|jd |j d |j d |j }|SdSdS) NzApache verion: z, mpm=z, hostinglimits=z, cgi=z, cgid=z, fcgi=z , fastcgi=z , php DSO=z, suphp=z , suexec=z, disable_suexec=) rrr8r)r+r,r*r.r1r-rr/)rrrrrrksnzApacheInfo.strN)rrrrrr8r)r*r+r1r,r-r.r/rr0r%rr!r(r2rrrrrrr(s( rcCs$td|t||td|dS)NzCODE: z Solution: )print)code error_str error_listZsolutionrrr print_errorzs  rAcCstd|t||dS)Nz WARNING: )r=)r>r?r@rrrrs rc@s4eZdZdZdZdZdZddZddZddZ dS) KernelNFcCs^tdjd|_|jjd|_|jdkrN|j|jdd|_tjjd|_ n d|jk|_ dS) Nz /bin/uname -rr rr z/proc/lve/listZstabr$) r rstrip kernelNamer& isLVEKernelrrrr isLVEEnabled isVZKernel)rrrrrs  zKernel.__init__cCs|jr|jrtj|jtjdkr&dStj|jtjdkrNtdd|jdqtj|jtjdkrvtdd |jdqtd d |jdqtd d fdn&|jrtddfdntdd|jddS)Nz0.8.28Tz0.8.0iz*You are running bugy kernel LVE version %szUpgrade Kernelz0.7.0izoYou are running old kernel LVE version %s That version doesn't support multiple cores per LVE or memory limitsiz5You are running very old, bugy kernel, LVE version %sizLVE is not enabledzACheck /etc/sysconfig/lve file, and make sure lve rpm is installediMzYou are running VZ or OpenVZzWCloudLinux is not compatible, see http://www.cloudlinux.com/vz-compat.php for more infoiz9You are not running CloudLinux kernel. Your kernel is: %szCheck /boot/grub/grub.conf)rGrrrArH)rrrrchecks$  z Kernel.checkcCsNd}|jr|d|jd7}n,|jr8|d|jd7}n|d|jd7}|S)NzKernel: zOK ()zVZ (z Unknown ()rGrrHrE)rresultrrrrsz Kernel.str) rrrrrFrHrGrrIrrrrrrBs rBc@s8eZdZdZdZdZddZddZdd Zd d Z dS) CPz Unknown CPr NcCstd|_d|_t|_dS)Nz/usr/sbin/apachectlz /etc/httpd)rr apache_pathrBkernel)rrrrrs z CP.__init__cCs|jd|jd|jjS)Nr")r'rrNr)rrrrrszCP.strcCs|jS)N)r')rrrr__str__sz CP.__str__cCs|jjdS)N)rNrI)rrrrrIszCP.check) rrrr'rrNrrrOrIrrrrrLsrLcs(eZdZdZfddZddZZS)CPanelcPanelcsLtt|jtd|_td|_tjj drs zCustomPanel.check_config_ini)rrrr'rrqrvrVrr)rUrrp#s rpcCstjjdrtStjjdr tStjjdr'liblscapi.so' binary interface, at the moment when we have 'liblscapi.so' already updated, but the new 'mod_lsapi.so' not yet copied into the Apache modules directory, 'apachectl' would fail due to unloadable modules, print errors instead of Apache properties, and eventually produce installation failure. See CLOS-3184. )rr'rrrr get_cp_name]srcCstS)z Call this when you want full Control Panel properties, not only its type. Properties can fail to be obtained, or be invalid, in intermediate machine state, like half-installed 'mod_lsapi'. See CLOS-3184. )rrrrrget_cposr)rZ distutilsrr r rrArrBrLrPrWrXr[rdrnrprrrrrrrs$ R1 )