I made suggested modifications but it didn't seem to help. Here is the error log from apache:
Code:
main::readcfgfile() called too early to check prototype at /usr/local/mrtgweb/cgi-bin/pdfreport.cgi line 88., referer: http://www.myhost.com/cgi-bin/routers2.cgi?rtr=as17.cfg&bars=Cami&xgtype=d&page=menub&xgstyle=l2&if=as17_Fa0_0&xmtype=options
main::readcfgfile() called too early to check prototype at /usr/local/mrtgweb/cgi-bin/pdfreport.cgi line 88., referer: http://www.myhost.com/cgi-bin/pdfreport.cgi?x=1&fi=as17.cfg&url=http%3A%2F%2Fwww.myhost.com%2Fcgi-bin%2Frouters2.cgi&t=graph&L=0&r=&h=&b=javascript%3Ahistory.back%28%29%3Bhistory.back%28%29&conf=%2Fusr%2Flocal%2Fmrtgweb%2Frrd%2Frouters2.conf
Use of uninitialized value in undef operator at /usr/local/mrtgweb/cgi-bin/pdfreport.cgi line 116., referer: http://www.myhost.com/cgi-bin/pdfreport.cgi?x=1&fi=as17.cfg&url=http%3A%2F%2Fwww.myhost.com%2Fcgi-bin%2Frouters2.cgi&t=graph&L=0&r=&h=&b=javascript%3Ahistory.back%28%29%3Bhistory.back%28%29&conf=%2Fusr%2Flocal%2Fmrtgweb%2Frrd%2Frouters2.conf
HTMLDOC(6020) INFO: HTMLDOC 1.8.24 Open Source starting in CGI mode., referer: http://www.myhost.com/cgi-bin/pdfreport.cgi?x=1&fi=as17.cfg&url=http%3A%2F%2Fwww.myhost.com%2Fcgi-bin%2Frouters2.cgi&t=graph&L=0&r=&h=&b=javascript%3Ahistory.back%28%29%3Bhistory.back%28%29&conf=%2Fusr%2Flocal%2Fmrtgweb%2Frrd%2Frouters2.conf
HTMLDOC(6020) INFO: TMPDIR is "/tmp/report-6015", referer: http://www.myhost.com/cgi-bin/pdfreport.cgi?x=1&fi=as17.cfg&url=http%3A%2F%2Fwww.myhost.com%2Fcgi-bin%2Frouters2.cgi&t=graph&L=0&r=&h=&b=javascript%3Ahistory.back%28%29%3Bhistory.back%28%29&conf=%2Fusr%2Flocal%2Fmrtgweb%2Frrd%2Frouters2.conf
Also in IE window I get this instead of the PDF file:
Code:
Content-Type: text/plain
HTMLDOC Version 1.8.24 Open Source Copyright 1997-2004 Easy Software Products, All Rights Reserved.
This software is governed by the GNU General Public License, Version 2, and
is based in part on the work of the Independent JPEG Group.
Here is the config part of pdfreport.cgi
Code:
my( $HTMLDOC ) = "/usr/bin/htmldoc"; # location of htmldoc executable
my( $ROUTERSCGI ) = "/usr/local/mrtgweb/cgi-bin/routers2.cgi"; # location of routers2.cgi
my( $WORKDIR ) = "/tmp"; # temporary work directory
my( $WEBROOT ) = "/usr/local/mrtgweb/pdf"; # docroot for your web server
my( $CONFPATH ) = "/usr/local/mrtgweb/cfg"; # default path for cfg files
my( $VERSION ) = "1.0";
This is the permissions for $WEBROOT directory:
drwxrwxrwx 2 root root 4096 Jan 3 13:12 pdf
Any other ideas how it can be fixed?