| Cheshire Cat Computing http://steveshipway.org/forum/ |
|
| installation problem http://steveshipway.org/forum/viewtopic.php?f=2&t=870 |
Page 1 of 1 |
| Author: | -f- [ Fri Apr 21, 2006 12:43 am ] |
| Post subject: | installation problem |
Greetings. I'm trying to install routers2.cgi script and getting an Internal Server Error with 'Premature end of script headers' in apache logs, while trying to start http://bla.local/cgi-bin/mrtg/routers2.cgi?page=verify What could it be? Path to perl is ok. Some configuration info: mrtg-2.10.13p0 rrdtool-1.0.49 Apache/1.3.29 (running in chroot /var/www) routers2-v2.16 > grep -v "#" /var/www/etc/mrtg/routers2.conf | grep -v "^$" [web] backurl = / png=1 [routers.cgi] dbpath = /htdocs/mrtg graphpath = /htdocs/mrtg/graphs graphurl = /graphs confpath = /etc/mrtg/cfg cfgfiles = *.cfg iconurl = /rrdicons/ defaulttarget = interface graphstyle = big usebigk = yes sorder = t n n2 l l2 x x2 compact = no showfindbox = yes [targetnames] routerdefault = filename ifdefault = ai [targettitles] [targeticons] [graphprune] [menu] [trend.cgi] > ls -la /var/www/etc/mrtg/cfg/ total 28 drwxr-xr-x 2 root daemon 512 Apr 20 14:31 . drwxr-xr-x 3 root daemon 512 Apr 20 14:34 .. -rwxr-xr-x 1 root daemon 7452 Apr 20 14:31 mrtg.cfg -rwxr-xr-x 1 root daemon 716 Apr 19 15:21 mrtg.ok > grep -v "#" /var/www/etc/mrtg/cfg/mrtg.cfg | grep -v "^$" LogFormat: rrdtool EnableIPv6: no WorkDir: /htdocs/mrtg Options[_]: growright, bits IconDir: iconz Target[localhost_192.168.0.1]: /192.168.0.1:it5@localhost:::::1 SetEnv[localhost_192.168.0.1]: MRTG_INT_IP="192.168.0.1" MRTG_INT_DESCR="rl1" Directory[localhost_192.168.0.1]: localhost MaxBytes[localhost_192.168.0.1]: 12500000 Title[localhost_192.168.0.1]: rl1 -- bla.local PageTop[localhost_192.168.0.1]: <H1>rl1 -- bla.local </H1> <TABLE> <TR><TD>System:</TD> <TD>bla.local in main</TD></TR> <TR><TD>Maintainer:</TD> <TD>user@bla.local</TD></TR> <TR><TD>Description:</TD><TD>rl1 </TD></TR> <TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR> <TR><TD>ifName:</TD> <TD></TD></TR> <TR><TD>Max Speed:</TD> <TD>100.0 Mbits/s</TD></TR> <TR><TD>Ip:</TD> <TD>192.168.0.1 (bla.local)</TD></TR> </TABLE> Thanks in advance. |
|
| Author: | stevesh [ Fri Apr 21, 2006 6:47 am ] |
| Post subject: | |
This error usually indicates a script failure. I notice you have your script under /cgi-bin/mrtg/routers.cgi rather than the traditional /cgi-bin/routers.cgi, I trust you have added all the extra stuff to your apache config for this to work? Also, look in your error log. This 'premature end' message will usually coincide with some more helpful error messages. Try running it from the command line, and see what it says. Check permissions. If you're chrooted, this may break such things as the perl path, or even library paths and other things. All paths specified in the config and so on will need to be relative to the chroot. |
|
| Author: | -f- [ Fri Apr 21, 2006 7:54 pm ] |
| Post subject: | |
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|