Thread: Motd
View Single Post
  #8 (permalink)  
Old 12-22-2009, 04:30 PM
blazeking blazeking is offline
Advanced Member
 
Posts: 204
Default

Quote:
Originally Posted by hillman View Post
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).
Attached Images
File Type: jpg motd_zimlet_errors.jpg (23.1 KB, 79 views)

Last edited by blazeking; 12-23-2009 at 01:56 PM..
Reply With Quote