Quote:
Originally Posted by hillman Try enabling debug mode in the zimbrarest.cgi code (uncomment the $debug=1 line at the beginning of the file), then view the results again in Firebug. In debug mode, it just dumps a copy of all of the tips it read in, regardless of what request is sent to it. That will at least tell you that the cgi is working |
Uncommented the debug line, but no additional messages show in firebug. This runs OK:
[root@www zimbramotd]# perl -c zimbrarest.cgi
zimbrarest.cgi syntax OK
Maybe my website isn't configured correctly for the CGI app? I get this error in /var/log/httpd/error_log.log:
[Tue Dec 22 05:10:08 2009] [error] [client 10.2.1.29] Premature end of script headers: zimbrarest.cgi, referer:
http://mysite.org/motd/settings/
Or, perl wasn't being called correctly. :-) Apparently perl (on my system) is at /usr/bin/perl, and your cgi script was calling /usr/local/bin/perl. Now I'm getting some weird errors (attached).