| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| some weard routers2.cgi isues (REALY WEARD) http://www.steveshipway.org/forum/viewtopic.php?f=2&t=9368 |
Page 1 of 1 |
| Author: | spatieman [ Wed Apr 29, 2015 11:26 am ] |
| Post subject: | some weard routers2.cgi isues (REALY WEARD) |
ok, here is the problem. i installed mrtg, rrdtools ,and all the content needed on my openbsd box (5.6) i installed routers2 V2.22 (yes i i know, 2.23 is there) opend the webpage,,and. Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@xs4non.nl and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. now the funny part. becouse i am always keeping my stuff from previous installation (openBSD 5.2) ,i compared all flags (right managment etc), all was the same. routers2.cgi same lengt, same permisions. ,inc routers2.conf what ever i do, i get the error message. now the fun part.. i simply copied my backed up routers2 cgi and conf file and only adapted its paths to the webserver. dont ask me why, but it worked.. but ok, i am not done yet. routers2.cgi was working, but.. Error cannot find RRDs.pm in /usr/local/libdata/perl5/site_perl/i386-openbsd /usr/libdata/perl5/site_perl/i386-openbsd /usr/local/libdata/perl5/site_perl /usr/libdata/perl5/site_perl /usr/libdata/perl5/i386-openbsd/5.18.2 /usr/local/libdata/perl5/i386-openbsd/5.18.2 /usr/libdata/perl5 /usr/local/libdata/perl5 . RRDs.pm is in i386-openbsd directory, and the RRDs.so in auto/RRDs so i copied the demo test stuff to the cgi directory, and some fancy pngs where created (cgi-bin/shared-demo.pl file) so i did a ldd `which rrdtool` to see what is wrong, seems all libraries where present. a perl -e "use RRDs; print $RRDs::VERSION;" gave no responce back. a previous search on this forum ,you ment to add the libadd directive, well, the error output on the missing RRDs.pm whent only bigger. so, what is going on ,i am on this now for some day's as for mrtg it self, it created all the RRD files i want. ok, now the fun part. while i am writing this i am installing v2.23 this is my content. before i type YES. Perl is : /usr/bin/perl MRTG files : /etc/mrtg/*.cfg RRD files : /var/apache2/htdocs/mrtg Doc root : /var/apache2/htdocs CGI bin : /var/apache2/cgi-bin Config file : /var/apache2/htdocs/mrtg/routers2.conf Routingtable: INACTIVE Compact page: ENABLED Caching : speedycgi JSCal2 : INSTALL 'usebigk' : mixed Auth option : NONE Mail Steve : no Other options can be set later by modifying the Config file Continue to install [no]? looks ok to me. refreshing the page. Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@xs4non.nl and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/2.2.27 (Unix) DAV/2 mod_ssl/2.2.27 LibreSSL/2.0 Server at http://www.xs4non.nl Port 80 file rights on routers2.cgi 100555 ,so rx rx rx root wheel again a compare on file right, all the same.. bcouse apache keeps log too. [Wed Apr 29 00:23:58 2015] [error] [client 192.168.0.238] (8)Exec format error: exec of '/var/apache2/cgi-bin/routers2.cgi' failed [Wed Apr 29 00:23:58 2015] [error] [client 192.168.0.238] Premature end of script headers: routers2.cgi now i am confused. what am i doing wrong.. --EDIT-- kill me. i changed #! /usr/local/bin/speedy to #! /usr/bin/ perl -w and it works. so speedy was killing me. (but why, the path is correct,and on the previous version it did work) -update-- did a check, did right check, all ok. did a apache error log view. this is what it tells me when i use speedy. (8)Exec format error: of '/var/apache2/cgi-bin/routers2 premature end of script headers: routers2.cgi |
|
| Author: | stevesh [ Fri Aug 28, 2015 4:12 pm ] |
| Post subject: | Re: some weard routers2.cgi isues (REALY WEARD) |
It sounds as if you do not have speedyCGI installed. Try running with straight perl by editing the #! line at the start of the routers2.cgi script. Your speedyCGI probably needs to be recompiled - it may have a different embedded perl to the version you are currently using, and so it cannot see RRDs properly. You may also need to reinstall RRDTool site-perl libraries. |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|