ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   Installation / System Requirements (http://forum.ispsystem.com//forumdisplay.php?f=10)
-   -   server-status plugin problem (http://forum.ispsystem.com//showthread.php?t=764)

BeoNET 09-25-2009 02:38 PM

server-status plugin problem
 
Hi,

I'm trying to install apache server-status plugin from Control panel and when installation is complete on screen apears "Account disabled by server administrator" and when i click again to plugins the serverstatus plugin seems to be installed. On navigation panel on left there is Apache status button and when i click on it the popup window apears with error message "Internal error malformed result". I configure mod_status in httpd.conf like this:

<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from some.ip.address.!!
</Location>

where is the problem??

Thanks!!

slava 09-25-2009 07:41 PM

Try to comment lines

Code:

Order deny,allow
Deny from all
Allow from some.ip.address.!!

And check again. Server status must be accessable from server localhost as http://localhost/server-status. It can be checked, for example, via wget -O - http://localhost/server-status command.

If this will work, you are need add to Allow from directive your server IP address.

BeoNET 09-26-2009 12:52 AM

Thanks, this was helpful. Now i can see the serverstatus when i type direct link in my browser and wget command works, but still have the same problem in Control Panel - "Internal error malformed result" error apears when i go to Apache status in navigation.

slava 09-26-2009 08:01 AM

Please add LogLevel 9 in the first line /usr/local/ispmgr/etc/ispmgr.conf and restart panel (killall ispmgr command in the ssh)

And after then check what you see in the /usr/local/ispmgr/etc/var/ispmgr.log when you click link in Control Panel ?

BeoNET 09-26-2009 04:20 PM

Here is the error log /usr/local/ispmgr/etc/ispmgr.log

Quote:

Sep 26 15:12:05 INFO Request [195.252.1x.2x][root] 'func=apachestatus'
Sep 26 15:12:05 ../../src/main.cpp:425 DEBUG Begin simple action
Sep 26 15:12:05 ../../src/action.cpp:240 DEBUG Execute addon '/usr/local/ispmgr/addon/apachestatus'
Sep 26 15:12:05 ../../src/action.cpp:301 DEBUG return code 9 recived result ''
Sep 26 15:12:05 ERROR Exception 1: malformed result

BeoNET 09-27-2009 11:40 AM

Maybe this will help?

This is the log in /usr/local/ispmgr/etc/ispmgr.log after i try to install apachestatus plugin

Code:

Sep 27 10:28:43 INFO Request [195.252.1x.2x][root] 'func=plugins.enable&elid=apachestatus'
Sep 27 10:28:43 EXTINFO Execute (rm -rf /tmp/isp_plugin/) return=0 exited
Sep 27 10:28:44 EXTINFO Execute (/usr/bin/wget -q --no-check-certificate -O /usr/local/ispmgr/var/ispmgr_plugins.xml http://download.ispsystem.com/plugins/ispmgr_plugins.xml) return=0 exited
Sep 27 10:28:44 ../../src/plugins.cpp:40 TRACE Plugin info wwwdomaintofilemgr 1.0 loaded, author: John Lepikhin / ISPsystem, john@ispsystem.com
Sep 27 10:28:44 ../../src/plugins.cpp:40 TRACE Plugin info wwwdomainmasscreate 1.0 loaded, author: John Lepikhin / ISPsystem, john@ispsystem.com
Sep 27 10:28:44 ../../src/plugins.cpp:40 TRACE Plugin info masspasschange 1.0 loaded, author: John Lepikhin / ISPsystem, john@ispsystem.com
Sep 27 10:28:44 ../../src/plugins.cpp:40 TRACE Plugin info apachestatus 1.0 loaded, author: John Lepikhin / ISPsystem, john@ispsystem.com
Sep 27 10:28:44 ../../src/plugins.cpp:40 TRACE Plugin info mysqldumpupload 1.0 loaded, author: John Lepikhin / ISPsystem, john@ispsystem.com
Sep 27 10:28:44 EXTINFO Execute (/usr/bin/wget -q --no-check-certificate -O - http://download.ispsystem.com/plugins/plugins/apachestatus.tar.gz| tar -z -x -f - -C /tmp/isp_plugin/) return=0 exited
Sep 27 10:28:44 EXTINFO Execute (cd /tmp/isp_plugin/ && find . -type f|cut -c 3- > /usr/local/ispmgr/var/.plugin_listings/apachestatus.lst) return=0 exited
Sep 27 10:28:44 EXTINFO Execute (cp -R /tmp/isp_plugin/* /usr/local/ispmgr/) return=0 exited
Sep 27 10:28:44 EXTINFO Execute (rm -rf /tmp/isp_plugin/) return=0 exited
Sep 27 10:28:44 EXTINFO Execute (rm -rf var/.xmlcache/) return=0 exited
Sep 27 10:28:44 WARNING accept error


GakcaT 09-28-2009 02:23 AM

The problem is in the plugin script. We'll check it.

john 09-28-2009 05:22 AM

Run /usr/local/ispmgr/addon/apachestatus from command line. What output do you get? Most common issue is XML::LibXML Perl extension is not installed. What OS and distribution is installed on your server?

BeoNET 09-28-2009 09:57 AM

Here is the ouput of /usr/local/ispmgr/addon/apachestatus

Code:

Can't locate HTML/TreeBuilder.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 . /usr/local/ispmgr/lib/perl) at /usr/local/ispmgr/addon/apachestatus line 5.
BEGIN failed--compilation aborted at /usr/local/ispmgr/addon/apachestatus line 5.

OS is CentOS 5.3 64bit

Quote:

Most common issue is XML::LibXML Perl extension is not installed.
I dont have installed XML::LibXML Perl extension

slava 09-28-2009 10:01 AM

Quote:

Originally Posted by BeoNET (Post 3467)
OS is CentOS 5.3 64bit
I dont have installed XML::LibXML Perl extension

Try to install by
Code:

yum install perl-XML-LibXML
command


All times are GMT +2. The time now is 04:49 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.